Module:xchc-translit: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 17: Line 17:
["Ү"]='U' .. D, ["ү"]='u' .. D,
["Ү"]='U' .. D, ["ү"]='u' .. D,
["Ө" .. M]='O' .. DA, ["ө" .. M]='o' .. DA,
["Ө" .. M]='O' .. DA, ["ө" .. M]='o' .. DA,
[M .. B] = DA, [M] = A, [B] = D,
--[M .. B] = DA, [M] = A, [B] = D,
["[ЬІ]"]="Y", ["[ьі]"]="y",
["[ЬІ]"]="Y", ["[ьі]"]="y",
["Э"]='E', ["э"]='e',
["Э"]='E', ["э"]='e',
Line 58: Line 58:
for pat, repl in pairs(tt_lepik) do
for pat, repl in pairs(tt_lepik) do
text = mw.ustring.gsub(text, pat, repl)
text = mw.ustring.gsub(mw.ustring.toNFD(text), pat, repl)
end
end
return text
return text