Hopp til innhald

Modul:languages/data/2

Frå Wiktionary - den frie ordboka

Dokumentasjon for modulen kan opprettast på Modul:languages/data/2/dok

-- Nyttige kjelder:

-- Språkrådet: http://www.sprakradet.no/sprakhjelp/Skriverad/Navn_paa_spraak
-- Skulelinux: http://i18n.skolelinux.no/kodar/sprak.html

local u = mw.ustring.char
local m_langdata = require("Module:languages/data")
local c = m_langdata.chars
local p = m_langdata.puaChars
local s = m_langdata.shared

-- Ideally, we want to move these into [[Module:languages/data]], but because (a) it's necessary to use require on that module, and (b) they're only used in this data module, it's less memory-efficient to do that at the moment. If it becomes possible to use mw.loadData, then these should be moved there.
s["no-sortkey"] = {
	from = {"æ", "ø", "å"},
	to = {"z" .. p[1], "z" .. p[2], "z" .. p[3]}
}

s["ru-kyrl-entryname"] = {
	remove_diacritics = c.grave .. c.acute .. c.diaer,
	remove_exceptions = {"Ё", "ё"}
}

s["ru-kyrl-sortkey"] = {
	from = {"ё", "і", "ѣ", "ѳ", "ѵ"},
	to = {"е" .. p[1], "и" .. p[1], "ь" .. p[1], "я" .. p[1], "я" .. p[2]}
}

local m = {}

m["aa"] = {
	"afar",
	27811,
	"cus-eas",
	"latn",
	entry_name = {remove_diacritics = c.acute},
}

m["ab"] = {
	"abkhasisk",
	5111,
	"cau-abz",
	"kyrl, geor, latn",
	translit = {
		kyrl = "ab-translit",
		geor = "geor-translit",
	},
	override_translit = true,
	display_text = {kyrl = s["cau-kyrl-displaytext"]},
	entry_name = {
		kyrl = s["cau-kyrl-entryname"],
		latn = s["cau-Latn-entryname"],
	},
	sort_key = {
		kyrl = {
			from = {
				"х'ә", -- 3 chars
				"гь", "гә", "ӷь", "ҕь", "ӷә", "ҕә", "дә", "ё", "жь", "жә", "ҙә", "ӡә", "ӡ'", "кь", "кә", "қь", "қә", "ҟь", "ҟә", "ҫә", "тә", "ҭә", "ф'", "хь", "хә", "х'", "ҳә", "ць", "цә", "ц'", "ҵә", "ҵ'", "шь", "шә", "џь", -- 2 chars
				"ӷ", "ҕ", "ҙ", "ӡ", "қ", "ҟ", "ԥ", "ҧ", "ҫ", "ҭ", "ҳ", "ҵ", "ҷ", "ҽ", "ҿ", "ҩ", "џ", "ә" -- 1 char
			},
			to = {
				"х" .. p[4],
				"г" .. p[1], "г" .. p[2], "г" .. p[5], "г" .. p[6], "г" .. p[7], "г" .. p[8], "д" .. p[1], "е" .. p[1], "ж" .. p[1], "ж" .. p[2], "з" .. p[2], "з" .. p[4], "з" .. p[5], "к" .. p[1], "к" .. p[2], "к" .. p[4], "к" .. p[5], "к" .. p[7], "к" .. p[8], "с" .. p[2], "т" .. p[1], "т" .. p[3], "ф" .. p[1], "х" .. p[1], "х" .. p[2], "х" .. p[3], "х" .. p[6], "ц" .. p[1], "ц" .. p[2], "ц" .. p[3], "ц" .. p[5], "ц" .. p[6], "ш" .. p[1], "ш" .. p[2], "ы" .. p[3],
				"г" .. p[3], "г" .. p[4], "з" .. p[1], "з" .. p[3], "к" .. p[3], "к" .. p[6], "п" .. p[1], "п" .. p[2], "с" .. p[1], "т" .. p[2], "х" .. p[5], "ц" .. p[4], "ч" .. p[1], "ч" .. p[2], "ч" .. p[3], "ы" .. p[1], "ы" .. p[2], "ь" .. p[1]
			}
		},
	},
}

m["ae"] = {
	"avestisk",
	29572,
	"ira-cen",
	"Avst, Gujr",
	translit = {Avst = "Avst-translit"},
	wikipedia_article = "Avestan",
}

m["af"] = {
	"afrikaans",
	14196,
	"gmw",
	"latn, Arab",
	ancestors = "nl",
	sort_key = {
		latn = {
			remove_diacritics = c.grave .. c.acute .. c.circ .. c.tilde .. c.diaer .. c.ringabove .. c.cedilla .. "'",
			from = {"['ʼ]n"},
			to = {"n" .. p[1]}
		}
	},
}

m["ak"] = {
	"akan",
	28026,
	"alv-ctn",
	"latn",
}

m["am"] = {
	"amharisk",
	28244,
	"sem-eth",
	"Ethi",
	translit = "Ethi-translit",
}

m["an"] = {
	"aragonsk",
	8765,
	"roa-ibe",
	"latn",
	ancestors = "roa-oan",
}

m["ar"] = {
	"arabisk",
	13955,
	"sem-arb",
	"Arab, Hebr, Brai",
	translit = "ar-translit",
	entry_name = {Arab = "ar-entryname"},
	-- put Judeo-Arabic (Hebrew-script Arabic) under the category header
	-- U+FB21 HEBREW LETTER WIDE ALEF so that it sorts after Arabic script titles
	sort_key = {
		Hebr = {
			from = {"^%f[" .. u(0x5D0) .. "-" .. u(0x5EA) .. "]"},
			to = {u(0xFB21)},
		},
	},
}

m["as"] = {
	"assami",
	29401,
	"inc-eas",
	"as-Beng",
	ancestors = "inc-mas",
	translit = "as-translit",
}

m["av"] = {
	"avarisk",
	29561,
	"cau-ava",
	"kyrl, latn, Arab",
	ancestors = "oav",
	translit = {
		kyrl = "cau-nec-translit",
		Arab = "ar-translit",
	},
	override_translit = true,
	display_text = {kyrl = s["cau-kyrl-displaytext"]},
	entry_name = {
		kyrl = s["cau-kyrl-entryname"],
		latn = s["cau-Latn-entryname"],
	},
	sort_key = {
		kyrl = {
			from = {"гъ", "гь", "гӏ", "ё", "кк", "къ", "кь", "кӏ", "лъ", "лӏ", "тӏ", "хх", "хъ", "хь", "хӏ", "цӏ", "чӏ"},
			to = {"г" .. p[1], "г" .. p[2], "г" .. p[3], "е" .. p[1], "к" .. p[1], "к" .. p[2], "к" .. p[3], "к" .. p[4], "л" .. p[1], "л" .. p[2], "т" .. p[1], "х" .. p[1], "х" .. p[2], "х" .. p[3], "х" .. p[4], "ц" .. p[1], "ч" .. p[1]}
		},
	},
}

m["ay"] = {
	"aymara",
	4627,
	"sai-aym",
	"latn",
}

m["az"] = {
	"aserbajdsjansk",
	9292,
	"trk-ogz",
	"latn, kyrl, fa-Arab",
	ancestors = "trk-oat",
	dotted_dotless_i = true,
	entry_name = {["fa-Arab"] = {remove_diacritics = c.kashida .. c.fathatan .. c.dammatan .. c.kasratan .. c.fatha .. c.damma .. c.kasra .. c.shadda .. c.sukun}},
	sort_key = {
		latn = {
			from = {
				"i", -- Ensure "i" comes after "ı".
				"ç", "ə", "ğ", "x", "ı", "q", "ö", "ş", "ü", "w"
			},
			to = {
				"i" .. p[1],
				"c" .. p[1], "e" .. p[1], "g" .. p[1], "h" .. p[1], "i", "k" .. p[1], "o" .. p[1], "s" .. p[1], "u" .. p[1], "z" .. p[1]
			}
		},
		kyrl = {
			from = {"ғ", "ә", "ы", "ј", "ҝ", "ө", "ү", "һ", "ҹ"},
			to = {"г" .. p[1], "е" .. p[1], "и" .. p[1], "и" .. p[2], "к" .. p[1], "о" .. p[1], "у" .. p[1], "х" .. p[1], "ч" .. p[1]}
		},
	},
}

m["ba"] = {
	"basjkirsk",
	13389,
	"trk-kbu",
	"kyrl",
	translit = "ba-translit",
	override_translit = true,
	sort_key = {
		from = {"ғ", "ҙ", "ё", "ҡ", "ң", "ө", "ҫ", "ү", "һ", "ә"},
		to = {"г" .. p[1], "д" .. p[1], "е" .. p[1], "к" .. p[1], "н" .. p[1], "о" .. p[1], "с" .. p[1], "у" .. p[1], "х" .. p[1], "э" .. p[1]}
	},
}

