This module will transliterate text in the Elbasan script. It is used to transliterate Albanian.
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:Elba-translit/testcases.
tr(text, lang, sc)
text
written in the script specified by the code sc
, and language specified by the code lang
.nil
.local export = {}
local tt = {
= "a", = "b", = "c", = "ç", = "d", = "nd",
= "dh", = "e", = "ë", = "f", = "g", = "gj",
= "h", = "i", = "j", = "k", = "l", = "ll",
= "m", = "n", = "ñ", = "nj", = "o", = "p",
= "q", = "r", = "rr", = "s", = "sh", = "t",
= "th", = "u", = "v", = "x", = "y", = "z",
= "zh", = "ɣ", = "ɣ²", = "ꭓ",
-- TODO: clarify when the two ghayns are used.
};
function export.tr(text, lang, sc)
return (mw.ustring.gsub(text, '', tt))
end
return export