Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

Jump to content

Module:Georgian to IPA

Permanently protected module
From Wikipedia, the free encyclopedia

local export = {}

local IPA_mapping = {
	["ა"] = "a", ["ბ"] = "b", ["გ"] = "ɡ", ["დ"] = "d",
	["ე"] = "e", ["ვ"] = "v", ["ზ"] = "z", ["თ"] = "tʰ",
	["ი"] = "i", ["კ"] = "kʼ", ["ლ"] = "l", ["მ"] = "m",
	["ნ"] = "n", ["ო"] = "o", ["პ"] = "pʼ", ["ჟ"] = "ʒ",
	["რ"] = "r", ["ს"] = "s", ["ტ"] = "tʼ", ["უ"] = "u",
	["ფ"] = "pʰ", ["ქ"] = "kʰ", ["ღ"] = "ʁ", ["ყ"] = "qʼ",
	["შ"] = "ʃ", ["ჩ"] = "tʃ", ["ც"] = "ts", ["ძ"] = "dz",
	["წ"] = "tsʼ", ["ჭ"] = "tʃʼ", ["ხ"] = "χ", ["ჯ"] = "dʒ",
	["ჰ"] = "h"
}

function export.convert(text)
	if type(text) == "table" then
		text = text.args[1]
	end
	return (mw.ustring.gsub(text, '.', IPA_mapping))
end

return export