m["be"] = {
	"kviterussisk",
	9091,
	"zle",
	"kyrl, latn",
	ancestors = "zle-ort",
	translit = {kyrl = "be-translit"},
	entry_name = {
		remove_diacritics = c.grave .. c.acute,
		remove_exceptions = {"Ć", "ć", "Ń", "ń", "Ś", "ś", "Ź", "ź"},
	},
	sort_key = {
		kyrl = {
			from = {"ґ", "ё", "і", "ў"},
			to = {"г" .. p[1], "е" .. p[1], "и" .. p[1], "у" .. p[1]}
		},
		latn = {
			from = {"ć", "č", "dz", "dź", "dž", "ch", "ł", "ń", "ś", "š", "ŭ", "ź", "ž"},
			to = {"c" .. p[1], "c" .. p[2], "d" .. p[1], "d" .. p[2], "d" .. p[3], "h" .. p[1], "l" .. p[1], "n" .. p[1], "s" .. p[1], "s" .. p[2], "u" .. p[1], "z" .. p[1], "z" .. p[2]}
		},
	},
}

m["bg"] = {
	"bulgarsk",
	7918,
	"zls",
	"kyrl",
	ancestors = "cu",
	translit = "bg-translit",
	entry_name = {remove_diacritics = c.grave .. c.acute},
}

m["bh"] = {
	"bihari",
	135305,
	"inc-eas",
	"deva",
	ancestors = "inc-mgd",
}

m["bi"] = {
	"bislama",
	35452,
	"crp",
	"latn",
	ancestors = "en",
}

m["bm"] = {
	"Bambara",
	33243,
	"dmn-emn",
	"latn",
	sort_key = {
		from = {"ɛ", "ɲ", "ŋ", "ɔ"},
		to = {"e" .. p[1], "n" .. p[1], "n" .. p[2], "o" .. p[1]}
	},
}

m["bn"] = {
	"bengali",
	9610,
	"inc-eas",
	"Beng, Newa",
	ancestors = "inc-mbn",
	translit = {Beng = "bn-translit"},
}

m["bo"] = {
	"tibetansk",
	34271,
	"sit-tib",
	"Tibt", -- sometimes deva?
	ancestors = "xct",
	translit = "Tibt-translit",
	override_translit = true,
	display_text = s["Tibt-displaytext"],
	entry_name = s["Tibt-entryname"],
	sort_key = "Tibt-sortkey",
}

m["br"] = {
	"bretonsk",
	12107,
	"cel-bry",
	"latn",
	ancestors = "xbm",
	sort_key = {
		from = {"ch", "c['ʼ’]h"},
		to = {"c" .. p[1], "c" .. p[2]}
	},
}

m["ca"] = {
	"katalansk",
	7026,
	"roa-ocr",
	"latn",
	ancestors = "roa-oca",
	sort_key = {
		remove_diacritics = c.grave .. c.acute .. c.diaer .. c.cedilla,
		from = {"l·l"},
		to = {"ll"}
	},
}

m["ce"] = {
	"tsjetsjensk",
	33350,
	"cau-vay",
	"kyrl, latn, Arab",
	translit = {
		kyrl = "cau-nec-translit",
		Arab = "ar-translit",
	},
	override_translit = true,
	display_text = {kyrl = s["cau-kyrl-displaytext"]},
	entry_name = {
		kyrl = s["cau-kyrl-entryname"],
		latn = s["cau-Latn-entryname"],
	},
	sort_key = {
		kyrl = {
			from = {"аь", "гӏ", "ё", "кх", "къ", "кӏ", "оь", "пӏ", "тӏ", "уь", "хь", "хӏ", "цӏ", "чӏ", "юь", "яь"},
			to = {"а" .. p[1], "г" .. p[1], "е" .. p[1], "к" .. p[1], "к" .. p[2], "к" .. p[3], "о" .. p[1], "п" .. p[1], "т" .. p[1], "у" .. p[1], "х" .. p[1], "х" .. p[2], "ц" .. p[1], "ч" .. p[1], "ю" .. p[1], "я" .. p[1]}
		},
	},
}

m["ch"] = {
	"Chamorro",
	33262,
	"poz-sus",
	"latn",
	sort_key = {
		remove_diacritics = "'",
		from = {"å", "ch", "ñ", "ng"},
		to = {"a" .. p[1], "c" .. p[1], "n" .. p[1], "n" .. p[2]}
	},
}

m["co"] = {
	"korsikansk",
	33111,
	"roa-itd",
	"latn",
	sort_key = {
		from = {"chj", "ghj", "sc", "sg"},
		to = {"c" .. p[1], "g" .. p[1], "s" .. p[1], "s" .. p[2]}
	},
}

m["cr"] = {
	"Cree",
	33390,
	"alg",
	"Cans, latn",
	translit = {Cans = "cr-translit"},
}

m["cs"] = {
	"tsjekkisk",
	9056,
	"zlw",
	"latn",
	ancestors = "zlw-ocs",
	sort_key = {
		from = {"á", "č", "ď", "é", "ě", "ch", "í", "ň", "ó", "ř", "š", "ť", "ú", "ů", "ý", "ž"},
		to = {"a" .. p[1], "c" .. p[1], "d" .. p[1], "e" .. p[1], "e" .. p[2], "h" .. p[1], "i" .. p[1], "n" .. p[1], "o" .. p[1], "r" .. p[1], "s" .. p[1], "t" .. p[1], "u" .. p[1], "u" .. p[2], "y" .. p[1], "z" .. p[1]}
	},
}

m["cu"] = {
	"Old Church Slavonic",
	35499,
	"zls",
	"Cyrs, Glag",
	translit = "Cyrs-Glag-translit",
	entry_name = {Cyrs = s["Cyrs-entryname"]},
	sort_key = {Cyrs = s["Cyrs-sortkey"]},
}

m["cv"] = {
	"tsjuvasjisk",
	33348,
	"trk-ogr",
	"kyrl",
	ancestors = "xbo",
	translit = "cv-translit",
	override_translit = true,
	sort_key = {
		from = {"ӑ", "ё", "ӗ", "ҫ", "ӳ"},
		to = {"а" .. p[1], "е" .. p[1], "е" .. p[2], "с" .. p[1], "у" .. p[1]}
	},
}

m["cy"] = {
	"walisisk",
	9309,
	"cel-bry",
	"latn",
	ancestors = "wlm",
	sort_key = {
		remove_diacritics = c.grave .. c.acute .. c.circ .. c.diaer .. "'",
		from = {"ch", "dd", "ff", "ng", "ll", "ph", "rh", "th"},
		to = {"c" .. p[1], "d" .. p[1], "f" .. p[1], "g" .. p[1], "l" .. p[1], "p" .. p[1], "r" .. p[1], "t" .. p[1]}
	},
	standardChars = "A-IL-PR-UWYa-il-pr-uwy0-9ÂâÊêÎîÔôÛûŴŵŶŷ" .. c.punc,
}

m["da"] = {
	"dansk",
	9035,
	"gmq",
	"latn",
	ancestors = "gmq-oda",
	sort_key = {
		from = {"æ", "ø", "å"},
		to = {"z" .. p[1], "z" .. p[2], "z" .. p[3]}
	},
}

m["de"] = {
	"tysk",
	188,
	"gmw",
	"latn, Latf",
	ancestors = "gmh",
	sort_key = {
		remove_diacritics = c.grave .. c.acute .. c.circ .. c.diaer .. c.ringabove,
		from = {"ß"},
		to = {"ss"}
	},
	standardChars = "A-Za-z0-9ÄäÖöÜüß" .. c.punc,
}

m["dv"] = {
	"Dhivehi",
	32656,
	"inc-ins",
	"Thaa, Diak",
	ancestors = "elu-prk",
	translit = {
		Thaa = "dv-translit",
		Diak = "Diak-translit",
	},
	override_translit = true,
}

m["dz"] = {
	"dzongkha",
	33081,
	"sit-tib",
	"Tibt",
	ancestors = "xct",
	translit = "Tibt-translit",
	override_translit = true,
	display_text = s["Tibt-displaytext"],
	entry_name = s["Tibt-entryname"],
	sort_key = "Tibt-sortkey",
}

m["ee"] = {
	"ewe",
	30005,
	"alv-gbe",
	"latn",
	sort_key = {
		remove_diacritics = c.tilde,
		from = {"ɖ", "dz", "ɛ", "ƒ", "gb", "ɣ", "kp", "ny", "ŋ", "ɔ", "ts", "ʋ"},
		to = {"d" .. p[1], "d" .. p[2], "e" .. p[1], "f" .. p[1], "g" .. p[1], "g" .. p[2], "k" .. p[1], "n" .. p[1], "n" .. p[2], "o" .. p[1], "t" .. p[1], "v" .. p[1]}
	},
}

m["el"] = {
	"gresk",
	9129,
	"grk",
	"Grek, Brai",
	ancestors = "grc",
	translit = {Grek = "el-translit"},
	override_translit = true,
	entry_name = {Grek = {remove_diacritics = c.caron .. c.diaerbelow .. c.brevebelow}},
	sort_key = {Grek = s["Grek-sortkey"]},
	standardChars = "ͺ;΄-ώϜϝ" .. c.punc,
}

