Module:xchc-translit: Difference between revisions

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


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(text, pat, repl)
text = mw.ustring.gsub(mw.ustring.toNFD(text), pat, repl)
end
end
return mw.ustring.toNFC(text)
return mw.ustring.toNFC(text)

Navigation menu