Module:User:JohnC5/Sandbox2
Appearance
- The following documentation is located at Module:User:JohnC5/Sandbox2/documentation. [edit] Categories were auto-generated by Module:documentation. [edit]
- Useful links: root page • root page’s subpages • links • transclusions • testcases • sandbox
𐬫ō⸱ 𐬘𐬀𐬥𐬀𐬙̰⸱ 𐬀žī𐬨⸱ 𐬛𐬀𐬵ā𐬐ə𐬨⸱
local export = {}
local mapping = {
["a"] = "𐬀", -- AVESTAN LETTER A
["ā"] = "𐬁", -- AVESTAN LETTER AA
["å"] = "𐬂", -- AVESTAN LETTER AO
["ą"] = "𐬄", -- AVESTAN LETTER AN
["ə"] = "𐬆", -- AVESTAN LETTER AE
["e"] = "𐬈", -- AVESTAN LETTER E
["ē"] = "𐬉", -- AVESTAN LETTER EE
["o"] = "𐬊", -- AVESTAN LETTER O
["ō"] = "𐬋", -- AVESTAN LETTER OO
["i"] = "𐬌", -- AVESTAN LETTER I
["ī"] = "𐬍", -- AVESTAN LETTER II
["u"] = "𐬎", -- AVESTAN LETTER U
["ū"] = "𐬏", -- AVESTAN LETTER UU
["k"] = "𐬐", -- AVESTAN LETTER KE
["x"] = "𐬑", -- AVESTAN LETTER XE
["g"] = "𐬔", -- AVESTAN LETTER GE
["ġ"] = "𐬕", -- AVESTAN LETTER GGE
["γ"] = "𐬖", -- AVESTAN LETTER GHE
["c"] = "𐬗", -- AVESTAN LETTER CE
["j"] = "𐬘", -- AVESTAN LETTER JE
["t"] = "𐬙", -- AVESTAN LETTER TE
["θ"] = "𐬚", -- AVESTAN LETTER THE
["d"] = "𐬛", -- AVESTAN LETTER DE
["δ"] = "𐬜", -- AVESTAN LETTER DHE
["p"] = "𐬞", -- AVESTAN LETTER PE
["f"] = "𐬟", -- AVESTAN LETTER FE
["b"] = "𐬠", -- AVESTAN LETTER BE
["β"] = "𐬡", -- AVESTAN LETTER BHE
["ŋ"] = "𐬢", -- AVESTAN LETTER NGE
["n"] = "𐬥", -- AVESTAN LETTER NE
["ń"] = "𐬦", -- AVESTAN LETTER NYE
["ṇ"] = "𐬧", -- AVESTAN LETTER NNE
["m"] = "𐬨", -- AVESTAN LETTER ME
["ẏ"] = "𐬪", -- AVESTAN LETTER YYE
["y"] = "𐬫", -- AVESTAN LETTER YE
["v"] = "𐬬", -- AVESTAN LETTER VE
["r"] = "𐬭", -- AVESTAN LETTER RE
["l"] = "𐬮", -- AVESTAN LETTER LE
["s"] = "𐬯", -- AVESTAN LETTER SE
["z"] = "𐬰", -- AVESTAN LETTER ZE
["š"] = "𐬱", -- AVESTAN LETTER SHE
["ž"] = "𐬲", -- AVESTAN LETTER ZHE
["h"] = "𐬵", -- AVESTAN LETTER HE
["."] = "⸱", -- WORD SEPARATOR MIDDLE DOT
}
local two_char_mapping ={
["ā̊"] = "𐬃", -- AVESTAN LETTER AAO
["ą̇"] = "𐬅", -- AVESTAN LETTER AAN
["ə̄"] = "𐬇", -- AVESTAN LETTER AEE
["x́"] = "𐬒", -- AVESTAN LETTER XYE
["xᵛ"] = "𐬓", -- AVESTAN LETTER XVE
["t̰"] = "𐬝", -- AVESTAN LETTER TTE
["ŋ́"] = "𐬣", -- AVESTAN LETTER NGYE
["ŋᵛ"] = "𐬤", -- AVESTAN LETTER NGVE
["m̨"] = "𐬩", -- AVESTAN LETTER HME
["š́"] = "𐬳", -- AVESTAN LETTER SHYE
["ṣ̌"] = "𐬴", -- AVESTAN LETTER SSHE
}
function export.tr(text)
text = string.gsub(text, "..", two_char_mapping) -- transliterate letters
text = string.gsub(text, ".", mapping) -- transliterate letters
return text
end
function export.run()
return export.tr("yō. janat̰. ažīm. dahākəm.")
end
return export