m["en"] = {
	"engelsk",
	1860,
	"gmw",
	"latn, Brai, Shaw, Dsrt", -- entries in Shaw or Dsrt might require prior discussion
	wikimedia_codes = "en, simple",
	ancestors = "enm",
	sort_key = {
		latn = {
			remove_diacritics = c.grave .. c.acute .. c.circ .. c.tilde .. c.macron .. c.diaer .. c.ringabove .. c.caron .. c.cedilla .. "'",
			from = {"æ", "œ"},
			to = {"ae", "oe"}
		},
	},
	standardChars = "A-Za-z0-9" .. c.punc .. u(0x2800) .. "-" .. u(0x28FF),
}

m["eo"] = {
	"esperanto",
	143,
	"art",
	"latn",
	sort_key = {
		remove_diacritics = c.grave .. c.acute,
		from = {"ĉ", "ĝ", "ĥ", "ĵ", "ŝ", "ŭ"},
		to = {"c" .. p[1], "g" .. p[1], "h" .. p[1], "j" .. p[1], "s" .. p[1], "u" .. p[1]}
	},
	standardChars = "A-PRSTUVZa-prstuvzĉĈĝĜĵĴŝŜŭŬ0-9" .. c.punc,
}

m["es"] = {
	"spansk",
	1321,
	"roa-ibe",
	"latn, Brai",
	ancestors = "osp",
	sort_key = {
		latn = {
			remove_diacritics = c.acute .. c.diaer .. c.cedilla,
			from = {"ñ"},
			to = {"n" .. p[1]}
		},
	},
	standardChars = "A-VXYZa-vxyz0-9ÁáÉéÍíÓóÚúÑñ¿¡" .. c.punc,
}

m["et"] = {
	"estisk",
	9072,
	"urj-fin",
	"latn",
	sort_key = {
		from = {
			"š", "ž", "õ", "ä", "ö", "ü", -- 2 chars
			"z" -- 1 char
		},
		to = {
			"s" .. p[1], "s" .. p[3], "w" .. p[1], "w" .. p[2], "w" .. p[3], "w" .. p[4],
			"s" .. p[2]
		}
	},
}

m["eu"] = {
	"baskisk",
	8752,
	"euq",
	"latn",
	sort_key = {
		from = {"ç", "ñ"},
		to = {"c" .. p[1], "n" .. p[1]}
	},
}

m["fa"] = {
	"persisk",
	9168,
	"ira-swi",
	"fa-Arab",
	ancestors = "pal", -- "ira-mid"
	entry_name = {remove_diacritics = c.fathatan .. c.dammatan .. c.kasratan .. c.kashida .. c.fatha .. c.damma .. c.kasra .. c.shadda .. c.sukun .. c.hamzaabove .. c.superalef},
}

m["ff"] = {
	"fulfulde",
	33454,
	"alv-fwo",
	"latn, Adlm",
}

m["fi"] = {
	"finsk",
	1412,
	"urj-fin",
	"latn",
	entry_name = {remove_diacritics = "ˣ"}, -- used to indicate gemination of the next consonant
	sort_key = {
		remove_diacritics = c.grave .. c.acute .. c.circ .. c.tilde .. c.dacute .. c.caron .. c.cedilla .. "':",
		from = {"ø", "æ", "œ", "ß"},
		to = {"o", "ae", "oe", "ss"}
	},
}

m["fj"] = {
	"fijiansk",
	33295,
	"poz-occ",
	"latn",
}

m["fo"] = {
	"færøysk",
	25258,
	"gmq",
	"latn",
	ancestors = "non",
	sort_key = {
		from = {"á", "ð", "í", "ó", "ú", "ý", "æ", "ø"},
		to = {"a" .. p[1], "d" .. p[1], "i" .. p[1], "o" .. p[1], "u" .. p[1], "y" .. p[1], "z" .. p[1], "z" .. p[2]}
	},
}

m["fr"] = {
	"fransk",
	150,
	"roa-oil",
	"latn, Brai",
	ancestors = "frm",
	sort_key = {latn = s["roa-oil-sortkey"]},
	standardChars = "A-Za-z0-9ÀÂÇÉÈÊËÎÏÔŒÛÙÜàâçéèêëîïôœûùü«»" .. c.punc,
}

m["fy"] = {
	"vestfrisisk",
	27175,
	"gmw-fri",
	"latn",
	ancestors = "ofs",
	sort_key = {
		remove_diacritics = c.grave .. c.acute .. c.circ .. c.diaer,
		from = {"y"},
		to = {"i"}
	},
	standardChars = "A-PR-WYZa-pr-wyz0-9Ææâäàéêëèïìôöòúûüùỳ" .. c.punc,
}

m["ga"] = {
	"irsk",
	9142,
	"cel-gae",
	"latn, Latg",
	ancestors = "mga",
	sort_key = {
		remove_diacritics = c.acute,
		from = {"ḃ", "ċ", "ḋ", "ḟ", "ġ", "ṁ", "ṗ", "ṡ", "ṫ"},
		to = {"bh", "ch", "dh", "fh", "gh", "mh", "ph", "sh", "th"}
	},
	standardChars = "A-IL-PR-Ua-il-pr-u0-9ÁáÉéÍíÓóÚú" .. c.punc,
}

m["gd"] = {
	"skotsk-gælisk",
	9314,
	"cel-gae",
	"latn, Latg",
	ancestors = "mga",
	sort_key = {remove_diacritics = c.grave .. c.acute},
	standardChars = "A-IL-PR-Ua-il-pr-u0-9ÀàÈèÌìÒòÙù" .. c.punc,
}

m["gl"] = {
	"galisisk",
	9307,
	"roa-ibe",
	"latn",
	ancestors = "roa-opt",
	sort_key = {
		remove_diacritics = c.acute,
		from = {"ñ"},
		to = {"n" .. p[1]}
	},
}

m["gn"] = {
	"guarani",
	35876,
	"tup-gua",
	"latn",
}

m["gu"] = {
	"gujarati",
	5137,
	"inc-wes",
	"Gujr",
	ancestors = "inc-mgu",
	translit = "gu-translit",
}

m["gv"] = {
	"manx",
	12175,
	"cel-gae",
	"latn",
	ancestors = "mga",
	sort_key = {remove_diacritics = c.cedilla .. "-"},
	standardChars = "A-WYÇa-wyç0-9" .. c.punc,
}

m["ha"] = {
	"hausa",
	56475,
	"cdc-wst",
	"latn, Arab",
	entry_name = {latn = {remove_diacritics = c.grave .. c.acute .. c.circ .. c.tilde .. c.macron}},
	sort_key = {
		latn = {
			from = {"ɓ", "b'", "ɗ", "d'", "ƙ", "k'", "sh", "ƴ", "'y"},
			to = {"b" .. p[1], "b" .. p[2], "d" .. p[1], "d" .. p[2], "k" .. p[1], "k" .. p[2], "s" .. p[1], "y" .. p[1], "y" .. p[2]}
		},
	},
}

m["he"] = {
	"hebraisk",
	9288,
	"sem-can",
	"Hebr, Phnx, Brai",
	entry_name = {Hebr = {remove_diacritics = u(0x0591) .. "-" .. u(0x05BD) .. u(0x05BF) .. "-" .. u(0x05C5) .. u(0x05C7) .. c.CGJ}},
}

m["hi"] = {
	"hindi",
	1568,
	"inc-hnd",
	"deva, Kthi, Newa",
	ancestors = "inc-ohi",
	translit = {deva = "hi-translit"},
	standardChars = "ँंअ-ऊएऐओ-घच-झट-नप-रलवशसहा-ूेैो-◌्।-॰ड़ढ़" .. c.punc,
}

m["ho"] = {
	"Hiri Motu",
	33617,
	"crp",
	"latn",
	ancestors = "meu",
}

m["ht"] = {
	"Haitian Creole",
	33491,
	"crp",
	"latn",
	ancestors = "fr",
	sort_key = {
		from = {
			"oun", -- 3 chars
			"an", "ch", "è", "en", "ng", "ò", "on", "ou", "ui" -- 2 chars
		},
		to = {
			"o" .. p[4],
			"a" .. p[1], "c" .. p[1], "e" .. p[1], "e" .. p[2], "n" .. p[1], "o" .. p[1], "o" .. p[2], "o" .. p[3], "u" .. p[1]
		}
	},
}

m["hu"] = {
	"ungarsk",
	9067,
	"urj-ugr",
	"latn, Hung",
	ancestors = "ohu",
	sort_key = {
		latn = {
			from = {
				"dzs", -- 3 chars
				"á", "cs", "dz", "é", "gy", "í", "ly", "ny", "ó", "ö", "ő", "sz", "ty", "ú", "ü", "ű", "zs", -- 2 chars
			},
			to = {
				"d" .. p[2],
				"a" .. p[1], "c" .. p[1], "d" .. p[1], "e" .. p[1], "g" .. p[1], "i" .. p[1], "l" .. p[1], "n" .. p[1], "o" .. p[1], "o" .. p[2], "o" .. p[3], "s" .. p[1], "t" .. p[1], "u" .. p[1], "u" .. p[2], "u" .. p[3], "z" .. p[1],
			}
		},
	},
}

