Modul:uga-translit
- Berikut merupakan pendokumenan yang dijana oleh Modul:pendokumenan/functions/translit. [sunting]
- Pautan berguna: senarai sublaman β’ pautan β’ transklusi β’ kes ujian β’ kotak pasir
Modul ini akan mentransliterasi Bahasa Ugaritic teks.
The module should preferably not be called directly from templates or other modules.
To use it from a template, use {{xlit}}
.
Within a module, use Module:languages#Language:transliterate.
For testcases, see Module:uga-translit/testcases.
Functions
suntingtr(text, lang, sc)
- Transliterates a given piece of
text
written in the script specified by the codesc
, and language specified by the codelang
. - When the transliteration fails, returns
nil
.
local export = {}
local tt = {
["π"] = "ΚΎa", ["π"] = "b", ["π"] = "g", ["π"] = "αΊ", ["π"] = "d",
["π
"] = "h", ["π"] = "w", ["π"] = "z", ["π"] = "αΈ₯", ["π"] = "αΉ",
["π"] = "y", ["π"] = "k", ["π"] = "Ε‘", ["π"] = "l", ["π"] = "m",
["π"] = "αΈ", ["π"] = "n", ["π"] = "αΊ", ["π"] = "s", ["π"] = "ΚΏ",
["π"] = "p", ["π"] = "αΉ£", ["π"] = "q", ["π"] = "r", ["π"] = "αΉ―",
["π"] = "Δ‘", ["π"] = "t", ["π"] = "ΚΎi", ["π"] = "ΚΎu", ["π"] = "sβ",
["π"] = " " -- word divider
}
function export.tr(text, lang, sc)
text = mw.ustring.gsub(text, ".", tt)
return text
end
return export