Module:typing-aids/data/Mani

This module needs documentation.
Please document this module by describing its purpose and usage on the documentation page.

local data = {}

local U = mw.ustring.char

local acute = U(0x301)	-- acute
local diaeresis = U(0x308)	-- diaeresis
local dot_above = U(0x307)	-- dot above
local dot_below = U(0x323)	-- dot below
local caron = U(0x30C)	-- caron
local circumflex  = U(0x302)	-- circumflex
local macron  = U(0x304)	-- macron
local macron_below  = U(0x331)	-- macron below
local gcaron = U(0x1E7) -- latin small letter g with caron
local scaron = U(0x161) -- latin small letter s with caron

data = {
	[1] = {
		["g" .. caron] = "𐫄", -- ghimel
		["h" .. macron_below] = "𐫆", -- he
		["w" .. dot_above .. dot_below ] = "𐫈", -- ud (conjunction)
		["t" .. macron_below] = "𐫎", -- teth
		["k" .. diaeresis] = "𐫒", -- khaph
		["ʿ" .. diaeresis] = "𐫚", -- aayin
		["q" .. diaeresis] = "𐫠", -- qhoph
		["s" .. caron] = "𐫢", -- shin
		["s" .. acute] = "𐫣", -- sshin
	},
	[2] = {
		["ʾ"] = "𐫀", -- aleph
		["b"] = "𐫁", -- beth
		["g"] = "𐫃", -- gimel
		[gcaron] = "𐫄", -- ghimel
		["d"] = "𐫅", -- daleth
		["w"] = "𐫇", -- waw
		["z"] = "𐫉", -- zayin
		["j"] = "𐫋", -- jayin
		["h"] = "𐫍", -- heth
		["y"] = "𐫏", -- yodh
		["k"] = "𐫐", -- kaph
		["l"] = "𐫓", -- lamedh
		["δ"] = "𐫔", -- dhamedh
		["θ"] = "𐫕", -- thamedh
		["m"] = "𐫖", -- mem
		["n"] = "𐫗", -- nun
		["ʿ"] = "𐫙", -- ayin
		["p"] = "𐫛", -- pe
		["f"] = "𐫜", -- fe
		["c"] = "𐫝", -- sadhe
		["q"] = "𐫞", -- qoph
		["x"] = "𐫟", -- xophh
		["r"] = "𐫡", -- resh
		[scaron] = "𐫢", -- shin
		["s"] = "𐫘", -- samekh
		["t"] = "𐫤", -- taw
		["100"] = "𐫯", -- one hundred
		["10"] = "𐫭", -- ten
		["1"] = "𐫫", -- one
		["5"] = "𐫬", -- five
		["20"] = "𐫮", -- twenty
	},
}

data["Mani-tr"] = {
	{
		["SS"] = "s" .. acute,
	},
	{
		["’"] = "ʾ", ["a" .. circumflex] = "ʾ", ["a" .. macron] = "ʾ", ["A"] = "ʾ",
		["β"] = "b", ["B"] = "b",
		["ɣ"] = gcaron, ["γ"] = gcaron, ["G"] = gcaron,
		["H"] = "h" .. macron_below,
		["W"] = "w" .. dot_above .. dot_below,
		["z" .. circumflex] = "z", ["Z"] = "z",
		["j" .. circumflex] = "j", ["J"] = "j",
		["H"] = "h" .. macron_below,
		["k" .. dot_above] = "k",
		["D"] = "δ",
		["T"] = "θ",
		["e" .. diaeresis] = "ʿ" .. diaeresis,
		["e" .. circumflex] = "ʿ", ["e" .. macron] = "ʿ", ["E"] = "ʿ",
		["c" .. caron] = "c", ["C"] = "c",
		["Q"] = "q" .. diaeresis,
		["q" .. dot_above] = "x",
		["s" .. dot_below] = "s" .. acute,
		["S"] = "s" .. caron,
	},
}

return data