m["hy"] = {
	"armensk",
	8785,
	"hyx",
	"Armn, Brai",
	ancestors = "axm",
	translit = {Armn = "Armn-translit"},
	override_translit = true,
	entry_name = {
		Armn = {
			remove_diacritics = "՛՜՞՟",
			from = {"եւ", "<sup>յ</sup>", "<sup>ի</sup>", "<sup>է</sup>"},
			to = {"և", "յ", "ի", "է"}
		},
	},
	sort_key = {
		Armn = {
			from = {
				"ու", "եւ", -- 2 chars
				"և" -- 1 char
			},
			to = {
				"ւ", "եվ",
				"եվ"
			}
		},
	},
}

m["hz"] = {
	"herero",
	33315,
	"bnt-swb",
	"latn",
}

m["ia"] = {
	"Interlingua",
	35934,
	"art",
	"latn",
}

m["id"] = {
	"indonesisk",
	9240,
	"poz-mly",
	"latn",
	ancestors = "ms",
}

m["ie"] = {
	"interlingue",
	35850,
	"art",
	"latn",
	type = "appendix-constructed",
	entry_name = {remove_diacritics = c.grave .. c.acute .. c.circ},
}

m["ig"] = {
	"ibo",
	33578,
	"alv-igb",
	"latn",
	entry_name = {remove_diacritics = c.grave .. c.acute .. c.macron},
	sort_key = {
		from = {"gb", "gh", "gw", "ị", "kp", "kw", "ṅ", "nw", "ny", "ọ", "sh", "ụ"},
		to = {"g" .. p[1], "g" .. p[2], "g" .. p[3], "i" .. p[1], "k" .. p[1], "k" .. p[2], "n" .. p[1], "n" .. p[2], "n" .. p[3], "o" .. p[1], "s" .. p[1], "u" .. p[1]}
	},
}

m["ii"] = {
	"Sichuan Yi",
	34235,
	"tbq-lol",
	"Yiii",
	translit = "ii-translit",
}

m["ik"] = {
	"inupiak",
	27183,
	"esx-inu",
	"latn",
	sort_key = {
		from = {
			"ch", "ġ", "dj", "ḷ", "ł̣", "ñ", "ng", "r̂", "sr", "zr", -- 2 chars
			"ł", "ŋ", "ʼ" -- 1 char
		},
		to = {
			"c" .. p[1], "g" .. p[1], "h" .. p[1], "l" .. p[1], "l" .. p[3], "n" .. p[1], "n" .. p[2], "r" .. p[1], "s" .. p[1], "z" .. p[1],
			"l" .. p[2], "n" .. p[2], "z" .. p[2]
		}
	},
}

m["io"] = {
	"ido",
	35224,
	"art",
	"latn",
}

m["is"] = {
	"islandsk",
	294,
	"gmq",
	"latn",
	ancestors = "non",
	sort_key = {
		from = {"á", "ð", "é", "í", "ó", "ú", "ý", "þ", "æ", "ö"},
		to = {"a" .. p[1], "d" .. p[1], "e" .. p[1], "i" .. p[1], "o" .. p[1], "u" .. p[1], "y" .. p[1], "z" .. p[1], "z" .. p[2], "z" .. p[3]}
	},
}

m["it"] = {
	"italiensk",
	652,
	"roa-itd",
	"latn",
	sort_key = {remove_diacritics = c.grave .. c.acute .. c.circ .. c.diaer .. c.ringabove},
	standardChars = "A-IL-VZa-il-vz0-9ÀàÈèÌìÒòÙùÉé" .. c.punc,
}

m["iu"] = {
	"inuittisk",
	29921,
	"esx-inu",
	"Cans, latn",
	translit = {Cans = "cr-translit"},
	override_translit = true,
}

m["ja"] = {
	"japansk",
	5287,
	"jpx",
	"Jpan, Brai",
	ancestors = "ojp",
	sort_key = {Jpan = "Jpan-sortkey"},
}

m["jv"] = {
	"javanesisk",
	33549,
	"poz-sus",
	"latn, Java",
	ancestors = "kaw",
	translit = {Java = "jv-translit"},
	link_tr = true,
	sort_key = {
		latn = {
			from = {"dh", "é", "è", "ng", "ny", "th"},
			to = {"d" .. p[1], "e" .. p[1], "e" .. p[2], "n" .. p[1], "n" .. p[2], "t" .. p[1]}
		},
	},
}

m["ka"] = {
	"georgisk",
	8108,
	"ccs-gzn",
	"geor, Geok, Hebr", -- Hebr is used to write Judeo-georgian
	ancestors = "oge",
	translit = {
		geor = "geor-translit",
		Geok = "Geok-translit",
	},
	override_translit = true,
	entry_name = {remove_diacritics = c.circ},
}

m["kg"] = {
	"Kongo",
	33702,
	"bnt-kng",
	"latn",
}

m["ki"] = {
	"kikuyu",
	33587,
	"bnt-kka",
	"latn",
}

m["kj"] = {
	"Kwanyama",
	1405077,
	"bnt-ova",
	"latn",
}

m["kk"] = {
	"kasakhisk",
	9252,
	"trk-kno",
	"kyrl, latn, kk-Arab",
	translit = {
		kyrl = {
			from = {
				"Ё", "ё", "Й", "й", "Нг", "нг", "Ӯ", "ӯ", -- 2 chars; are "Ӯ" and "ӯ" actually used?
				"А", "а", "Ә", "ә", "Б", "б", "В", "в", "Г", "г", "Ғ", "ғ", "Д", "д", "Е", "е", "Ж", "ж", "З", "з", "И", "и", "К", "к", "Қ", "қ", "Л", "л", "М", "м", "Н", "н", "Ң", "ң", "О", "о", "Ө", "ө", "П", "п", "Р", "р", "С", "с", "Т", "т", "У", "у", "Ұ", "ұ", "Ү", "ү", "Ф", "ф", "Х", "х", "Һ", "һ", "Ц", "ц", "Ч", "ч", "Ш", "ш", "Щ", "щ", "Ъ", "ъ", "Ы", "ы", "І", "і", "Ь", "ь", "Э", "э", "Ю", "ю", "Я", "я", -- 1 char
			},
			to = {
				"E", "e", "İ", "i", "Ñ", "ñ", "U", "u",
				"A", "a", "Ä", "ä", "B", "b", "V", "v", "G", "g", "Ğ", "ğ", "D", "d", "E", "e", "J", "j", "Z", "z", "İ", "i", "K", "k", "Q", "q", "L", "l", "M", "m", "N", "n", "Ñ", "ñ", "O", "o", "Ö", "ö", "P", "p", "R", "r", "S", "s", "T", "t", "U", "u", "Ū", "ū", "Ü", "ü", "F", "f", "X", "x", "H", "h", "S", "s", "Ç", "ç", "Ş", "ş", "Şş", "şş", "", "", "Y", "y", "I", "ı", "", "", "É", "é", "Ü", "ü", "Ä", "ä",
			}
		}
	},
	override_translit = true,
	sort_key = {
		kyrl = {
			from = {"ә", "ғ", "ё", "қ", "ң", "ө", "ұ", "ү", "һ", "і"},
			to = {"а" .. p[1], "г" .. p[1], "е" .. p[1], "к" .. p[1], "н" .. p[1], "о" .. p[1], "у" .. p[1], "у" .. p[2], "х" .. p[1], "ы" .. p[1]}
		},
	},
}

m["kl"] = {
	"grønlandsk",
	25355,
	"esx-inu",
	"latn",
	sort_key = {
		from = {"æ", "ø", "å"},
		to = {"z" .. p[1], "z" .. p[2], "z" .. p[3]}
	}
}

m["km"] = {
	"sentralt khmer",
	9205,
	"mkh-kmr",
	"Khmr",
	ancestors = "xhm",
	translit = "km-translit",
}

m["kn"] = {
	"kannada",
	33673,
	"dra",
	"Knda",
	ancestors = "dra-mkn",
	translit = "kn-translit",
}

m["ko"] = {
	"koreansk",
	9176,
	"qfa-kor",
	"Kore, Brai",
	ancestors = "ko-ear",
	translit = {Kore = "ko-translit"},
	entry_name = {Kore = s["Kore-entryname"]},
}

m["kr"] = {
	"Kanuri",
	36094,
	"ssa-sah",
	"latn, Arab",
	entry_name = {latn = {remove_diacritics = c.grave .. c.acute .. c.circ .. c.breve}}, -- the sortkey and entry_name are only for standard Kanuri; when dialectal entries get added, someone will have to work out how the dialects should be represented orthographically
	sort_key = {
		latn = {
			from = {"ǝ", "ny", "ɍ", "sh"},
			to = {"e" .. p[1], "n" .. p[1], "r" .. p[1], "s" .. p[1]}
		},
	},
}

m["ks"] = {
	"kasjmiri",
	33552,
	"inc-dar",
	"ks-Arab, deva, Shrd, latn",
	translit = {
		["ks-Arab"] = "ks-Arab-translit",
		deva = "ks-deva-translit",
		Shrd = "Shrd-translit",
	},
}

-- "kv" IS TREATED AS "koi", "kpv", SEE WT:LT

