Module:xchc-translit: Difference between revisions

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.gsub(text, '.', tt)
for pat, repl in pairs(tt) do
text = mw.ustring.gsub(text, pat, repl)
end
return text
return text
end
end


return export
return export