Module:nsk-translit
Appearance
- De neikommende dokumintaasje stiet op Module:nsk-translit/dokumintaasje. [bewurkje]
Oernommen fan en:Module:nsk-translit.
local export = {}
local replacements = {
["c"] = "ch",
["ī"] = "ii",
["ō"] = "oo",
["ā"] = "aa",
["o"] = "u",
["š"] = "sh",
["ð"] = "th",
["(.)ː"] = "%1%1",
"[ᔌᔍᔎᔏ]", {
["ᔌ"]="spwaa",
["ᔍ"]="stwaa",
["ᔎ"]="skwaa",
["ᔏ"]="schwaa",
}
}
function export.tr(text, lang, sc)
text = require("Module:Cans-translit").tr(text, lang, sc)
for regex, replacement in pairs(replacements) do
text = mw.ustring.gsub(text, regex, replacement)
end
return text
end
return export