m["kw"] = {
	"kornisk",
	25289,
	"cel-bry",
	"latn",
	ancestors = "cnx",
	sort_key = {
		from = {"ch"},
		to = {"c" .. p[1]}
	},
}

m["ky"] = {
	"kirgisisk",
	9255,
	"trk-kip",
	"kyrl, latn, Arab",
	translit = {kyrl = "ky-translit"},
	override_translit = true,
	sort_key = {
		kyrl = {
			from = {"ё", "ң", "ө", "ү"},
			to = {"е" .. p[1], "н" .. p[1], "о" .. p[1], "у" .. p[1]}
		},
	},
}

m["la"] = {
	"latin",
	397,
	"itc",
	"latn, Ital",
	entry_name = {latn = {remove_diacritics = c.macron .. c.breve .. c.diaer .. c.dinvbreve}},
	sort_key = {
		latn = {
			from = {"æ", "œ"},
			to = {"ae", "oe"}
		},
	},
	standardChars = "A-Za-z0-9Æ挜Ā-ăĒ-ĕĪ-ĭŌ-ŏŪ-ŭȲȳ" .. c.macron .. c.breve .. c.punc,
}

m["lb"] = {
	"luxembourgsk",
	9051,
	"gmw",
	"latn",
	ancestors = "gmw-cfr",
	sort_key = {
		from = {"ä", "ë", "é"},
		to = {"z" .. p[1], "z" .. p[2], "z" .. p[3]}
	},
}

m["lg"] = {
	"Luganda",
	33368,
	"bnt-nyg",
	"latn",
	entry_name = {remove_diacritics = c.acute .. c.circ},
	sort_key = {
		from = {"ŋ"},
		to = {"n" .. p[1]}
	},
}

m["li"] = {
	"Limburgish",
	102172,
	"gmw",
	"latn",
	ancestors = "dum",
}

m["ln"] = {
	"Lingala",
	36217,
	"bnt-bmo",
	"latn",
	sort_key = {
		remove_diacritics = c.acute .. c.circ .. c.caron,
		from = {"ɛ", "gb", "mb", "mp", "nd", "ng", "nk", "ns", "nt", "ny", "nz", "ɔ"},
		to = {"e" .. p[1], "g" .. p[1], "m" .. p[1], "m" .. p[2], "n" .. p[1], "n" .. p[2], "n" .. p[3], "n" .. p[4], "n" .. p[5], "n" .. p[6], "n" .. p[7], "o" .. p[1]}
	},
}

m["lo"] = {
	"laotisk",
	9211,
	"tai-swe",
	"Laoo",
	translit = "lo-translit",
	sort_key = "Laoo-sortkey",
	standardChars = "0-9ກຂຄງຈຊຍດຕຖທນບປຜຝພຟມຢຣລວສຫອຮຯ-ໝ" .. c.punc,
}

m["lt"] = {
	"litauisk",
	9083,
	"bat",
	"latn",
	ancestors = "olt",
	entry_name = {remove_diacritics = c.grave .. c.acute .. c.tilde},
	sort_key = {
		from = {"ą", "č", "ę", "ė", "į", "y", "š", "ų", "ū", "ž"},
		to = {"a" .. p[1], "c" .. p[1], "e" .. p[1], "e" .. p[2], "i" .. p[1], "i" .. p[2], "s" .. p[1], "u" .. p[1], "u" .. p[2], "z" .. p[1]}
	},
}

m["lu"] = {
	"Luba-Katanga",
	36157,
	"bnt-lub",
	"latn",
}

