This module will transliterate text in the Ancient North Arabian script. It is used to transliterate Dadanitic, Dumaitic, Hasaitic, Hismaic, Safaitic, Taymanitic, Thamudic, and Ancient North Arabian.
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:Narb-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 chars = {
= "s³", = "ḏ", = "ẖ", = "s¹", = "s²",
= "ṯ", = "ʾ", = "ʿ", = "b", = "d",
= "ḍ", = "f", = "g", = "ġ", = "h",
= "ḥ", = "k", = "l", = "m", = "n",
= "q", = "r", = "ṣ", = "t", = "ṭ",
= "w", = "y", = "z", = "ẓ",
}
function export.tr(text, lang, sc)
return (mw.ustring.gsub(text, '.', chars))
end
return export