Module:Goth-translit
Jump to navigation
Jump to search
- The following documentation is located at Module:Goth-translit/doc.[edit]
- Useful links: subpage list β’ links β’ transclusions β’ testcases β’ sandbox
local export = {}
local Goth_Latn = {
["π°"] = "a",
["π±"] = "b",
["π²"] = "g",
["π³"] = "d",
["π΄"] = "Δ",
["π΅"] = "q",
["πΆ"] = "z",
["π·"] = "h",
["πΈ"] = "ΓΎ",
["πΉ"] = "i",
["πΊ"] = "k",
["π»"] = "l",
["πΌ"] = "m",
["π½"] = "n",
["πΎ"] = "j",
["πΏ"] = "u",
["π"] = "p",
["π"] = "?",
["π"] = "r",
["π"] = "s",
["π"] = "t",
["π
"] = "w",
["π"] = "f",
["π"] = "x",
["π"] = "Ζ",
["π"] = "Ε",
["π"] = "?",
}
local Latn_Goth = {
["Δ"] = "π°",
["e"] = "π΄",
["Δ«"] = "πΉ",
["o"] = "π",
["Ε«"] = "πΏ",
["y"] = "π
",
}
for g, l in pairs(Goth_Latn) do
if l ~= "?" then
Latn_Goth[l] = g
end
end
function export.tr(text, lang, sc)
text = mw.ustring.gsub(text, "π΄πΉ", "ei")
return (mw.ustring.gsub(text, '.', Goth_Latn))
end
function export.tr_reverse(text)
text = mw.ustring.lower(text)
return (mw.ustring.gsub(text, '.', Latn_Goth))
end
return export