Module:Sogd-translit
Jump to navigation
Jump to search
Documentation for this module may be created at Module:Sogd-translit/doc
local export = {}
local tt = {
["饜及"] = "示", -- aleph
["饜急"] = "尾", -- beth
["饜疾"] = "桑", -- gimel
["饜汲"] = "h", -- he
["饜即"] = "w", -- waw
["饜嫉"] = "z", -- zayin
["饜级"] = "x", -- heth
["饜挤"] = "y", -- yodh
["饜几"] = "k", -- kaph
["饜脊"] = "未", -- lamedh
["饜己"] = "m", -- mem
["饜蓟"] = "n", -- nun
["饜技"] = "s", -- samekh
["饜冀"] = "士", -- ayin
["饜季"] = "p", -- pe
["饜伎"] = "c", -- sadhe
["饜絸"] = "r", -- resh-ayin
["饜絹"] = "拧", -- shin
["饜絺"] = "t", -- taw
["饜絻"] = "f", -- fesh
["饜絼"] = "l", -- lesh
["饜絽"] = "拧", -- phonogram shin
["饜絾"] = "", -- dot above
["饜絿"] = "", -- dot above
["饜綀"] = "", -- two dots above
["饜綁"] = "", -- two dots below
["饜綂"] = "", -- curve above
["饜綃"] = "", -- curve below
["饜綄"] = "", -- hook above
["饜綅"] = "", -- hook below
["饜綆"] = "", -- long hook below
["饜綇"] = "", -- resh below
["饜綈"] = "", -- stroke below
["饜綉"] = "1", -- one
["饜綊"] = "10", -- ten
["饜綋"] = "20", -- twenty
["饜綌"] = "100", -- one hundred
}
function export.tr(text, lang, sc)
-- If the script is not Sogd, do not transliterate
if sc ~= "Sogd" then
return
end
-- Transliterate characters
text = mw.ustring.gsub(text, '.', tt)
return text
end
return export