Modul:Geor-translit

Vun Wiktionary

This module will transliterate Georgian-script text through the function tr.


--[[
Transliteration for the Georgian script.
]]
local M={}
 
local tt={
    ["ა"]="a", ["ბ"]="b", ["გ"]="g", ["დ"]="d", ["ე"]="e", ["ვ"]="v", ["ზ"]="z", ["ჱ"]="ē",
    ["თ"]="t’", ["ი"]="i", ["კ"]="k", ["ლ"]="l", ["მ"]="m", ["ნ"]="n", ["ჲ"]="y", ["ო"]="o",
    ["პ"]="p", ["ჟ"]="ž", ["რ"]="r", ["ს"]="s", ["ტ"]="t", ["ჳ"]="w", ["უ"]="u", ["ფ"]="p’",
    ["ქ"]="k’", ["ღ"]="ḡ", ["ყ"]="q", ["შ"]="š", ["ჩ"]="č’", ["ც"]="c’",
    ["ძ"]="j", ["წ"]="c", ["ჭ"]="č", ["ხ"]="x", ["ჴ"]="ẖ", ["ჯ"]="ǰ", ["ჰ"]="h", ["ჵ"]="ō", ["ჶ"]="f", ["ჷ"]="ə", ["ჸ"]="ʾ"
};
function M.tr(text)--translit any words or phrases
    if type(text) == "table" then text = text.args[1] end
 
    return (mw.ustring.gsub(text, '.', tt))
end
return M