Modul:Lyci-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 teks dalam Tulisan Lycian. Ia digunakan untuk mentransliterasi Lycian.
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:Lyci-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 chars = {
["𐊀"] = "a",
["𐊂"] = "b",
["𐊄"] = "g",
["𐊅"] = "d",
["𐊆"] = "i",
["𐊇"] = "w",
["𐊈"] = "z",
["𐊛"] = "h",
["𐊉"] = "θ",
["𐊊"] = "j",
["𐊋"] = "k",
["𐊍"] = "l",
["𐊎"] = "m",
["𐊏"] = "n",
["𐊒"] = "u",
["𐊓"] = "p",
["𐊔"] = "k",
["𐊕"] = "r",
["𐊖"] = "s",
["𐊗"] = "t",
["𐊁"] = "e",
["𐊙"] = "ã",
["𐊚"] = "ẽ",
["𐊐"] = "m̃",
["𐊑"] = "ñ",
["𐊘"] = "τ",
["𐊌"] = "q",
["𐊃"] = "β",
["𐊜"] = "χ",
}
function export.tr(text, lang, sc)
return (mw.ustring.gsub(text, '.', chars))
end
return export