وحدة:udi-translit
المظهر
local export = {}
local tt = {
["б"]="b", ["п"]="p", ["в"]="v", ["ф"]="f", ["м"]="m", ["б"]="b",
["д"]="d", ["т"]="t", ["ц"]="c", ["з"]="z", ["с"]="s", ["н"]="n",
["л"]="l", ["ч"]="č", ["ж"]="ž", ["ш"]="š", ["р"]="r", ["г"]="g",
["к"]="k", ["х"]="χ", ["й"]="j", ["и"]="i", ["у"]="u", ["е"]="e",
["о"]="o", ["а"]="a", ["ҝ"]="gʲ"
};
function export.tr(text, lang, sc)
if sc == "Latn" then
return nil
elseif sc == "Armn" then
return require("Module:Armn-translit").tr(text, lang, sc)
else
text = mw.ustring.gsub(text, 'джъ', 'ǯ:')
text = mw.ustring.gsub(text, 'джӏ', 'ǯ:')
text = mw.ustring.gsub(text, 'чӏъ', 'č̣:')
text = mw.ustring.gsub(text, 'пӏ', 'ṗ')
text = mw.ustring.gsub(text, 'тӏ', 'ṭ')
text = mw.ustring.gsub(text, 'дз', 'ʒ')
text = mw.ustring.gsub(text, 'цӏ', 'c̣')
text = mw.ustring.gsub(text, 'дж', 'ǯ')
text = mw.ustring.gsub(text, 'чӏ', 'č̣')
text = mw.ustring.gsub(text, 'чъ', 'č:')
text = mw.ustring.gsub(text, 'жъ', 'ž:')
text = mw.ustring.gsub(text, 'жӏ', 'ž:')
text = mw.ustring.gsub(text, 'шъ', 'š:')
text = mw.ustring.gsub(text, 'шӏ', 'š:')
text = mw.ustring.gsub(text, 'кӏ', 'ḳ')
text = mw.ustring.gsub(text, 'гъ', 'ɣ')
text = mw.ustring.gsub(text, 'къ', 'q̇')
text = mw.ustring.gsub(text, 'хъ', 'q')
text = mw.ustring.gsub(text, 'гь', 'h')
text = mw.ustring.gsub(text, 'уь', 'ü')
text = mw.ustring.gsub(text, 'оь', 'ö')
text = mw.ustring.gsub(text, 'аь', 'ä')
text = mw.ustring.gsub(text, 'иӏ', 'i̱')
text = mw.ustring.gsub(text, 'иъ', 'i̱')
text = mw.ustring.gsub(text, 'уӏ', 'u̱')
text = mw.ustring.gsub(text, 'уъ', 'u̱')
text = mw.ustring.gsub(text, 'еӏ', 'e̱')
text = mw.ustring.gsub(text, 'еъ', 'e̱')
text = mw.ustring.gsub(text, 'оӏ', 'o̱')
text = mw.ustring.gsub(text, 'оъ', 'o̱')
text = mw.ustring.gsub(text, 'аӏ', 'a̱')
text = mw.ustring.gsub(text, 'аъ', 'a̱')
text = mw.ustring.gsub(text, '.', tt)
return text
end
end
return export