m["lv"] = {
	"latvisk",
	9078,
	"bat",
	"latn",
	entry_name = {
		-- This attempts to convert vowels with tone marks to vowels either with or without macrons. Specifically, there should be no macrons if the vowel is part of a diphthong (including resonant diphthongs such pìrksts -> pirksts not #pīrksts). What we do is first convert the vowel + tone mark to a vowel + tilde in a decomposed fashion, then remove the tilde in diphthongs, then convert the remaining vowel + tilde sequences to macroned vowels, then delete any other tilde. We leave already-macroned vowels alone: Both e.g. ar and ār occur before consonants. FIXME: This still might not be sufficient.
		from = {"([Ee])" .. c.cedilla, "[" .. c.grave .. c.circ .. c.tilde .."]", "([aAeEiIoOuU])" .. c.tilde .."?([lrnmuiLRNMUI])" .. c.tilde .. "?([^aAeEiIoOuU])", "([aAeEiIoOuU])" .. c.tilde .."?([lrnmuiLRNMUI])" .. c.tilde .."?$", "([iI])" .. c.tilde .. "?([eE])" .. c.tilde .. "?", "([aAeEiIuU])" .. c.tilde, c.tilde},
		to = {"%1", c.tilde, "%1%2%3", "%1%2", "%1%2", "%1" .. c.macron}
	},
	sort_key = {
		from = {"ā", "č", "ē", "ģ", "ī", "ķ", "ļ", "ņ", "š", "ū", "ž"},
		to = {"a" .. p[1], "c" .. p[1], "e" .. p[1], "g" .. p[1], "i" .. p[1], "k" .. p[1], "l" .. p[1], "n" .. p[1], "s" .. p[1], "u" .. p[1], "z" .. p[1]}
	},
}

m["mg"] = {
	"gassisk",
	7930,
	"poz-bre",
	"latn",
}

m["mh"] = {
	"marshallesisk",
	36280,
	"poz-mic",
	"latn",
	sort_key = {
		from = {"ā", "ļ", "m̧", "ņ", "n̄", "o̧", "ō", "ū"},
		to = {"a" .. p[1], "l" .. p[1], "m" .. p[1], "n" .. p[1], "n" .. p[2], "o" .. p[1], "o" .. p[2], "u" .. p[1]}
	},
}

m["mi"] = {
	"maori",
	36451,
	"poz-pep",
	"latn",
	sort_key = {
		remove_diacritics = c.macron,
		from = {"ng", "wh"},
		to = {"z" .. p[1], "z" .. p[2]}
	},
}

m["mk"] = {
	"makedonsk",
	9296,
	"zls",
	"kyrl",
	translit = "mk-translit",
	entry_name = {
		remove_diacritics = c.acute,
		remove_exceptions = {"Ѓ", "ѓ", "Ќ", "ќ"}
	},
	sort_key = {
		remove_diacritics = c.grave,
		from = {"ѓ", "ѕ", "ј", "љ", "њ", "ќ", "џ"},
		to = {"д" .. p[1], "з" .. p[1], "и" .. p[1], "л" .. p[1], "н" .. p[1], "т" .. p[1], "ч" .. p[1]}
	},
}

m["ml"] = {
	"malayalam",
	36236,
	"dra",
	"Mlym",
	translit = "ml-translit",
	override_translit = true,
}

m["mn"] = {
	"mongolsk",
	9246,
	"xgn",
	"kyrl, Mong, latn",
	ancestors = "cmg",
	translit = {
		kyrl = "mn-translit",
		Mong = "Mong-translit",
	},
	override_translit = true,
	display_text = {Mong = s["Mong-displaytext"]},
	entry_name = {
		kyrl = {remove_diacritics = c.grave .. c.acute},
		Mong = s["Mong-entryname"],
	},
	sort_key = {
		kyrl = {
			remove_diacritics = c.grave,
			from = {"ё", "ө", "ү"},
			to = {"е" .. p[1], "о" .. p[1], "у" .. p[1]}
		},
	},
	standardChars = "A-PR-UX-Za-pr-ux-zÇÖÜçöüŞşƟƵƶɵЁА-ШЫ-шы-яёҮүӨө—᠊-᠙ᠠ-ᡂ" .. c.punc,
}

-- "mo" IS TREATED AS "ro", SEE WT:LT

m["mr"] = {
	"marathi",
	1571,
	"inc-sou",
	"deva, Modi",
	ancestors = "omr",
	translit = {
		deva = "mr-translit",
		Modi = "mr-Modi-translit",
	},
	entry_name = {
		deva = {
			from = {"च़", "ज़", "झ़"},
			to = {"च", "ज", "झ"}
		},
	},
}

m["ms"] = {
	"malayisk",
	9237,
	"poz-mly",
	"latn, ms-Arab",
}

m["mt"] = {
	"maltesisk",
	9166,
	"sem-arb",
	"latn",
	ancestors = "sqr",
	sort_key = {
		from = {
			"ċ", "ġ", "ż", -- Convert into PUA so that decomposed form does not get caught by the next step.
			"([cgz])", -- Ensure "c" comes after "ċ", "g" comes after "ġ" and "z" comes after "ż".
			"g" .. p[1] .. "ħ", -- "għ" after initial conversion of "g".
			p[3], p[4], "ħ", "ie", p[5] -- Convert "ċ", "ġ", "ħ", "ie", "ż" into final output.
		},
		to = {
			p[3], p[4], p[5],
			"%1" .. p[1],
			"g" .. p[2],
			"c", "g", "h" .. p[1], "i" .. p[1], "z"
		}
	},
}

m["my"] = {
	"burmesisk",
	9228,
	"tbq-brm",
	"Mymr",
	ancestors = "obr",
	translit = "my-translit",
	override_translit = true,
	sort_key = {
		from = {"ျ", "ြ", "ွ", "ှ", "ဿ"},
		to = {"္ယ", "္ရ", "္ဝ", "္ဟ", "သ္သ"}
	},
}

m["na"] = {
	"naurisk",
	13307,
	"poz-mic",
	"latn",
}

m["nb"] = {
	"bokmål",
	25167,
	"gmq",
	"latn",
	wikimedia_codes = "no",
	ancestors = {"gmq-mno", "da"},
	sort_key = s["no-sortkey"],
}

m["nd"] = {
	"Northern Ndebele",
	35613,
	"bnt-ngu",
	"latn",
	entry_name = {remove_diacritics = c.grave .. c.acute .. c.circ .. c.macron .. c.caron},
}

m["ne"] = {
	"nepali",
	33823,
	"inc-pah",
	"deva, Newa",
	translit = {deva = "ne-translit"},
}

m["ng"] = {
	"Ndonga",
	33900,
	"bnt-ova",
	"latn",
}

m["nl"] = {
	"nederlandsk",
	7411,
	"gmw",
	"latn",
	ancestors = "dum",
	sort_key = {remove_diacritics = c.grave .. c.acute .. c.circ .. c.tilde .. c.diaer .. c.ringabove .. c.cedilla .. "'"},
	standardChars = "A-Za-z0-9" .. c.punc .. u(0x2800) .. "-" .. u(0x28FF),
}

m["nn"] = {
	"nynorsk",
	25164,
	"gmq",
	"latn",
	ancestors = "gmq-mno",
	sort_key = s["no-sortkey"],
}

m["no"] = {
	"norsk",
	9043,
	"gmq",
	"latn",
	ancestors = "gmq-mno",
	sort_key = s["no-sortkey"],
}

m["nr"] = {
	"Southern Ndebele",
	36785,
	"bnt-ngu",
	"latn",
	entry_name = {remove_diacritics = c.grave .. c.acute .. c.circ .. c.macron .. c.caron},
}

m["nv"] = {
	"navaho",
	13310,
	"apa",
	"latn",
	sort_key = {
		remove_diacritics = c.acute .. c.ogonek,
		from = {
			"chʼ", "tłʼ", "tsʼ", -- 3 chars
			"ch", "dl", "dz", "gh", "hw", "kʼ", "kw", "sh", "tł", "ts", "zh", -- 2 chars
			"ł", "ʼ" -- 1 char
		},
		to = {
			"c" .. p[2], "t" .. p[2], "t" .. p[4],
			"c" .. p[1], "d" .. p[1], "d" .. p[2], "g" .. p[1], "h" .. p[1], "k" .. p[1], "k" .. p[2], "s" .. p[1], "t" .. p[1], "t" .. p[3], "z" .. p[1],
			"l" .. p[1], "z" .. p[2]
		}
	},
}

m["ny"] = {
	"Chichewa",
	33273,
	"bnt-nys",
	"latn",
	entry_name = {remove_diacritics = c.acute .. c.circ},
	sort_key = {
		from = {"ng'"},
		to = {"ng"}
	},
}

m["oc"] = {
	"Occitan",
	14185,
	"roa-ocr",
	"latn, Hebr",
	ancestors = "pro",
	sort_key = {
		latn = {
			remove_diacritics = c.grave .. c.acute .. c.diaer .. c.cedilla,
			from = {"([lns])·h"},
			to = {"%1h"}
		},
	},
}

m["oj"] = {
	"Ojibwe",
	33875,
	"alg",
	"Cans, latn",
	sort_key = {
		latn = {
			from = {"aa", "ʼ", "ii", "oo", "sh", "zh"},
			to = {"a" .. p[1], "h" .. p[1], "i" .. p[1], "o" .. p[1], "s" .. p[1], "z" .. p[1]}
		},
	},
}

m["om"] = {
	"oromo",
	33864,
	"cus-eas",
	"latn, Ethi",
}

m["or"] = {
	"oriya",
	33810,
	"inc-eas",
	"Orya",
	ancestors = "inc-mor",
	translit = "or-translit",
}

m["os"] = {
	"ossetisk",
	33968,
	"xsc",
	"kyrl, geor, latn",
	ancestors = "oos",
	translit = {
		kyrl = "os-translit",
		geor = "geor-translit",
	},
	override_translit = true,
	entry_name = {kyrl = {remove_diacritics = c.grave .. c.acute}},
	sort_key = {
		kyrl = {
			from = {"ӕ", "гъ", "дж", "дз", "ё", "къ", "пъ", "тъ", "хъ", "цъ", "чъ"},
			to = {"а" .. p[1], "г" .. p[1], "д" .. p[1], "д" .. p[2], "е" .. p[1], "к" .. p[1], "п" .. p[1], "т" .. p[1], "х" .. p[1], "ц" .. p[1], "ч" .. p[1]}
		},
	},
}

m["pa"] = {
	"panjabi",
	58635,
	"inc-pan",
	"Guru, pa-Arab",
	ancestors = "inc-opa",
	translit = {
		Guru = "Guru-translit",
		["pa-Arab"] = "pa-Arab-translit",
	},
	entry_name = {
		["pa-Arab"] = {
			remove_diacritics = c.fathatan .. c.dammatan .. c.kasratan .. c.fatha .. c.damma .. c.kasra .. c.shadda .. c.sukun .. c.nunghunna,
			from = {"ݨ", "ࣇ"},
			to = {"ن", "ل"}
		},
	},
}

m["pi"] = {
	"pali",
	36727,
	"inc-mid",
	"latn, Brah, deva, Beng, Sinh, Mymr, thai, Lana, Laoo, Khmr, Cakm",
	ancestors = "sa",
	translit = {
		Brah = "Brah-translit",
		deva = "sa-translit",
		Beng = "pi-translit",
		Sinh = "si-translit",
		Mymr = "pi-translit",
		thai = "pi-translit",
		Lana = "pi-translit",
		Laoo = "pi-translit",
		Khmr = "pi-translit",
		Cakm = "Cakm-translit",
	},
	entry_name = {
		thai = {
			from = {"ึ", u(0xF700), u(0xF70F)}, -- FIXME: Not clear what's going on with the PUA characters here.
			to = {"ิํ", "ฐ", "ญ"}
		},
		remove_diacritics = c.VS01
	},
	sort_key = { -- FIXME: This needs to be converted into the current standardized format.
		from = {"ā", "ī", "ū", "ḍ", "ḷ", "m[" .. c.dotabove .. c.dotbelow .. "]", "ṅ", "ñ", "ṇ", "ṭ", "([เโ])([ก-ฮ])", "([ເໂ])([ກ-ຮ])", "ᩔ", "ᩕ", "ᩖ", "ᩘ", "([ᨭ-ᨱ])ᩛ", "([ᨷ-ᨾ])ᩛ", "ᩤ", u(0xFE00), u(0x200D)},
		to = {"a~", "i~", "u~", "d~", "l~", "m~", "n~", "n~~", "n~~~", "t~", "%2%1", "%2%1", "ᩈ᩠ᩈ", "᩠ᩁ", "᩠ᩃ", "ᨦ᩠", "%1᩠ᨮ", "%1᩠ᨻ", "ᩣ"}
	},
}

m["pl"] = {
	"polsk",
	809,
	"zlw-lch",
	"latn",
	ancestors = "zlw-opl",
	sort_key = {
		from = {"ą", "ć", "ę", "ł", "ń", "ó", "ś", "ź", "ż"},
		to = {"a" .. p[1], "c" .. p[1], "e" .. p[1], "l" .. p[1], "n" .. p[1], "o" .. p[1], "s" .. p[1], "z" .. p[1], "z" .. p[2]}
	},
}

m["ps"] = {
	"pashto",
	58680,
	"ira-pat",
	"ps-Arab",
	entry_name = {remove_diacritics = c.fathatan .. c.dammatan .. c.kasratan .. c.kashida .. c.fatha .. c.damma .. c.kasra .. c.shadda .. c.sukun .. c.hamzaabove .. c.superalef},
}

m["pt"] = {
	"portugisisk",
	5146,
	"roa-ibe",
	"latn, Brai",
	ancestors = "roa-opt",
	sort_key = {latn = {remove_diacritics = c.grave .. c.acute .. c.circ .. c.tilde .. c.diaer .. c.cedilla}},
}

m["qu"] = {
	"quechua",
	5218,
	"qwe",
	"latn",
}

m["rm"] = {
	"retoromansk",
	13199,
	"roa-rhe",
	"latn",
}

m["ro"] = {
	"rumensk",
	7913,
	"roa-eas",
	"latn, kyrl",
	sort_key = {
		latn = {
			from = {"ă", "â", "î", "ș", "ț"},
			to = {"a" .. p[1], "a" .. p[2], "i" .. p[1], "s" .. p[1], "t" .. p[1]}
		},
		kyrl = {
			from = {"ӂ"},
			to = {"ж" .. p[1]}
		},
	},
}

m["ru"] = {
	"russisk",
	7737,
	"zle",
	"kyrl, Cyrs, Brai",
	translit = {
		kyrl = "ru-translit",
		Cyrs = "ru-translit",
	},
	entry_name = {
		kyrl = s["ru-kyrl-entryname"],
		Cyrs = s["ru-kyrl-entryname"],
	},
	sort_key = {
		kyrl = s["ru-kyrl-sortkey"],
		Cyrs = s["ru-kyrl-sortkey"],
	},
	standardChars = "ЁА-яё0-9—" .. c.punc,
}

m["rw"] = {
	"Kinyarwanda",
	3217514,
	"bnt-glb",
	"latn",
	entry_name = {remove_diacritics = c.acute .. c.circ .. c.macron .. c.caron},
}

m["sa"] = {
	"sanskrit",
	11059,
	"inc-old",
	"deva, Bali, as-Beng, Beng, Bhks, Brah, Gran, Gujr, Guru, Hani, Java, Kawi, Khar, Khmr, Knda, Lana, Laoo, Marc, Mlym, Modi, Mong, mnc-Mong, xwo-Mong, Mymr, Nand, Newa, Orya, Phag, Ranj, Saur, Shrd, Sidd, Sinh, Taml, Tang, Telu, thai, Tibt, Tirh",
	translit = {
		deva = "sa-translit",
		["as-Beng"] = "sa-Beng-translit",
		Beng = "sa-Beng-translit",
		Brah = "Brah-translit",
		Gujr = "sa-Gujr-translit",
		Java = "sa-Java-translit",
		Khmr = "pi-translit",
		Knda = "sa-Knda-translit",
		Lana = "pi-translit",
		Laoo = "pi-translit",
		Modi = "sa-Modi-translit",
		Mong = "Mong-translit",
		["mnc-Mong"] = "mnc-translit",
		["xwo-Mong"] = "xal-translit",
		Mymr = "pi-translit",
		Orya = "sa-Orya-translit",
		Sinh = "si-translit",
		thai = "pi-translit",
		Tibt = "Tibt-translit",
	},
	display_text = {
	},
	entry_name = {
		Mong = s["Mong-displaytext"],
		Tibt = s["Tibt-displaytext"],
		thai = {
			from = {"ึ", u(0xF700), u(0xF70F)}, -- FIXME: Not clear what's going on with the PUA characters here.
			to = {"ิํ", "ฐ", "ญ"}
		},
		remove_diacritics = c.VS01
	},
	sort_key = {
		Tibt = "Tibt-sortkey",
		{ -- FIXME: This needs to be converted into the current standardized format.
			from = {"ā", "ī", "ū", "ḍ", "ḷ", "ḹ", "m[" .. c.dotabove .. c.dotbelow .. "]", "ṅ", "ñ", "ṇ", "ṛ", "ṝ", "ś", "ṣ", "ṭ", "([เโไ])([ก-ฮ])", "([ເໂໄ])([ກ-ຮ])", "ᩔ", "ᩕ", "ᩖ", "ᩘ", "([ᨭ-ᨱ])ᩛ", "([ᨷ-ᨾ])ᩛ", "ᩤ", u(0xFE00), u(0x200D)},
			to = {"a~", "i~", "u~", "d~", "l~", "l~~", "m~", "n~", "n~~", "n~~~", "r~", "r~~", "s~", "s~~", "t~", "%2%1", "%2%1", "ᩈ᩠ᩈ", "᩠ᩁ", "᩠ᩃ", "ᨦ᩠", "%1᩠ᨮ", "%1᩠ᨻ", "ᩣ"},
		},
	},
}

m["sc"] = {
	"sardisk",
	33976,
	"roa",
	"latn",
}

m["sd"] = {
	"Sindhi",
	33997,
	"inc-snd",
	"sd-Arab, deva, Sind, Khoj",
	translit = {Sind = "Sind-translit"},
	entry_name = {
		["sd-Arab"] = {
			remove_diacritics = c.kashida .. c.fathatan .. c.dammatan .. c.kasratan .. c.fatha .. c.damma .. c.kasra .. c.shadda .. c.sukun .. c.superalef,
			from = {"ٱ"},
			to = {"ا"}
		},
	},
	ancestors = "inc-vra",
}

m["se"] = {
	"nordsamisk",
	33947,
	"smi",
	"latn",
	display_text = {
		from = {"'"},
		to = {"ˈ"}
	},
	entry_name = {remove_diacritics = c.macron .. c.dotbelow .. "'ˈ"},
	sort_key = {
		from = {"á", "č", "đ", "ŋ", "š", "ŧ", "ž"},
		to = {"a" .. p[1], "c" .. p[1], "d" .. p[1], "n" .. p[1], "s" .. p[1], "t" .. p[1], "z" .. p[1]}
	},
	standardChars = "A-PR-VZa-pr-vz0-9ÁáČčĐđŊŋŠšŦŧŽž" .. c.punc,
}

m["sg"] = {
	"sango",
	33954,
	"crp",
	"latn",
	ancestors = "ngb",
}

m["sh"] = {
	"Serbo-Croatian",
	9301,
	"zls",
	"latn, kyrl, Glag",
	wikimedia_codes = "sh, bs, hr, sr",
	entry_name = {
		latn = {
			remove_diacritics = c.grave .. c.acute .. c.tilde .. c.macron .. c.dgrave .. c.invbreve,
			remove_exceptions = {"Ć", "ć", "Ś", "ś", "Ź", "ź"}
		},
		kyrl = {
			remove_diacritics = c.grave .. c.acute .. c.tilde .. c.macron .. c.dgrave .. c.invbreve,
			remove_exceptions = {"З́", "з́", "С́", "с́"}
		},
	},
	sort_key = {
		latn = {
			from = {"č", "ć", "dž", "đ", "lj", "nj", "š", "ś", "ž", "ź"},
			to = {"c" .. p[1], "c" .. p[2], "d" .. p[1], "d" .. p[2], "l" .. p[1], "n" .. p[1], "s" .. p[1], "s" .. p[2], "z" .. p[1], "z" .. p[2]}
		},
		kyrl = {
			from = {"ђ", "з́", "ј", "љ", "њ", "с́", "ћ", "џ"},
			to = {"д" .. p[1], "з" .. p[1], "и" .. p[1], "л" .. p[1], "н" .. p[1], "с" .. p[1], "т" .. p[1], "ч" .. p[1]}
		},
	},
}

m["si"] = {
	"singalesisk",
	13267,
	"inc-ins",
	"Sinh",
	ancestors = "elu-prk",
	translit = "si-translit",
	override_translit = true,
}

m["sk"] = {
	"slovakisk",
	9058,
	"zlw",
	"latn",
	sort_key = {remove_diacritics = c.acute .. c.circ .. c.diaer},
}

m["sl"] = {
	"slovensk",
	9063,
	"zls",
	"latn",
	entry_name = {
		remove_diacritics = c.grave .. c.acute .. c.circ .. c.macron .. c.dgrave .. c.invbreve .. c.dotbelow,
		from = {"Ə", "ə", "Ł", "ł"},
		to = {"E", "e", "L", "l"}
	},
	sort_key = {
		remove_diacritics = c.tilde .. c.dotabove .. c.diaer .. c.ringabove .. c.ringbelow .. c.ogonek,
		from = {"č", "š", "ž"},
		to = {"c" .. p[1], "s" .. p[1], "z" .. p[1]}
	},
}

m["sm"] = {
	"samoansk",
	34011,
	"poz-pnp",
	"latn",
}

m["sn"] = {
	"shona",
	34004,
	"bnt-sho",
	"latn",
	entry_name = {remove_diacritics = c.acute},
}

m["so"] = {
	"somali",
	13275,
	"cus-eas",
	"latn, Arab, Osma",
	entry_name = {latn = {remove_diacritics = c.grave .. c.acute .. c.circ}},
}

m["sq"] = {
	"albansk",
	8748,
	"sqj",
	"latn, Grek, Elba",
	entry_name = {remove_diacritics = c.acute},
	sort_key = {remove_diacritics = c.circ .. c.tilde .. c.diaer .. c.cedilla},
}

m["ss"] = {
	"Swazi",
	34014,
	"bnt-ngu",
	"latn",
	entry_name = {remove_diacritics = c.grave .. c.acute .. c.circ .. c.macron .. c.caron},
}

m["st"] = {
	"sørsotho",
	34340,
	"bnt-sts",
	"latn",
	entry_name = {remove_diacritics = c.grave .. c.acute .. c.circ .. c.macron .. c.caron},
}

m["su"] = {
	"sundanesisk",
	34002,
	"poz-msa",
	"latn, Sund",
	ancestors = "osn",
	translit = {Sund = "su-translit"},
}

m["sv"] = {
	"svensk",
	9027,
	"gmq",
	"latn",
	ancestors = "gmq-osw",
}

m["sw"] = {
	"swahili",
	7838,
	"bnt-swh",
	"latn, Arab",
	sort_key = {
		latn = {
			from = {"ng'"},
			to = {"ng" .. p[1]}
		},
	},
}

m["ta"] = {
	"tamil",
	5885,
	"dra",
	"Taml",
	ancestors = "oty",
	translit = "ta-translit",
	override_translit = true,
}

m["te"] = {
	"telugu",
	8097,
	"dra",
	"Telu",
	translit = "te-translit",
	override_translit = true,
}

m["tg"] = {
	"tadsjikisk",
	9260,
	"ira-swi",
	"kyrl, fa-Arab, latn",
	ancestors = "fa-cls",
	translit = {kyrl = "tg-translit"},
	override_translit = true,
	entry_name = {remove_diacritics = c.grave .. c.acute},
	sort_key = {
		kyrl = {
			from = {"ғ", "ё", "ӣ", "қ", "ӯ", "ҳ", "ҷ"},
			to = {"г" .. p[1], "е" .. p[1], "и" .. p[1], "к" .. p[1], "у" .. p[1], "х" .. p[1], "ч" .. p[1]}
		},
	},
}

m["th"] = {
	"thai",
	9217,
	"tai-swe",
	"thai, Brai",
	translit = {thai = "th-translit"},
	sort_key = {thai = "thai-sortkey"},
}

m["ti"] = {
	"tigrinja",
	34124,
	"sem-eth",
	"Ethi",
	translit = "Ethi-translit",
}

m["tk"] = {
	"turkmensk",
	9267,
	"trk-ogz",
	"latn, kyrl, Arab",
	entry_name = {remove_diacritics = c.macron},
	sort_key = {
		latn = {
			from = {"ç", "ä", "ž", "ň", "ö", "ş", "ü", "ý"},
			to = {"c" .. p[1], "e" .. p[1], "j" .. p[1], "n" .. p[1], "o" .. p[1], "s" .. p[1], "u" .. p[1], "y" .. p[1]}
		},
		kyrl = {
			from = {"ё", "җ", "ң", "ө", "ү", "ә"},
			to = {"е" .. p[1], "ж" .. p[1], "н" .. p[1], "о" .. p[1], "у" .. p[1], "э" .. p[1]}
		},
	},
}

m["tl"] = {
	"tagalog",
	34057,
	"phi",
	"latn, Tglg",
	translit = {Tglg = "tl-translit"},
	override_translit = true,
	entry_name = {latn = {remove_diacritics = c.grave .. c.acute .. c.circ}},
}

m["tn"] = {
	"setswana",
	34137,
	"bnt-sts",
	"latn",
}

m["to"] = {
	"tongansk",
	34094,
	"poz-pol",
	"latn",
	entry_name = {remove_diacritics = c.acute},
	sort_key = {remove_diacritics = c.macron},
}

m["tr"] = {
	"tyrkisk",
	256,
	"trk-ogz",
	"latn",
	ancestors = "ota",
	dotted_dotless_i = true,
	sort_key = {
		from = {
			"i", -- Ensure "i" comes after "ı".
			"ç", "ğ", "ı", "ö", "ş", "ü"
		},
		to = {
			"i" .. p[1],
			"c" .. p[1], "g" .. p[1], "i", "o" .. p[1], "s" .. p[1], "u" .. p[1]
		}
	},
}

m["ts"] = {
	"tsonga",
	34327,
	"bnt-tsr",
	"latn",
}

m["tt"] = {
	"tatarisk",
	25285,
	"trk-kbu",
	"kyrl, latn, tt-Arab",
	translit = {kyrl = "tt-translit"},
	override_translit = true,
	dotted_dotless_i = true,
	sort_key = {
		kyrl = {
			from = {"ә", "ў", "ғ", "ё", "җ", "қ", "ң", "ө", "ү", "һ"},
			to = {"а" .. p[1], "в" .. p[1], "г" .. p[1], "е" .. p[1], "ж" .. p[1], "к" .. p[1], "н" .. p[1], "о" .. p[1], "у" .. p[1], "х" .. p[1]}
		},
		latn = {
			from = {
				"i", -- Ensure "i" comes after "ı".
				"ä", "ə", "ç", "ğ", "ı", "ñ", "ŋ", "ö", "ɵ", "ş", "ü"
			},
			to = {
				"i" .. p[1],
				"a" .. p[1], "a" .. p[2], "c" .. p[1], "g" .. p[1], "i", "n" .. p[1], "n" .. p[2], "o" .. p[1], "o" .. p[2], "s" .. p[1], "u" .. p[1]
			}
		},
	},
}

-- "tw" IS TREATED AS "ak", SEE WT:LT

m["ty"] = {
	"tahitisk",
	34128,
	"poz-pep",
	"latn",
}

m["ug"] = {
	"uigurisk",
	13263,
	"trk-kar",
	"ug-Arab, latn, kyrl",
	ancestors = "chg",
	translit = {
		["ug-Arab"] = "ug-translit",
		kyrl = "ug-translit",
	},
	override_translit = true,
}

m["uk"] = {
	"ukrainsk",
	8798,
	"zle",
	"kyrl",
	ancestors = "zle-ort",
	translit = "uk-translit",
	entry_name = {remove_diacritics = c.grave .. c.acute},
	sort_key = {
		from = {
			"ї", -- 2 chars
			"ґ", "є", "і" -- 1 char
		},
		to = {
			"и" .. p[2],
			"г" .. p[1], "е" .. p[1], "и" .. p[1]
		}
	},
	standardChars = "ЄІЇА-ЩЬЮ-щьюяєії" .. c.punc,
}

m["ur"] = {
	"urdu",
	1617,
	"inc-hnd",
	"ur-Arab",
	ancestors = "inc-ohi",
	entry_name = {remove_diacritics = c.kashida .. c.fathatan .. c.dammatan .. c.kasratan .. c.fatha .. c.damma .. c.kasra .. c.shadda .. c.sukun .. c.nunghunna .. c.hamzaabove .. c.superalef},
	-- put Judeo-Urdu (Hebrew-script Urdu) under the category header
	-- U+FB21 HEBREW LETTER WIDE ALEF so that it sorts after Arabic script titles
	sort_key = {
		from = {"^%f[" .. u(0x5D0) .. "-" .. u(0x5EA) .. "]"},
		to = {u(0xFB21)},
	},
}

m["uz"] = {
	"usbekisk",
	9264,
	"trk-kar",
	"latn, kyrl, fa-Arab",
	ancestors = "chg",
	translit = {kyrl = "uz-translit"},
	sort_key = {
		latn = {
			from = {"oʻ", "gʻ", "sh", "ch", "ng"},
			to = {"z" .. p[1], "z" .. p[2], "z" .. p[3], "z" .. p[4], "z" .. p[5]}
		},
		kyrl = {
			from = {"ё", "ў", "қ", "ғ", "ҳ"},
			to = {"е" .. p[1], "я" .. p[1], "я" .. p[2], "я" .. p[3], "я" .. p[4]}
		},
	},
}

m["ve"] = {
	"Venda",
	32704,
	"bnt-bso",
	"latn",
}

m["vi"] = {
	"vietnamesisk",
	9199,
	"mkh-vie",
	"latn, Hani",
	ancestors = "mkh-mvi",
	sort_key = {
		latn = "vi-sortkey",
		Hani = "Hani-sortkey",
	},
}

m["vo"] = {
	"volapyk",
	36986,
	"art",
	"latn",
}

m["wa"] = {
	"vallonsk",
	34219,
	"roa-oil",
	"latn",
	ancestors = "fro",
	sort_key = s["roa-oil-sortkey"],
}

m["wo"] = {
	"wolof",
	34257,
	"alv-fwo",
	"latn, Arab",
}

m["xh"] = {
	"xhosa",
	13218,
	"bnt-ngu",
	"latn",
	entry_name = {remove_diacritics = c.grave .. c.acute .. c.circ .. c.macron .. c.caron},
}

m["yi"] = {
	"jiddisk",
	8641,
	"gmw",
	"Hebr",
	ancestors = "gmh",
	translit = "yi-translit",
	sort_key = {
		from = {"א[ַָ]", "בּ", "ו[ֹּ]", "יִ", "ײַ", "פֿ"},
		to = {"א", "ב", "ו", "י", "יי", "פ"}
	},
}

m["yo"] = {
	"joruba",
	34311,
	"alv-yor",
	"latn, Arab",
	entry_name = {latn = {remove_diacritics = c.grave .. c.acute .. c.macron}},
	sort_key = {
		latn = {
			from = {"ẹ", "gb", "ọ", "ṣ"},
			to = {"e" .. p[1], "g" .. p[1], "o" .. p[1], "s" .. p[1]}
		},
	},
}

m["za"] = {
	"Zhuang",
	13216,
	"tai",
	"latn, Hani",
	sort_key = {
		latn = "za-sortkey",
		Hani = "Hani-sortkey",
	},
}

m["zh"] = {
	"kinesisk",
	7850,
	"zhx",
	"Hani, Hant, Hans, latn, Bopo, Nshu, Brai",
	ancestors = "ltc",
	generate_forms = "zh-generateforms",
	translit = {Hani = "zh-translit"},
	sort_key = {Hani = "Hani-sortkey"},
}

m["zu"] = {
	"zulu",
	10179,
	"bnt-ngu",
	"latn",
	entry_name = {remove_diacritics = c.grave .. c.acute .. c.circ .. c.macron .. c.caron},
}

return m