Module:pine-translit: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 4: Line 4:


-- from Teulgi to Tuġvut font
-- from Teulgi to Tuġvut font
tt["Latn"] = {
tt = {
["-t"] = '_0', ["-"] = '_',
["-t"] = '_0', ["-"] = '_',
Line 68: Line 68:
text = mw.ustring.lower(text)
text = mw.ustring.lower(text)
for pat, repl in pairs(tt[sc]) do
for pat, repl in pairs(tt) do
         text = mw.ustring.gsub(text, pat, repl)
         text = mw.ustring.gsub(text, pat, repl)
end
end