Module:typing-aids/data/Sogd

From Wiktionary, the free dictionary
Jump to navigation Jump to search

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 dot_below = U(0x323)	-- dot below
local caron = U(0x30C)	-- caron
local circumflex  = U(0x302)	-- circumflex
local macron  = U(0x304)	-- macron
local scaron = U(0x161) -- latin small letter s with caron

data = {
	[1] = {
		["c" .. caron] = "𐼿", -- sadhe
		["g" .. caron] = "𐼲", -- gimel
		["s" .. caron] = "𐽁", -- shin
	},
	[2] = {
		["ʾ"] = "𐼰", -- 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
		[scaron] = "𐽁", -- shin
		["t"] = "𐽂", -- taw
		["f"] = "𐽃", -- feth
		["l"] = "𐽄", -- lesh
		["100"] = "𐽔", -- one hundred
		["10"] = "𐽒", -- ten
		["1"] = "𐽑", -- one
		["20"] = "𐽓", -- twenty
	},
}

data["Sogd-tr"] = {
	{
		["’"] = "ʾ", ["a" .. circumflex] = "ʾ", ["a" .. macron] = "ʾ", ["A"] = "ʾ",
		["B"] = "b",
		["G"] = "ɣ",
		["H" .. dot_below] = "x",
		["L"] = "δ",
		["e" .. circumflex] = "ʿ", ["e" .. macron] = "ʿ", ["E"] = "ʿ",
		["S"] = "s" .. caron,
	},
}

return data