Module:xchc-translit: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 62: Line 62:


function export.tr(text, lang, sc)
function export.tr(text, lang, sc)
text = mw.ustring.toNFD(text)
for pat, repl in pairs(tt_lepik) do
for pat, repl in pairs(tt_lepik) do
text = mw.ustring.gsub(mw.ustring.toNFD(text), pat, repl)
text = mw.ustring.gsub(text, pat, repl)
end
end
text = text:gsub("([Yy])e(" .. A .. ")" .. DA, "%1o%2")
-- text = text:gsub("([Yy])e(" .. A .. ")" .. DA, "%1o%2")

Navigation menu