Module:Armi-translit

From Linguifex
Jump to navigation Jump to search

Documentation for this module may be created at Module:Armi-translit/doc

local export = {}

local tt = {
	["𐑀"] = "ΚΎ", -- aleph
	["𐑁"] = "b", -- beth
	["𐑂"] = "g", -- gimel
	["𐑃"] = "d", -- daleth
	["𐑄"] = "h", -- he
	["𐑅"] = "w", -- waw
	["𐑆"] = "z", -- zayin
	["𐑇"] = "αΈ₯", -- heth
	["𐑈"] = "ṭ", -- teth
	["𐑉"] = "y", -- yodh
	["𐑊"] = "k", -- khaph
	["𐑋"] = "l", -- lamedh
	["𐑌"] = "m", -- mem
	["𐑍"] = "n", -- nun
	["𐑎"] = "s", -- samekh
	["𐑏"] = "ʿ", -- ayin
	["𐑐"] = "p", -- pe
	["𐑑"] = "αΉ£", -- sadhe
	["𐑒"] = "q", -- qoph
	["𐑓"] = "r", -- resh
	["𐑔"] = "Ε‘", -- shin
	["𐑕"] = "t", -- taw
	["𐑗"] = "|", -- section sign
	["𐑘"] = "1", -- one
	["𐑙"] = "2", -- two
	["𐑚"] = "3", -- three
	["𐑛"] = "10", -- ten
	["𐑜"] = "20", -- twenty
	["𐑝"] = "100", -- one hundred
	["𐑞"] = "1000", -- one thousand
	["𐑟"] = "10000", -- ten thousand
}

function export.tr(text, lang, sc)
	-- Transliterate characters
	text = mw.ustring.gsub(text, '.', tt)
	
	return text
end

return export