Module:Languages/data: Difference between revisions

From The Languages of David J. Peterson
Jump to navigation Jump to search
No edit summary
(Replaced content with "local table = table local insert = table.insert local u = mw.ustring.char local export = {} -- UTF-8 encoded strings for some commonly-used diacritics. local c = { grav...")
Tag: Replaced
 
(13 intermediate revisions by 4 users not shown)
Line 1: Line 1:
local table = table
local insert = table.insert
local u = mw.ustring.char
local u = mw.ustring.char


-- UTF-8 encoded strings for some commonly-used diacritics
local export = {}
local GRAVE    = u(0x0300)
local ACUTE    = u(0x0301)
local CIRC      = u(0x0302)
local TILDE    = u(0x0303)
local MACRON    = u(0x0304)
local BREVE    = u(0x0306)
local DOTABOVE  = u(0x0307)
local DIAER    = u(0x0308)
local CARON    = u(0x030C)
local DGRAVE    = u(0x030F)
local INVBREVE  = u(0x0311)
local DOTBELOW  = u(0x0323)
local RINGBELOW = u(0x0325)
local CEDILLA  = u(0x0327)
local OGONEK    = u(0x0328)


-- Puncuation to be used for standardChars field
-- UTF-8 encoded strings for some commonly-used diacritics.
local PUNCTUATION = ' !#$%&*+,-./:;<=>?@^_`|~\'()'
local c = {
 
grave = u(0x0300),
local Cyrl = {"Cyrl"}
acute = u(0x0301),
local Latn = {"Latn"}
circ = u(0x0302),
local LatnArab = {"Latn", "Arab"}
tilde = u(0x0303),
 
macron = u(0x0304),
local m = {}
overline = u(0x0305),
 
breve = u(0x0306),
-- DJP Languages
dotabove = u(0x0307),
m["afat"] = {
diaer = u(0x0308),
"Afata",
ringabove = u(0x030A),
"Q999999017",
dacute = u(0x030B),
"atha",
caron = u(0x030C),
otherNames = {"Modern Afata", "Afatan"},
lineabove = u(0x030D),
scripts = Latn,
dgrave = u(0x030F),
ancestors = {"veda"},
invbreve = u(0x0311),
case_insensitive = true,
commaabove = u(0x0313),
sort_key = {
revcommaabove = u(0x0314),
from = {"[äàáâå]", "[ëèéê]", "[ïìíî]", "[öòóô]", "[üùúû]" },
dotbelow = u(0x0323),
to  = {"a" ,  "e",  "i" , "o" , "u" }} ,
diaerbelow = u(0x0324),
standardChars = "A-Za-z0-9ÁáÉéÍíÓóÖöÜüÚú" .. PUNCTUATION,
ringbelow = u(0x0325),
}
cedilla = u(0x0327),
 
ogonek = u(0x0328),
m["asgr"] = {
brevebelow = u(0x032E),
"Asgardian",
macronbelow = u(0x0331),
"Q99999900A",
perispomeni = u(0x0342),
scripts = Latn,
ypogegrammeni = u(0x0345),
case_insensitive = true,
CGJ = u(0x034F), -- combining grapheme joiner
sort_key = {
dbrevebelow = u(0x035C),
from = {"[äàáâå]", "[ëèéê]", "[ïìíî]", "[öòóô]", "[üùúû]" },
dinvbreve = u(0x0361),
to  = {"a" ,  "e",  "i" , "o" , "u" }} ,
kamora          = u(0x0484),
standardChars = "A-Za-z0-9ÁáÉéÍíÓóÖöÜüÚú" .. PUNCTUATION,
dasiapneumata   = u(0x0485),
}
psilipneumata   = u(0x0486),
 
kashida = u(0x0640),
m["asta"] = {
fathatan = u(0x064B),
"Astapori Valyrian",
dammatan = u(0x064C),
"Q999999005",
kasratan = u(0x064D),
"valy-high",
fatha = u(0x064E),
otherNames = {"Slaver's Bay Valyrian", "Bastard Valyrian", "Valyrian", "Low Valyrian"},
damma = u(0x064F),
scripts = Latn,
kasra = u(0x0650),
ancestors = {"hval"},
shadda = u(0x0651),
case_insensitive = true,
sukun = u(0x0652),
sort_key = {
hamzaabove = u(0x0654),
from = {"[äàáâå]", "[ëèéê]", "[ïìíî]", "[öòóô]", "[üùúû]" },
nunghunna = u(0x0658),
to   = {"a" ,  "e""i" , "o" , "u" }} ,
smallv = u(0x065A),
standardChars = "A-Za-z0-9ÁáÉéÍíÓóÚú" .. PUNCTUATION,
superalef = u(0x0670),
}
psili = u(0x1FBD),
 
coronis = u(0x1FBF),
m["azra"] = {
ZWNJ = u(0x200C), -- zero width non-joiner
"Azrán",
ZWJ = u(0x200D), -- zero width joiner
"Q999999030",
RSQuo = u(0x2019), -- right single quote
"roa-ibe",
VS01 = u(0xFE00), -- variation selector 1
otherNames = {"Azran", "Pilgrim"},
-- Punctuation for the standardChars field.
scripts = Latn,
punc = " ',%-–…∅"
ancestors = {"es"},
case_insensitive = true,
sort_key = {
from = {"[äàáâå]", "[ëèéê]", "[ïìíî]", "[öòóô]", "[üùúû]" },
to  = {"a"   , "e" , "i" , "o" , "u" }} ,
standardChars = "A-Za-z0-9ÁáÂâÉéÊêÍíÎîÓóÔôÚúÛû" .. PUNCTUATION,
}
 
m["bodz"] = {
"Bodzvokhan",
"Q999999002",
"orci",
otherNames = {"Orcish", "Orkish", "Orc"},
scripts = {"Vkht", "Cyrl", "Latn"},
ancestors = {"sung"},
case_insensitive = true,
sort_key = {
from = {"[äàáâå]", "[ëèéêǝ]", "[ïìíî]", "[öòóô]", "[üùúû]" },
to  = {"a"   , "e" , "i" , "o" , "u" }} ,
standardChars = "A-Za-z0-9ÖöÜüƎǝ" .. PUNCTUATION,
}
 
m["cast"] = {
"Castithan",
"Q999999010",
"kast",
otherNames = {"Casti", "Kastithanu"},
scripts = Latn,
ancestors = {"ocst"},
case_insensitive = true,
sort_key = {
from = {"[äàáâå]", "[ëèéêǝ]", "[ïìíî]", "[öòóô]", "[üùúû]" },
to  = {"a"   , "e" , "i" , "o" , "u" }} ,
standardChars = "A-Za-z0-9ÁáÉéÍíÓóÚú" .. PUNCTUATION,
}
 
m["doth"] = {
"Dothraki",
"Q999999007",
"plai",
otherNames = {"Lekh Dothraki", "Modern Dothraki"},
scripts = Latn,
ancestors = {"ppla"},
case_insensitive = true,
sort_key = {
from = {"[äàáâå]", "[ïìíî]", "[öòóô]", "[üùúû]" },
to  = {"a" , "i" , "o" , "u" }} ,
standardChars = "A-Za-z0-9ÁáÍíÓóÚú" .. PUNCTUATION,
}
 
m["fjer"] = {
"Fjerdan",
"x",
"x",
scripts = Latn,
case_insensitive = true
}
 
m["gand"] = {
"Gandal",
"Q999999016",
"atha",
otherNames = {"Modern Gandal", "Human"},
scripts = Latn,
ancestors = {"veda"},
case_insensitive = true
}
 
m["gern"] = {
"Gerna Mohr",
otherNames = {"The Song of the Earth", "Gerna Mossha"},
"x",
"x",
scripts = Latn,
case_insensitive = true
}
 
m["ghis"] = {
"Ghiscari",
"Q999999024",
"ghis",
otherNames = {"Ghiscari Language"},
scripts = Latn,
ancestors = {"oghi"},
case_insensitive = true,
sort_key = {
from = {"[äàáâåāʔ]", "[gɡɣ]" },
to  = {"a"   , "g" }} ,
standardChars = "A-Za-z0-9ɡʔɢɣʼʀ" .. PUNCTUATION,
}
 
m["gvun"] = {
"G'Vunna",
"Q999999018",
"atha",
otherNames = {"G'Vunnǝ", "Lokheim", "Gvunna", "Gvunnǝ"},
scripts = {"Gvoz", "Latn"},
ancestors = {"veda"},
case_insensitive = true,
sort_key = {
from = {"[äàáâå]", "Ǝ", "[ëèéêǝ]", "[ïìíî]", "[öòóô]", "[üùúû]" },
to  = {"a" , "E", "e" , "i" , "o" , "u" }} ,
standardChars = "A-Za-z0-9ÖöÜüƎǝ" .. PUNCTUATION,
}
 
m["henl"] = {
"Hen Linge",
"Q999999021",
"elve",
otherNames = {"Hen Llinge", "Elder", "Elder Speech", "Elder Tongue", "Elven Tongue", "Elvish"},
scripts = Latn,
case_insensitive = true,
sort_key = {
from = {"[äàáâå]", "[ïìíî]", "[öòóô]", "[üùúû]" },
to  = {"a" , "i" , "o" , "u" }} ,
standardChars = "A-Za-z0-9ÁáÍíÓóÖöÚú" .. PUNCTUATION,
}
 
m["hval"] = {
"High Valyrian",
"Q999999004",
"valy-high",
otherNames = {"Valyrian", "Classical Valyrian", "Classic Valyrian"},
scripts = Latn,
ancestors = {"oval"},
case_insensitive = true,
sort_key = {
from = {"Ā", "[äàáâåā]", "Ē", "[ëèéêē]", "Ī", "[ïìíîī]", "Ñ", "ñ", "Ō", "[öòóôō]", "Ū", "[üùúûū]", "Ȳ", "[ÿȳ]" },
to  = {"A", "a"   , "E", "e" , "I", "i" , "N", "n", "O", "o" , "U", "u" , "Y", "y" }} ,
standardChars = "A-Za-z0-9ĀāĒēĪīÑñŌōŪūȲȳ" .. PUNCTUATION,
}
 
m["indo"] = {
"Indojisnen",
"Q999999026",
otherNames = {"Indogene"},
scripts = Latn,
case_insensitive = true
}
 
m["inha"] = {
"Inha",
"Q999999027",
otherNames = {"Witch"},
scripts = Latn,
case_insensitive = true,
sort_key = {
from = {"[äàáâå]", "[ïìíî]", "[ëèéêǝ]", "[öòóô]", "[üùúû]" },
to  = {"a" , "i", "e" , "o" , "u" }} ,
standardChars = "A-Za-z0-9ÁáÉéÍíÓóÚú" .. PUNCTUATION,
}
 
m["irat"] = {
"Irathient",
"x",
"x",
otherNames = {"L'Irathi"},
scripts = Latn,
case_insensitive = true,
sort_key = {
from = {"[äàáâå]", "Ǝ", "[ëèéêǝ]", "[ïìíî]", "[öòóô]", "[üùúû]" },
to  = {"a" , "E", "e" , "i" , "o" , "u" }} ,
standardChars = "A-Za-z0-9Ǝǝ" .. PUNCTUATION,
}
 
m["kama"] = {
"Kamakawi",
"x",
"x",
scripts = Latn,
case_insensitive = true
}
 
m["kinu"] = {
"Kinuk'aaz",
"Q999999023",
"omec",
otherNames = {"Omec", "Enchanter"},
scripts = {"Zadu", "Latn"},
ancestors = {"pkin"},
case_insensitive = true,
sort_key = {
from = {"[äàáâå]", "[ëèéê]", "[ïìíî]", "[öòóô]", "[üùúû]" },
to  = {"a"   , "e" , "i" , "o" , "u" }} ,
standardChars = "A-Za-z0-9ÖöÜü" .. PUNCTUATION,
}
 
m["lish"] = {
"Lishepus",
"Q999999022",
otherNames = {"Angelic"},
scripts = Latn,
ancestors = {"ine-pro", "afa-pro"},
otherNames = {"Angelic"},
case_insensitive = true,
sort_key = {
from = {"[äàáâå]", "[ëèéê]", "[ïìíî]", "[öòóô]", "[üùúû]" },
to  = {"a"   , "e" , "i" , "o" , "u" }} ,
standardChars = "A-Za-z0-9ÁáÂâÉéÊêÍíÎîÓóÔôÚúÛû" .. PUNCTUATION,
}
 
m["meer"] = {
"Meereenese Valyrian",
"Q999999006",
"valy-high",
otherNames = {"Slaver's Bay Valyrian", "Low Valyrian", "Bastard Valyrian", "Valyrian"},
scripts = Latn,
ancestors = {"hval"},
case_insensitive = true
}
 
m["meni"] = {
"Méníshè",
"Q999999033",
"witc",
otherNames = {"Mother Tongue"},
scripts = Latn,
case_insensitive = true,
sort_key = {
from = {"[äàáâå]", "[ïìíî]", "[ëèéêǝ]", "[öòóô]", "[üùúû]" },
to  = {"a" , "i", "e" , "o" , "u" }} ,
standardChars = "A-Za-z0-9ÀàÁáÂâÈèÉéÊêÌìÍíÎîÒòÓóÔôÙùÚúÛû" .. PUNCTUATION,
}
 
m["munj"] = {
"Munja'kin",
"Q999999013",
"munc",
otherNames = {"Munchkin"},
scripts = Latn,
ancestors = {"pmun"},
case_insensitive = true,
sort_key = {
from = {"[äàáâå]", "[ïìíî]", "[öòóô]", "[üùúû]" },
to  = {"a" , "i" , "o" , "u" }} ,
standardChars = "A-Za-z0-9ÁáÍíÓóÚú" .. PUNCTUATION,
}
 
m["nelv"] = {
"Nelvayu",
"Q999999034",
otherNames = {"Demonic"},
scripts = Latn,
case_insensitive = true,
sort_key = {
from = {"[äàáâå]", "[ëèéê]", "[ïìíî]", "[öòóôő]", "[üùúûű]" },
to  = {"a"   , "e" , "i" , "o" , "u" }} ,
standardChars = "A-Za-z0-9ÁáÉéÍíÓóÔôÖöŐőÚúÛûÜüŰű" .. PUNCTUATION,
}
 
m["noal"] = {
"Noalath",
"Q999999031",
otherNames = {"Elvish", "Druid", "Druidic"},
scripts = Latn,
case_insensitive = true,
sort_key = {
from = {"[äàáâå]", "[ëèéê]", "[ïìíî]", "[öòóôő]", "[üùúûű]" },
to  = {"a"   , "e" , "i" , "o" , "u" }} ,
standardChars = "A-Za-z0-9ÁáÉéÍíÓóÔôÖöŐőÚúÛûÜüŰű" .. PUNCTUATION,
}
 
m["ocst"] = {
"Old Castithan",
"Q999999009",
"kast",
otherNames = {"Flood Form", "Pure Castithan", "Traditional Castithan"},
scripts = Latn,
ancestors = {"pcst"},
case_insensitive = true,
sort_key = {
from = {"[äàáâå]", "[ëèéêǝ]", "[ïìíî]", "[öòóô]", "[üùúû]" },
to  = {"a"   , "e" , "i" , "o" , "u" }} ,
standardChars = "A-Za-z0-9ÁáÉéÍíÓóÚú" .. PUNCTUATION,
}
 
m["oval"] = {
"Old Valyrian",
"Q999999003",
"valy",
otherNames = {"Valyrian", "Ancient Valyrian"},
scripts = Latn,
case_insensitive = true
}
 
m["ovus"] = {
"Övüsi",
"Q999999036",
"elvi",
otherNames = {"Elvish", "Elf"},
scripts = Latn,
ancestors = {"povu"},
case_insensitive = true,
sort_key = {
from = {"[äàáâå]", "[ëèéê]", "[ïìíî]", "[öòóô]", "[üùúû]" },
to  = {"a"   , "e" , "i" , "o" , "u" }} ,
standardChars = "A-Za-z0-9ËëÏïÖöÜü" .. PUNCTUATION,
}
 
m["pcst"] = {
"Proto-Castithan",
"Q999999011",
"kast",
otherNames = {"Ancient Castithan", "Classical Castithan"},
type = "reconstructed",
scripts = Latn,
case_insensitive = true,
sort_key = {
from = {"[äàáâåāʔ]", "[ɓ]", "[ðɗɖ]", "[gɡɠɣɢ]", "[ŋɴ]", "[ʂ]", "[θƭ]", "[ʐʒ]" },
to  = {"a", "b", "d"   , "g", "n", "s", "t", "z" }} ,
standardChars = "A-Za-z0-9ɡʔɓðɖɗɡɣɢɠŋɴʂθƭʐʒʃɲᵐⁿᵑʼ" .. PUNCTUATION,
}
 
m["pkin"] = {
"Proto-Kinuk'aaz",
"Q999999024",
"omec",
otherNames = {"Omec", "Ancient Omec", "Old Omec", "Old Kinuk'aaz", "Ancient Kinuk'aaz"},
type = "reconstructed",
scripts = Latn,
case_insensitive = true,
sort_key = {
from = {"[äàáâåāʔ]", "[gɡɣ]" },
to  = {"a"   , "g" }} ,
standardChars = "A-Za-z0-9ɡʔɢɣʼʀ" .. PUNCTUATION,
}
 
m["pmen"] = {
"Proto-Méníshè",
"Q999999035",
"witc",
otherNames = {"Proto-Witch"},
type = "reconstructed",
scripts = Latn,
case_insensitive = true,
sort_key = {
from = {"[äàáâåā]", "[gɡɣ]", "[šʃ]", "[žʒ]" },
to  = {"a"   , "g", "s", "z" }} ,
standardChars = "A-Za-z0-9ɡɣʃʒʔ" .. PUNCTUATION,
}
 
m["pmun"] = {
"Proto-Munja'kin",
"Q999999012",
"munc",
otherNames = {"Munchkin", "Old Munja'kin", "Proto-Munchkin"},
type = "reconstructed",
scripts = Latn,
case_insensitive = true,
sort_key = {
from = {"[äàáâåā]", "[gɡɣ]", "[šʃ]", "[žʒ]" },
to  = {"a"   , "g", "s", "z" }} ,
standardChars = "A-Za-z0-9ɡɣʃʒʔ" .. PUNCTUATION,
}
 
m["povu"] = {
"Proto-Övüsi",
"Q999999037",
"elvi",
otherNames = {"Old Övüsi", "Ancient Övüsi", "Övi", "Elvi"},
scripts = Latn,
case_insensitive = true,
sort_key = {
from = {"[äàáâåā]", "[gɡɣ]", "[šʃ]", "[žʒ]" },
to  = {"a"   , "g", "s", "z" }} ,
standardChars = "A-Za-z0-9ɡɣʃʒʔ" .. PUNCTUATION,
}
 
m["ppla"] = {
"Proto-Plains",
"Q999999008",
"plai",
otherNames = {"Old Dothraki", "Old Lhazareen", "Plains"},
type = "reconstructed",
scripts = Latn,
case_insensitive = true,
sort_key = {
from = {"[äàáâåāʔ]", "[gɡɣ]" },
to  = {"a"   , "g" }} ,
standardChars = "A-Za-z0-9ɡʔɣθɬɛɔɑɨǝəʃʒ" .. PUNCTUATION,
}
 
m["psnd"] = {
"Proto-Sondiv",
"Q999999020",
"atri",
otherNames = {"Ancient Atrian", "Old Atrian", "Proto-Atrian"},
type = "reconstructed",
scripts = Latn,
case_insensitive = true,
sort_key = {
from = {"[äàáâåāʔ]", "[gɡɣ]" },
to  = {"a"   , "g" }} ,
standardChars = "A-Za-z0-9ɡʔʃʒ" .. PUNCTUATION,
}
 
m["pved"] = {
"Proto-Veda",
"Q999999014",
"atha",
otherNames = {"Athanoran", "Old Veda", "Ancient Veda"},
type = "reconstructed",
scripts = Latn,
case_insensitive = true,
sort_key = {
from = {"[äàáâåāʔ]", "[gɡɣ]" },
to  = {"a"   , "g" }} ,
standardChars = "A-Za-z0-9ɡʔŋɲʃʒɣ" .. PUNCTUATION,
}
 
m["ravk"] = {
"Ravkan",
"x",
"x",
otherNames = {"Modern Ravkan"},
scripts = Latn,
case_insensitive = true
}
 
m["shiv"] = {
"Shiväisith",
"Q999999029",
otherNames = {"Shiväisith language", "Dark Elf", "Elf", "Elvish", "Dark Elvish"},
scripts = {"Todj", "Latn"},
case_insensitive = true,
sort_key = {
from = {"[äàáâå]", "[ëèéê]", "[ïìíî]", "[öòóô]", "[üùúû]" },
to  = {"a"   , "e" , "i" , "o" , "u" }} ,
standardChars = "A-Za-z0-9ÄäÖö" .. PUNCTUATION,
}
 
m["sond"] = {
"Sondiv",
"Q999999019",
"atri",
otherNames = {"Sondiv language", "Atrian"},
scripts = {"Kwan", "Latn"},
ancestors = {"psnd"},
case_insensitive = true
}
 
m["sung"] = {
"Sungdin",
"Q999999001",
"orci",
otherNames = {"Orcish", "Proto-Orcish", "Proto-Orc", "Proto-Bodzvokhan", "Old Bodzvokhan"},
type = "reconstructed",
scripts = Latn,
case_insensitive = true,
sort_key = {
from = {"[äàáâåāʔ]", "[gɡɣɢ]" },
to  = {"a"   , "g" }} ,
standardChars = "A-Za-z0-9ɡʔɢʀʁɣχħ" .. PUNCTUATION,
}
 
m["trig"] = {
"Trigedasleng",
"Q999999028",
"gmw",
otherNames = {"Grounder", "Trisleng"},
scripts = Latn,
ancestors = {"en"},
case_insensitive = true,
sort_key = {
from = {"[äàáâåæ]", "[ëèéêǝəɛ]", "[ïìíî]", "[gɡɣɢ]", "[öòóôɔ]", "[ɹɾ]", "[ʃ]", "[θþ]", "[üùúû]" },
to  = {"a"   , "e" , "i", "g" , "o", "r", "s", "t" , "u" }} ,
standardChars = "A-Za-z0-9" .. PUNCTUATION,
}
 
m["veda"] = {
"Veda",
"Q999999015",
"atha",
otherNames = {"Pure Veda", "Pure Vedan", "Vedan"},
scripts = {"Wlqr", "Latn"},
ancestors = {"pved"},
case_insensitive = true,
sort_key = {
from = {"Ǝ", "[əǝ]" },
to  = {"E", "e" }} ,
standardChars = "A-Za-z0-9Ǝǝ" .. PUNCTUATION,
}
 
m["vzaa"] = {
"Væyne Zaanics",
"Q999999025",
otherNames = {"God's Gift"},
scripts = {"Latn", "Yesu"},
case_insensitive = true,
sort_key = {
from = {"[äàáâåæ]", "[ëèéê]", "[ïìíî]", "[öòóô]", "[þ]", "[üùúû]" },
to  = {"a"   , "e" , "i" , "o", "t" , "u" }} ,
standardChars = "A-Za-z0-9ÆæÞþ" .. PUNCTUATION,
}
 
m["yuli"] = {
"Yulish",
"Q999999032",
otherNames = {"Elvish", "The Christmas Tongue"},
scripts = Latn,
case_insensitive = true,
sort_key = {
from = {"[äàáâå]", "[ëèéê]", "[ïìíî]", "[öòóô]", "[üùúû]" },
to  = {"a"   , "e" , "i" , "o" , "u" }} ,
standardChars = "A-Za-z0-9ÖöÜü" .. PUNCTUATION,
}
 
-- Added Proto-Afro-Asiatic and Proto-Indo-European from somewhere else cause I need 'em. -DJP
m["afa-pro"] = {
"Proto-Afro-Asiatic",
"Q269125",
"afa",
otherNames = {"Hamito-Semitic"},
type = "reconstructed",
scripts = {"Latinx"},
}
 
m["ine-pro"] = {
"Proto-Indo-European",
"Q37178",
"ine",
type = "reconstructed",
scripts = {"Latinx"},
sort_key = {
from = {"[áā]", "[éēḗ]", "[íī]", "[óōṓ]", "[úū]", "ĺ", "ḿ", "ń", "ŕ", "ǵ" , "ḱ" , "ʰ", "ʷ", "₁", "₂", "₃", RINGBELOW, ACUTE, MACRON},
to  = {"a"  , "e" , "i"  , "o" , "u"  , "l", "m", "n", "r", "g'", "k'", "¯h", "¯w", "1", "2", "3"}},
}
 
-- Old codes left in for examples and compatibility -V
m["aa"] = {
"Afar",
"Q27811",
"cus",
otherNames = {"Qafar"},
scripts = Latn,
}
 
m["ab"] = {
"Abkhaz",
"Q5111",
"cau-abz",
otherNames = {"Abkhazian", "Abxazo"},
scripts = {"Cyrl", "Geor", "Latn"},
translit_module = "ab-translit",
override_translit = true,
entry_name = {
from = {GRAVE, ACUTE},
to  = {}} ,
}
 
m["ae"] = {
"Avestan",
"Q29572",
"ira-cen",
otherNames = {"Zend", "Old Bactrian"},
scripts = {"Avst", "Gujr"},
translit_module = "Avst-translit",
wikipedia_article = "Avestan",
}
 
m["af"] = {
"Afrikaans",
"Q14196",
"gmw",
scripts = LatnArab,
ancestors = {"nl"},
sort_key = {
from = {"[äáâà]", "[ëéêè]", "[ïíîì]", "[öóôò]", "[üúûù]", "[ÿýŷỳ]", "^-", "'"},
to  = {"a" , "e" , "i" , "o" , "u"  , "y" }} ,
}
 
m["ak"] = {
"Akan",
"Q28026",
"alv-kwa",
otherNames = {"Twi-Fante", "Twi", "Fante", "Fanti", "Asante", "Akuapem"},
scripts = Latn,
}
 
m["am"] = {
"Amharic",
"Q28244",
"sem-eth",
scripts = {"Ethi"},
translit_module = "Ethi-translit",
}
 
m["an"] = {
"Aragonese",
"Q8765",
"roa",
scripts = Latn,
ancestors = {"roa-oan"},
}
 
m["ar"] = {
"Arabic",
"Q13955",
"sem-arb",
otherNames = {"Modern Standard Arabic", "Standard Arabic", "Literary Arabic", "Classical Arabic"},
scripts = {"Arab", "Brai"},
-- alif waṣl to alif, remove diacritics
entry_name = {
from = {u(0x0671), u(0x064B), u(0x064C), u(0x064D), u(0x064E), u(0x064F), u(0x0650), u(0x0651), u(0x0652), u(0x0670), u(0x0640)},
to  = {u(0x0627)}},
translit_module = "ar-translit",
standardChars = "ء-غف-ْٰٱ" .. PUNCTUATION .. "٠-٩،؛؟٫٬ـ",
}
 
m["as"] = {
"Assamese",
otherNames = {"Asamiya"},
"Q29401",
"inc",
scripts = {"Beng"},
ancestors = {"inc-mas"},
translit_module = "as-translit",
}
 
m["av"] = {
"Avar",
"Q29561",
"cau-nec",
otherNames = {"Avaric"},
scripts = Cyrl,
ancestors = {"oav"},
translit_module = "av-translit",
override_translit = true,
entry_name = {
from = {GRAVE, ACUTE},
to  = {}} ,
}
 
m["ay"] = {
"Aymara",
"Q4627",
"sai-aym",
otherNames = {"Southern Aymara", "Central Aymara"},
scripts = Latn,
}
 
m["az"] = {
"Azerbaijani",
"Q9292",
"trk-ogz",
otherNames = {"Azeri", "Azari", "Azeri Turkic", "Azerbaijani Turkic", "North Azerbaijani", "South Azerbaijani", "Afshar", "Afshari", "Afshar Azerbaijani", "Afchar", "Qashqa'i", "Qashqai", "Kashkay", "Sonqor"},
scripts = {"Latn", "Cyrl", "fa-Arab"},
ancestors = {"trk-oat"},
}
 
m["ba"] = {
"Bashkir",
"Q13389",
"trk-kip",
scripts = Cyrl,
translit_module = "ba-translit",
override_translit = true,
}
 
m["be"] = {
"Belarusian",
"Q9091",
"zle",
otherNames = {"Belorussian", "Belarusan", "Bielorussian", "Byelorussian", "Belarussian", "White Russian"},
scripts = Cyrl,
ancestors = {"orv"},
translit_module = "be-translit",
sort_key = {
from = {"Ё", "ё"},
to  = {"Е" , "е"}},
entry_name = {
from = {"Ѐ", "ѐ", GRAVE, ACUTE},
to  = {"Е", "е"}},
}
 
m["bg"] = {
"Bulgarian",
"Q7918",
"zls",
scripts = {"Cyrl"},
ancestors = {"cu"},
translit_module = "bg-translit",
entry_name = {
from = {"Ѐ", "ѐ", "Ѝ", "ѝ", GRAVE, ACUTE},
to  = {"Е", "е", "И", "и"}},
}
 
m["bh"] = {
"Bihari",
"Q135305",
"inc",
scripts = {"Deva"},
ancestors = {"inc-mgd"},
}
 
m["bi"] = {
"Bislama",
"Q35452",
"crp",
scripts = Latn,
ancestors = {"en"},
}
 
m["bm"] = {
"Bambara",
"Q33243",
"dmn",
otherNames = {"Bamanankan"},
scripts = Latn,
}
 
m["bn"] = {
"Bengali",
"Q9610",
"inc",
otherNames = {"Bangla"},
scripts = {"Beng", "Newa"},
ancestors = {"inc-mbn"},
translit_module = "bn-translit",
}
 
m["bo"] = {
"Tibetan",
"Q34271",
"tbq",
otherNames = {"Ü", "Dbus", "Lhasa", "Lhasa Tibetan", "Amdo Tibetan", "Amdo", "Panang", "Khams", "Khams Tibetan", "Khamba", "Tseku", "Dolpo", "Humla", "Limi", "Lhomi", "Shing Saapa", "Mugom", "Mugu", "Nubri", "Walungge", "Gola", "Thudam", "Lowa", "Loke", "Mustang", "Tichurong"}, -- and "Gyalsumdo", "Lower Manang"? "Kyirong"?
scripts = {"Tibt"}, -- sometimes Deva?
ancestors = {"xct"},
translit_module = "bo-translit",
override_translit = true,
}
 
m["br"] = {
"Breton",
"Q12107",
"cel-bry",
scripts = Latn,
ancestors = {"xbm"},
}
 
m["ca"] = {
"Catalan",
"Q7026",
"roa",
otherNames = {"Valencian"},
scripts = Latn,
ancestors = {"roa-oca"},
sort_key = {
from = {"à", "[èé]", "[íï]", "[òó]", "[úü]", "ç", "l·l"},
to  = {"a", "e"  , "i"  , "o"  , "u"  , "c", "ll" }} ,
}
 
m["ce"] = {
"Chechen",
"Q33350",
"cau-nkh",
scripts = Cyrl,
translit_module = "ce-translit",
override_translit = true,
entry_name = {
from = {MACRON},
to  = {}},
}
 
m["ch"] = {
"Chamorro",
"Q33262",
"poz-sus",
otherNames = {"Chamoru"},
scripts = Latn,
}
 
m["co"] = {
"Corsican",
"Q33111",
"roa",
otherNames = {"Corsu"},
scripts = Latn,
}
 
m["cr"] = {
"Cree",
"Q33390",
"alg",
scripts = {"Cans", "Latn"},
translit_module = "cr-translit",
}
 
m["cs"] = {
"Czech",
"Q9056",
"zlw",
scripts = Latn,
ancestors = {"zlw-ocs"},
sort_key = {
from = {"á", "é", "í", "ó", "[úů]", "ý"},
to  = {"a", "e", "i", "o", "u"  , "y"}} ,
}
 
m["cu"] = {
"Old Church Slavonic",
"Q35499",
"zls",
otherNames = {"Old Church Slavic"},
scripts = {"Cyrs", "Glag"},
translit_module = "Cyrs-Glag-translit",
entry_name = {
from = {u(0x0484)}, -- kamora
to  = {}},
sort_key = {
from = {"оу", "є"},
to  = {"у" , "е"}} ,
}
 
m["cv"] = {
"Chuvash",
"Q33348",
"trk-ogr",
scripts = Cyrl,
translit_module = "cv-translit",
override_translit = true,
}
 
m["cy"] = {
"Welsh",
"Q9309",
"cel-bry",
scripts = Latn,
ancestors = {"wlm"},
sort_key = {
from = {"[âáàä]", "ch", "dd", "[êéèë]", "ff", "ngh", "[îíìï]", "ll", "[ôóòö]", "ph", "rh", "th", "[ûúùü]", "[ŵẃẁẅ]", "[ŷýỳÿ]", "'"},
to  = {"a"     , "c~", "d~", "e"   , "f~", "g~h", "i"   , "l~", "o"   , "p~", "r~", "t~", "u"   , "w"    , "y"       }} ,
standardChars = "A-IL-PR-UWYa-il-pr-uwy0-9ÂâÊêÎîÔôÛûŴŵŶŷ" .. PUNCTUATION,
}
 
m["da"] = {
"Danish",
"Q9035",
"gmq",
scripts = Latn,
ancestors = {"gmq-oda"},
}
 
m["de"] = {
"German",
"Q188",
"gmw",
otherNames = {"High German", "New High German", "Deutsch"},
scripts = {"Latn", "Latf"},
ancestors = {"gmh"},
sort_key = {
from = {"[äàáâå]", "[ëèéê]", "[ïìíî]", "[öòóô]", "[üùúû]", "ß" },
to  = {"a"   , "e" , "i" , "o" , "u" , "ss"}} ,
standardChars = "A-Za-z0-9ÄäÖöÜüß" .. PUNCTUATION,
}
 
m["dv"] = {
"Dhivehi",
"Q32656",
"inc",
otherNames = {"Divehi", "Mahal", "Mahl", "Maldivian"},
scripts = {"Thaa"},
ancestors = {"pmh"}, -- or Helu?
translit_module = "dv-translit",
override_translit = true,
}
 
m["dz"] = {
"Dzongkha",
"Q33081",
"tbq",
scripts = {"Tibt"},
ancestors = {"xct"},
translit_module = "bo-translit",
override_translit = true,
}
 
m["ee"] = {
"Ewe",
"Q30005",
"alv-von",
scripts = Latn,
}
 
m["el"] = {
"Greek",
"Q9129",
"grk",
otherNames = {"Modern Greek", "Neo-Hellenic"},
scripts = {"Grek", "Brai"},
ancestors = {"grc"},
translit_module = "el-translit",
override_translit = true,
sort_key = {  -- Keep this synchronized with grc, cpg, pnt
from = {"[ᾳάᾴὰᾲᾶᾷἀᾀἄᾄἂᾂἆᾆἁᾁἅᾅἃᾃἇᾇ]", "[έὲἐἔἒἑἕἓ]", "[ῃήῄὴῂῆῇἠᾐἤᾔἢᾒἦᾖἡᾑἥᾕἣᾓἧᾗ]", "[ίὶῖἰἴἲἶἱἵἳἷϊΐῒῗ]", "[όὸὀὄὂὁὅὃ]", "[ύὺῦὐὔὒὖὑὕὓὗϋΰῢῧ]", "[ῳώῴὼῲῶῷὠᾠὤᾤὢᾢὦᾦὡᾡὥᾥὣᾣὧᾧ]", "ῥ", "ς"},
to  = {"α" , "ε" , "η" , "ι" , "ο" , "υ" , "ω" , "ρ", "σ"}} ,
standardChars = "ͺ;΄-ώϜϝ" .. PUNCTUATION .. "ἀ-῾",
}
 
m["en"] = {
"English",
"Q1860",
"gmw",
otherNames = {"Modern English", "New English", "Hawaiian Creole English", "Hawai'ian Creole English", "Hawaiian Creole", "Hawai'ian Creole", "Polari", "Yinglish"}, -- all but the first three are names of subsumed dialects which once had codes
scripts = {"Latn", "Brai", "Shaw", "Dsrt"}, -- entries in Shaw or Dsrt might require prior discussion
ancestors = {"enm"},
sort_key = {
from = {"[äàáâåā]", "[ëèéêē]", "[ïìíîī]", "[öòóôō]", "[üùúûū]", "æ" , "œ" , "[çč]", "ñ", "'"},
to  = {"a"      , "e"      , "i"      , "o"      , "u"      , "ae", "oe", "c"  , "n"}},
wikimedia_codes = {"en", "simple"},
standardChars = "A-Za-z0-9" .. PUNCTUATION .. u(0x2800) .. "-" .. u(0x28FF),
}
 
m["eo"] = {
"Esperanto",
"Q143",
"art",
scripts = Latn,
sort_key = {
from = {"[áà]", "[éè]", "[íì]", "[óò]", "[úù]", "[ĉ]", "[ĝ]", "[ĥ]", "[ĵ]", "[ŝ]", "[ŭ]"},
to  = {"a"   , "e"  , "i"  , "o"  , "u", "cĉ", "gĉ", "hĉ", "jĉ", "sĉ", "uĉ"}} ,
}
 
m["es"] = {
"Spanish",
"Q1321",
"roa",
otherNames = {"Castilian", "Amazonian Spanish", "Amazonic Spanish", "Loreto-Ucayali Spanish"},
scripts = {"Latn", "Brai"},
ancestors = {"osp"},
sort_key = {
from = {"á", "é", "í", "ó", "[úü]", "ç", "ñ"},
to  = {"a", "e", "i", "o", "u"  , "c", "n"}},
standardChars = "A-VXYZa-vxyz0-9ÁáÉéÍíÓóÚúÑñ¿¡" .. PUNCTUATION,
}
 
m["et"] = {
"Estonian",
"Q9072",
"fiu-fin",
scripts = Latn,
}
 
m["eu"] = {
"Basque",
"Q8752",
"euq",
otherNames = {"Euskara"},
scripts = Latn,
}
 
m["fa"] = {
"Persian",
"Q9168",
"ira-swi",
otherNames = {"Farsi", "New Persian", "Modern Persian", "Western Persian", "Iranian Persian", "Eastern Persian", "Dari", "Aimaq", "Aimak", "Aymaq", "Eimak"},
scripts = {"fa-Arab"},
ancestors = {"pal"}, -- "ira-mid"
entry_name = {
from = {u(0x064E), u(0x064F), u(0x0650), u(0x0651), u(0x0652)},
to  = {}} ,
}
 
m["ff"] = {
"Fula",
"Q33454",
"alv-sng",
otherNames = {"Adamawa Fulfulde", "Bagirmi Fulfulde", "Borgu Fulfulde", "Central-Eastern Niger Fulfulde", "Fulani", "Fulfulde", "Maasina Fulfulde", "Nigerian Fulfulde", "Pular", "Pulaar", "Western Niger Fulfulde"}, -- Maasina, etc are dialects, subsumed into this code
scripts = {"Latn", "Adlm"},
}
 
m["fi"] = {
"Finnish",
"Q1412",
"fiu-fin",
otherNames = {"Suomi", "Botnian"},
scripts = Latn,
entry_name = {
from = {"ˣ"},  -- Used to indicate gemination of the next consonant
to  = {}},
sort_key = {
from = {"[áàâã]", "[éèêẽ]", "[íìîĩ]", "[óòôõ]", "[úùûũ]", "[ýỳŷüű]", "[øõő]", "æ" , "œ" , "[čç]", "š", "ž", "ß" , "[':]"},
to  = {"a" , "e" , "i" , "o" , "u" ,  "y" , "ö" , "ae", "oe", "c"  , "s", "z", "ss"}} ,
}
 
m["fj"] = {
"Fijian",
"Q33295",
"poz-occ",
scripts = Latn,
}
 
m["fo"] = {
"Faroese",
"Q25258",
"gmq",
scripts = Latn,
ancestors = {"non"},
}
 
m["fr"] = {
"French",
"Q150",
"roa-oil",
otherNames = {"Modern French"},
scripts = {"Latn", "Brai"},
ancestors = {"frm"},
sort_key = {
from = {"[áàâä]", "[éèêë]", "[íìîï]", "[óòôö]", "[úùûü]", "[ýỳŷÿ]", "ç", "æ" , "œ" , "'"},
to  = {"a" , "e" , "i" , "o" , "u" , "y" , "c", "ae", "oe"}},
standardChars = "A-Za-z0-9ÀÂÇÉÈÊËÎÏÔŒÛÙÜàâçéèêëîïôœûùü«»" .. PUNCTUATION,
}
 
m["fy"] = {
"West Frisian",
"Q27175",
"gmw-fri",
otherNames = {"Western Frisian", "Frisian"},
scripts = Latn,
ancestors = {"ofs"},
sort_key = {
from = {"[àáâä]", "[èéêë]", "[ìíîïyỳýŷÿ]", "[òóôö]", "[ùúûü]", "æ", "[ /.-]"},
to  = {"a" , "e" , "i" , "o" , "u", "ae"}} ,
standardChars = "A-PR-WYZa-pr-wyz0-9Ææâäàéêëèïìôöòúûüùỳ" .. PUNCTUATION,
}
 
m["ga"] = {
"Irish",
"Q9142",
"cel-gae",
otherNames = {"Irish Gaelic"},
scripts = Latn,
ancestors = {"mga"},
sort_key = {
from = {"á", "é", "í", "ó", "ú", "ý", "ḃ" , "ċ" , "ḋ" , "ḟ" , "ġ" , "ṁ" , "ṗ" , "ṡ" , "ṫ" },
to  = {"a", "e", "i", "o", "u", "y", "bh", "ch", "dh", "fh", "gh", "mh", "ph", "sh", "th"}} ,
standardChars = "A-IL-PR-Ua-il-pr-u0-9ÁáÉéÍíÓóÚú" .. PUNCTUATION,
}
 
m["gd"] = {
"Scottish Gaelic",
"Q9314",
"cel-gae",
otherNames = {"Gàidhlig", "Highland Gaelic", "Scots Gaelic", "Scottish"},
scripts = Latn,
ancestors = {"mga"},
sort_key = {
from = {"[áà]", "[éè]", "[íì]", "[óò]", "[úù]", "[ýỳ]"},
to  = {"a"  , "e"  , "i"  , "o"  , "u"  , "y"  }} ,
standardChars = "A-IL-PR-Ua-il-pr-u0-9ÀàÈèÌìÒòÙù" .. PUNCTUATION,
}
 
m["gl"] = {
"Galician",
"Q9307",
"roa",
scripts = Latn,
ancestors = {"roa-opt"},
sort_key = {
from = {"á", "é", "í", "ó", "ú"},
to  = {"a", "e", "i", "o", "u"}} ,
}
 
m["gn"] = {
"Guaraní",
"Q35876",
"tup-gua",
scripts = Latn,
}
 
m["gu"] = {
"Gujarati",
"Q5137",
"inc",
scripts = {"Gujr"},
ancestors = {"inc-mgu"},
translit_module = "gu-translit",
}
 
m["gv"] = {
"Manx",
"Q12175",
"cel-gae",
otherNames = {"Manx Gaelic"},
scripts = Latn,
ancestors = {"mga"},
sort_key = {
from = {"ç", "-"},
to  = {"c"}} ,
standardChars = "A-WYÇa-wyç0-9" .. PUNCTUATION,
}
 
m["ha"] = {
"Hausa",
"Q56475",
"cdc-wst",
scripts = LatnArab,
    sort_key = {
from = {"ɓ",  "ɗ",  "ƙ",  "'y", "ƴ",  "'" },
to  = {"b~" , "d~" , "k~", "y~", "y~", ""  }},
    entry_name = {
from = {"R̃", "r̃", "À", "à", "È", "è", "Ì", "ì", "Ò", "ò", "Ù", "ù", "Â", "â", "Ê", "ê", "Î", "î", "Ô", "ô", "Û", "û", "Ā", "ā", "Ē", "ē", "Ī", "ī", "Ō", "ō", "Ū", "ū", "Á", "á", "É", "é", "Í", "í", "Ó", "ó", "Ú", "ú", "Ā̀", "ā̀", "Ḕ", "ḕ", "Ī̀", "ī̀", "Ṑ", "ṑ", "Ū̀", "ū̀", GRAVE, ACUTE},
to  = {"R", "r", "A", "a", "E", "e", "I", "i", "O", "o", "U", "u", "A", "a", "E", "e", "I", "i", "O", "o", "U", "u", "A", "a", "E", "e", "I", "i", "O", "o", "U", "u", "A", "a", "E", "e", "I", "i", "O", "o", "U", "u", "A", "a", "E", "e", "I", "i", "O", "o", "U", "u"}},
}
 
m["he"] = {
"Hebrew",
"Q9288",
"sem-can",
otherNames = {"Ivrit"},
scripts = {"Hebr", "Phnx", "Brai"},
entry_name = {
from = {"[" .. u(0x0591) .. "-" .. u(0x05BD) .. u(0x05BF) .. "-" .. u(0x05C5) .. u(0x05C7) .. "]"},
to  = {}} ,
}
 
m["hi"] = {
"Hindi",
"Q1568",
"inc",
otherNames = {"Hindavi", "Khariboli", "Khari Boli", "Manak Hindi"},
scripts = {"Deva", "Kthi", "Newa"},
ancestors = {"inc-ohi"},
translit_module = "hi-translit",
}
 
m["ho"] = {
"Hiri Motu",
"Q33617",
"crp",
otherNames = {"Pidgin Motu", "Police Motu"},
scripts = Latn,
ancestors = {"meu"},
}
 
m["ht"] = {
"Haitian Creole",
"Q33491",
"crp",
otherNames = {"Creole", "Haitian", "Kreyòl"},
scripts = Latn,
}
 
m["hu"] = {
"Hungarian",
"Q9067",
"urj-ugr",
otherNames = {"Magyar"},
scripts = {"Latn", "Hung"},
ancestors = {"ohu"},
sort_key = {
from = {"á", "é", "í", "ó", "ú", "ő", "ű"},
to  = {"a", "e", "i", "o", "u", "ö", "ü"}} ,
}
 
m["hy"] = {
"Armenian",
"Q8785",
"hyx",
otherNames = {"Modern Armenian", "Eastern Armenian", "Western Armenian"},
scripts = {"Armn", "Brai"},
ancestors = {"axm"},
translit_module = "Armn-translit",
override_translit = true,
sort_key = {
from = {"ու", "և", "եւ"},
to  = {"ւ", "եվ", "եվ"}},
entry_name = {
from = {"՞", "՜", "՛", "՟", "և", "<sup>յ</sup>", "<sup>ի</sup>"},
to  = {"", "", "", "", "եւ", "յ", "ի"}} ,
}
 
m["hz"] = {
"Herero",
"Q33315",
"bnt",
scripts = Latn,
}
 
m["ia"] = {
"Interlingua",
"Q35934",
"art",
scripts = Latn,
}
 
m["id"] = {
"Indonesian",
"Q9240",
"poz-mly",
scripts = Latn,
ancestors = {"ms"},
}
 
m["ie"] = {
"Interlingue",
"Q35850",
"art",
otherNames = {"Occidental"},
scripts = Latn,
}
 
m["ig"] = {
"Igbo",
"Q33578",
"nic-bco",
scripts = Latn,
}
 
m["ii"] = {
"Sichuan Yi",
"Q34235",
"tbq-lol",
otherNames = {"Nuosu", "Nosu", "Northern Yi", "Liangshan Yi"},
scripts = {"Yiii"},
translit_module = "ii-translit",
}
 
m["ik"] = {
"Inupiak",
"Q27183",
"esx-inu",
otherNames = {"Inupiaq", "Iñupiaq", "Inupiatun"},
scripts = Latn,
}
 
m["io"] = {
"Ido",
"Q35224",
"art",
scripts = Latn,
}
 
m["is"] = {
"Icelandic",
"Q294",
"gmq",
scripts = Latn,
ancestors = {"non"},
}
 
m["it"] = {
"Italian",
"Q652",
"roa",
scripts = Latn,
sort_key = {
from = {"[àáâäå]", "[èéêë]", "[ìíîï]", "[òóôö]", "[ùúûü]"},
to  = {"a"   , "e" , "i" , "o" , "u" }} ,
}
 
m["iu"] = {
"Inuktitut",
"Q29921",
"esx-inu",
otherNames = {"Eastern Canadian Inuktitut", "Eastern Canadian Inuit", "Western Canadian Inuktitut", "Western Canadian Inuit", "Western Canadian Inuktun", "Inuinnaq", "Inuinnaqtun", "Inuvialuk", "Inuvialuktun", "Nunavimmiutit", "Nunatsiavummiut", "Aivilimmiut", "Natsilingmiut", "Kivallirmiut", "Siglit", "Siglitun"},
scripts = {"Cans", "Latn"},
translit_module = "iu-translit",
override_translit = true,
}
 
m["ja"] = {
"Japanese",
"Q5287",
"jpx",
otherNames = {"Modern Japanese", "Nipponese", "Nihongo"},
scripts = {"Jpan", "Brai"},
ancestors = {"ojp"},
--[=[
-- Handled by jsort function in [[Module:ja]].
sort_key = {
from = {"[ぁァア]", "[ぃィイ]", "[ぅゔゥウヴ]", "[ぇェエ]", "[ぉォオ]", "[がゕカガヵ]", "[ぎキギ]", "[ぐクグㇰ]", "[げゖケゲヶ]", "[ごコゴ]", "[ざサザ]", "[じシジㇱ]", "[ずスズㇲ]", "[ぜセゼ]", "[ぞソゾ]", "[だタダ]", "[ぢチヂ]", "[っづッツヅ]", "[でテデ]", "[どトドㇳ]", "ナ", "ニ", "[ヌㇴ]", "ネ", "ノ", "[ばぱハバパㇵ]", "[びぴヒビピㇶ]", "[ぶぷフブプㇷ]", "[べぺヘベペㇸ]", "[ぼぽホボポㇹ]", "マ", "ミ", "[ムㇺ]", "メ", "モ", "[ゃャヤ]", "[ゅュユ]", "[ょョヨ]", "[ラㇻ]", "[リㇼ]", "[ルㇽ]", "[レㇾ]", "[ロㇿ]", "[ゎヮワヷ]", "[ヰヸ]", "[ヱヹ]", "[ヲヺ]", "ン", "[゙゚゛゜ゝゞ・ヽヾ]", "𛀀"},
to  = {"あ", "い", "う", "え", "お", "か", "き", "く", "け", "こ", "さ", "し", "す", "せ", "そ", "た", "ち", "つ", "て", "と", "な", "に", "ぬ", "ね", "の", "は", "ひ", "ふ", "へ", "ほ", "ま", "み", "む", "め", "も", "や", "ゆ", "よ", "ら", "り", "る", "れ", "ろ", "わ", "ゐ", "ゑ", "を", "ん", "", "え"}},
--]=]
}
 
m["jv"] = {
"Javanese",
"Q33549",
"poz-sus",
scripts = {"Latn", "Java"},
translit_module = "jv-translit",
ancestors = {"kaw"},
link_tr = true,
}
 
m["ka"] = {
"Georgian",
"Q8108",
"ccs-gzn",
otherNames = {"Kartvelian", "Judeo-Georgian", "Kivruli", "Gruzinic"},
scripts = {"Geor", "Geok", "Hebr"}, -- Hebr is used to write Judeo-Georgian
ancestors = {"oge"},
translit_module = "Geor-translit",
override_translit = true,
entry_name = {
from = {"̂"},
to  = {""}},
}
 
m["kg"] = {
"Kongo",
"Q33702",
"bnt",
otherNames = {"Kikongo", "Koongo", "Laari", "San Salvador Kongo", "Yombe"},
scripts = Latn,
}
 
m["ki"] = {
"Kikuyu",
"Q33587",
"bnt",
otherNames = {"Gikuyu", "Gĩkũyũ"},
scripts = Latn,
}
 
m["kj"] = {
"Kwanyama",
"Q1405077",
"bnt",
otherNames = {"Kuanyama", "Oshikwanyama"},
scripts = Latn,
}
 
m["kk"] = {
"Kazakh",
"Q9252",
"trk-kip",
scripts = {"Cyrl", "Latn", "kk-Arab"},
translit_module = "kk-translit",
override_translit = true,
}
 
m["kl"] = {
"Greenlandic",
"Q25355",
"esx-inu",
otherNames = {"Kalaallisut"},
scripts = Latn,
}
 
m["km"] = {
"Khmer",
"Q9205",
"mkh",
otherNames = {"Cambodian"},
scripts = {"Khmr"},
ancestors = {"mkh-mkm"},
translit_module = "km-translit",
}
 
m["kn"] = {
"Kannada",
"Q33673",
"dra",
scripts = {"Knda"},
ancestors = {"dra-mkn"},
translit_module = "kn-translit",
}
 
m["ko"] = {
"Korean",
"Q9176",
"qfa-kor",
otherNames = {"Modern Korean"},
scripts = {"Kore", "Brai"},
ancestors = {"okm"},
translit_module = "ko-translit",
}
 
m["kr"] = {
"Kanuri",
"Q36094",
"ssa-sah",
otherNames = {"Kanembu", "Bilma Kanuri", "Central Kanuri", "Manga Kanuri", "Tumari Kanuri"},
scripts = LatnArab,
sort_key = {
from = {"ny", "ǝ", "sh"},
to  = {"n~", "e~", "s~"}} , -- 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
entry_name = {
from = {"À", "à", "È", "è", "Ǝ̀", "ǝ̀", "Ì", "ì", "Ò", "ò", "Ù", "ù", "Â", "â", "Ê", "ê", "Ǝ̂", "ǝ̂", "Î", "î", "Ô", "ô", "Û", "û", "Ă", "ă", "Ĕ", "ĕ", "Ǝ̆", "ǝ̆", "Ĭ", "ĭ", "Ŏ", "ŏ", "Ŭ", "ŭ", "Á", "á", "É", "é", "Ǝ́", "ǝ́", "Í", "í", "Ó", "ó", "Ú", "ú", GRAVE, ACUTE},
to  = {"A", "a", "E", "e", "Ǝ", "ǝ", "I", "i", "O", "o", "U", "u", "A", "a", "E", "e", "Ǝ", "ǝ", "I", "i", "O", "o", "U", "u", "A", "a", "E", "e", "Ǝ", "ǝ", "I", "i", "O", "o", "U", "u", "A", "a", "E", "e", "Ǝ", "ǝ", "I", "i", "O", "o", "U", "u"}},
}
 
m["ks"] = {
"Kashmiri",
otherNames = {"Koshur"},
"Q33552",
"inc-dar",
scripts = {"ks-Arab", "Deva", "Shrd", "Latn"},
translit_module = "translit-redirect",
ancestors = {"inc-dar-pro"},
}
 
m["ku"] = {
"Kurdish",
"Q36368",
"ira-nwi",
scripts = {"Latn", "ku-Arab", "Armn", "Cyrl"},
translit_module = "translit-redirect",
}
 
-- "kv" IS TREATED AS "koi", "kpv", SEE WT:LT
 
m["kw"] = {
"Cornish",
"Q25289",
"cel-bry",
scripts = Latn,
ancestors = {"cnx"},
}
}
-- Braille characters for the standardChars field.
local braille = {}
for i = 0x2800, 0x28FF do
insert(braille, u(i))
end
c.braille = table.concat(braille)
export.chars = c


m["ky"] = {
-- PUA characters, generally used in sortkeys.
"Kyrgyz",
-- Note: if the limit needs to be increased, do so in powers of 2 (due to the way memory is allocated for tables).
"Q9255",
local p = {}
"trk-kip",
for i = 1, 32 do
otherNames = {"Kirghiz", "Kirgiz"},
p[i] = u(0xF000+i-1)
scripts = {"Cyrl", "Latn", "Arab"},
end
translit_module = "ky-translit",
export.puaChars = p
override_translit = true,
}
 
m["la"] = {
"Latin",
"Q397",
"itc",
scripts = Latn,
ancestors = {"itc-ola"},
entry_name = {remove_diacritics = MACRON..BREVE..DIAER},
standardChars = "A-Za-zÆ挜Ā-ăĒ-ĕĪ-ĭŌ-ŏŪ-ŭȲȳ" .. MACRON .. BREVE .. PUNCTUATION,
}


m["lb"] = {
local s = {}
"Luxembourgish",
-- These values are placed here to make it possible to synchronise a group of languages without the need for a dedicated function module.
"Q9051",
"gmw",
scripts = Latn,
ancestors = {"gmh"},
}


m["lg"] = {
s["cau-Cyrl-displaytext"] = {
"Luganda",
from = {"[IlІӀ]", ""},
"Q33368",
to = {"ӏ", ""}
"bnt",
otherNames = {"Ganda", "Oluganda"},
scripts = Latn,
entry_name = {
from = {"á", "Á", "é", "É", "í", "Í", "ó", "Ó", "ú", "Ú", "ń", "Ń", "ḿ", "Ḿ", "â", "Â", "ê", "Ê", "î", "Î", "ô", "Ô", "û", "Û" },
to   = {"a", "A", "e", "E", "i", "I", "o", "O", "u", "U", "n", "N", "m", "M", "a", "A", "e", "E", "i", "I", "o", "O", "u", "U",}},
sort_key = {
from = {"ŋ"},
to  = {"n"}} ,
}
}


m["li"] = {
s["cau-Cyrl-entryname"] = {
"Limburgish",
remove_diacritics = c.grave .. c.acute .. c.macron,
"Q102172",
from = s["cau-Cyrl-displaytext"].from,
"gmw",
to = s["cau-Cyrl-displaytext"].to
otherNames = {"Limburgan", "Limburgian", "Limburgic"},
scripts = Latn,
ancestors = {"dum"},
}
}


m["ln"] = {
s["cau-Latn-entryname"] = {remove_diacritics = c.grave .. c.acute .. c.macron}
"Lingala",
"Q36217",
"bnt",
otherNames = {"Ngala"},
scripts = Latn,
}


m["lo"] = {
s["Cyrs-entryname"] = {remove_diacritics = c.grave .. c.acute ..  c.diaer .. c.kamora .. c.dasiapneumata .. c.psilipneumata}
"Lao",
"Q9211",
"tai-swe",
otherNames = {"Laotian"},
scripts = {"Laoo"},
translit_module = "lo-translit",
sort_key = {
from = {"%p", "[່-ໍ]", "ຼ", "ຽ", "ໜ", "ໝ", "([ເແໂໃໄ])([ກ-ຮ])"},
to  = {"", "", "ລ", "ຍ", "ຫນ", "ຫມ", "%2%1"}},
}


m["lt"] = {
s["Cyrs-sortkey"] = {
"Lithuanian",
from = {
"Q9083",
"ї", "оу", -- 2 chars
"bat",
"ґ", "ꙣ", "є", "[ѕꙃꙅ]", "ꙁ", "[іꙇ]", "[ђꙉ]", "[ѻꙩꙫꙭꙮꚙꚛ]", "ꙋ", "[ѡѿꙍѽ]", "ꙑ", "ѣ", "ꙗ", "ѥ", "ꙕ", "[ѧꙙ]", "[ѩꙝ]", "ꙛ", "ѫ", "ѭ", "ѯ", "ѱ", "ѳ", "ѵ", "ҁ" -- 1 char
scripts = Latn,
},
ancestors = {"olt"},
to = {
entry_name = {
"и" .. p[1], "у",
from = {"[áãà]", "[ÁÃÀ]", "[éẽè]", "[ÉẼÈ]", "[íĩì]", "[ÍĨÌ]", "[ýỹ]", "[ÝỸ]", "ñ", "[óõò]", "[ÓÕÒ]", "[úũù]", "[ÚŨÙ]", ACUTE, GRAVE, TILDE},
"г" .. p[1], "д" .. p[1], "е", "ж" .. p[1], "з", "и" .. p[1], "и" .. p[2], "о", "у", "х" .. p[1], "ы", "ь" .. p[1], "ь" .. p[2], "ь" .. p[3], "ю", "я", "я" .. p[1], "я" .. p[2], "я" .. p[3], "я" .. p[4], "я" .. p[5], "я" .. p[6], "я" .. p[7], "я" .. p[8], "я" .. p[9]
to  = {"a",       "A",     "e",     "E",     "i",     "I",     "y",   "Y",   "n",   "o",   "O",     "u",     "U"}} ,
},
}
}


m["lu"] = {
s["Grek-sortkey"] = {
"Luba-Katanga",
remove_diacritics = c.grave .. c.acute .. c.diaer .. c.caron .. c.commaabove .. c.revcommaabove .. c.diaerbelow .. c.brevebelow .. c.perispomeni .. c.ypogegrammeni,
"Q36157",
from = {"ς"},
"bnt",
to = {"σ"}
scripts = Latn,
}
}


m["lv"] = {
s["Jpan-sortkey"] = {
"Latvian",
Jpan = "Jpan-sortkey",
"Q9078",
Hani = "Hani-sortkey",
"bat",
Hrkt = "Hira-sortkey", -- sort general kana by normalizing to Hira
otherNames = {"Lettish", "Lett"},
Hira = "Hira-sortkey",
scripts = Latn,
Kana = "Kana-sortkey"
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 = {"Ȩ", "ȩ", "[ÂÃÀ]", "[âãà]", "[ÊẼÈ]", "[êẽè]", "[ÎĨÌ]", "[îĩì]", "[ÔÕÒ]", "[ôõò]", "[ÛŨÙ]", "[ûũù]", "[ÑǸ]", "[ñǹ]", "[" .. CIRC .. TILDE ..GRAVE .."]", "([aAeEiIoOuU])" .. TILDE .."?([lrnmuiLRNMUI])" .. TILDE .. "?([^aAeEiIoOuUāĀēĒīĪūŪ])", "([aAeEiIoOuU])" .. TILDE .."?([lrnmuiLRNMUI])" .. TILDE .."?$", "([iI])" .. TILDE .. "?([eE])" .. TILDE .. "?", "A" .. TILDE, "a" .. TILDE, "E" .. TILDE, "e" .. TILDE, "I" .. TILDE, "i" .. TILDE, "U" .. TILDE, "u" .. TILDE, TILDE},
to  = {"E", "e", "A" .. TILDE, "a" .. TILDE, "E" .. TILDE, "e" .. TILDE, "I" .. TILDE, "i" .. TILDE, "O", "o", "U" .. TILDE, "u" .. TILDE, "N", "n", TILDE, "%1%2%3", "%1%2", "%1%2", "Ā", "ā", "Ē", "ē", "Ī", "ī", "Ū", "ū", ""}},
}
}


m["mg"] = {
s["Jpan-translit"] = {
"Malagasy",
Hrkt = "Hrkt-translit",
"Q7930",
Hira = "Hrkt-translit",
"poz-bre",
Kana = "Hrkt-translit"
otherNames = {"Betsimisaraka Malagasy", "Betsimisaraka", "Northern Betsimisaraka Malagasy", "Northern Betsimisaraka", "Southern Betsimisaraka Malagasy", "Southern Betsimisaraka", "Bara Malagasy", "Bara", "Masikoro Malagasy", "Masikoro", "Antankarana", "Antankarana Malagasy", "Plateau Malagasy", "Sakalava", "Tandroy Malagasy", "Tandroy", "Tanosy", "Tanosy Malagasy", "Tesaka", "Tsimihety", "Tsimihety Malagasy", "Bushi", "Shibushi", "Kibushi"},
scripts = Latn,
}
}


m["mh"] = {
local HaniChars = require("Module:scripts").getByCode("Hani"):getCharacters()
"Marshallese",
s["Kore-entryname"] = {
"Q36280",
remove_diacritics = u(0x302E) .. u(0x302F),
"poz-mic",
from = {"([" .. HaniChars .. "])%(.-%)", "(.)%-(.)", "%([" .. HaniChars .. "]+%)"},
scripts = Latn,
to = {"%1", "%1%2"}
sort_key = {
from = {"ā" , "ļ" , "" , "ņ" , "n̄"  , "o̧" , "ō"  , "ū" },
to   = {"a~", "l~", "m~", "n~", "n~~", "o~", "o~~", "u~"}} ,
}
}


m["mi"] = {
s["Mong-displaytext"] = {
"Maori",
from = {"([ᠨ-ᡂᡸ])ᠶ([ᠨ-ᡂᡸ])", "([ᠠ-ᡂᡸ])ᠸ([^᠋ᠠ-ᠧ])", "([ᠠ-ᡂᡸ])ᠸ$"},
"Q36451",
to = {"%1ᠢ%2", "%1ᠧ%2", "%1ᠧ"}
"poz-pep",
otherNames = {"Māori"},
scripts = Latn,
}
}


m["mk"] = {
s["Mong-entryname"] = s["Mong-displaytext"]
"Macedonian",
"Q9296",
"zls",
scripts = Cyrl,
translit_module = "mk-translit",
entry_name = {
from = {ACUTE},
to  = {}},
}


m["ml"] = {
s["roa-oil-sortkey"] = {
"Malayalam",
remove_diacritics = c.grave .. c.acute .. c.circ .. c.diaer .. c.ringabove .. c.cedilla .. "'",
"Q36236",
from = {"æ", "œ"},
"dra",
to = {"ae", "oe"}
scripts = {"Mlym"},
translit_module = "ml-translit",
override_translit = true,
}
}


m["mn"] = {
s["Tibt-displaytext"] = {
"Mongolian",
from = {"ༀ", "༌", "།།", "༚༚", "༚༝", "༝༚", "༝༝", "ཷ", "", "ེེ", "ོོ"},
"Q9246",
to = {"ཨོཾ", "་", "༎", "", "", "࿎", "༞", "ྲཱྀ", "ླཱྀ", "ཻ", "ཽ"}
"xgn",
otherNames = {"Khalkha Mongolian"},
scripts = {"Cyrl", "Mong", "Soyo", "Zanb"}, -- entries in Soyo or Zanb might require prior discussion
ancestors = {"cmg"},
translit_module = "mn-translit",
override_translit = true,
}
}


-- "mo" IS TREATED AS "ro", SEE WT:LT
s["Tibt-entryname"] = s["Tibt-displaytext"]


m["mr"] = {
s["wen-sortkey"] = {
"Marathi",
from = {
"Q1571",
"l", -- Ensure "l" comes after "ł".
"inc",
"b́", "č", "ć", "dź", "ě", "f́", "ch", "ł", "ḿ", "ń", "ó", "ṕ", "ř", "ŕ", "š", "ś", "", "ž", "ż", "ź"
scripts = {"Deva", "Modi"},
},
ancestors = {"omr"},
to = {
translit_module = "mr-translit",
"l" .. p[1],
"b" .. p[1], "c" .. p[1], "c" .. p[2], "d" .. p[1], "e" .. p[1], "f" .. p[1], "h" .. p[1], "l", "m" .. p[1], "n" .. p[1], "o" .. p[1], "p" .. p[1], "r" .. p[1], "r" .. p[2], "s" .. p[1], "s" .. p[2], "w" .. p[1], "z" .. p[1], "z" .. p[2], "z" .. p[3]
}
}
}


m["ms"] = {
export.shared = s
"Malay",
"Q9237",
"poz-mly",
otherNames = {"Malaysian", "Standard Malay"},
scripts = {"Latn", "ms-Arab"},
}


m["mt"] = {
-- Short-term solution to override the standard substitution process, by forcing the module to substitute the entire text in one pass. This results in any PUA characters that are used as stand-ins for formatting being handled by the language-specific substitution process, which is usually undesirable.
"Maltese",
-- This override is provided for languages which use formatting between strings of text which might need to interact with each other (e.g. Korean 값이 transliterates as "gaps-i", but [[값]] has the formatting '''값'''[[-이]]. The normal process would split the text at the second '''.)
"Q9166",
export.contiguous_substitution = {
"sem-arb",
["ja"] = "tr",
scripts = Latn,
["jje"] = "tr",
ancestors = {"sqr"},
["ko"] = "tr",
["ru"] = "tr",
}
}


m["my"] = {
return export
"Burmese",
"Q9228",
"tbq-brm",
otherNames = {"Myanmar"},
scripts = {"Mymr"},
ancestors = {"obr"},
translit_module = "my-translit",
override_translit = true,
}
 
m["na"] = {
"Nauruan",
"Q13307",
"poz-mic",
otherNames = {"Nauru"},
scripts = Latn,
}
 
m["nb"] = {
"Norwegian Bokmål",
"Q25167",
"gmq",
otherNames = {"Bokmål"},
scripts = Latn,
ancestors = {"gmq-mno"},
wikimedia_codes = {"no"},
}
 
m["nd"] = {
"Northern Ndebele",
"Q35613",
"bnt-ngu",
otherNames = {"North Ndebele"},
scripts = Latn,
entry_name = {
from = {"[āàáâǎ]", "[ēèéêě]", "[īìíîǐ]", "[ōòóôǒ]", "[ūùúûǔ]", "ḿ", "[ǹńň]", MACRON, ACUTE, GRAVE, CIRC, CARON},
to  = {"a"      , "e"      , "i"      , "o"      , "u"      , "m", "n"    }},
}
 
m["ne"] = {
"Nepali",
"Q33823",
"inc-pah",
otherNames = {"Nepalese"},
scripts = {"Deva", "Newa"},
translit_module = "ne-translit",
ancestors = {"psu"},
}
 
m["ng"] = {
"Ndonga",
"Q33900",
"bnt",
scripts = Latn,
}
 
m["nl"] = {
"Dutch",
"Q7411",
"gmw",
otherNames = {"Netherlandic", "Flemish"},
scripts = Latn,
ancestors = {"dum"},
sort_key = {
from = {"[äáâå]", "[ëéê]", "[ïíî]", "[öóô]", "[üúû]", "ç", "ñ", "^-"},
to  = {"a" , "e" , "i" , "o" , "u" , "c", "n"}} ,
standardChars = "A-Za-z0-9" .. PUNCTUATION .. u(0x2800) .. "-" .. u(0x28FF),
}
 
m["nn"] = {
"Norwegian Nynorsk",
"Q25164",
"gmq",
otherNames = {"New Norwegian", "Nynorsk"},
scripts = Latn,
ancestors = {"gmq-mno"},
}
 
m["no"] = {
"Norwegian",
"Q9043",
"gmq",
scripts = Latn,
ancestors = {"gmq-mno"},
}
 
m["nr"] = {
"Southern Ndebele",
"Q36785",
"bnt-ngu",
otherNames = {"South Ndebele"},
scripts = Latn,
entry_name = {
from = {"[āàáâǎ]", "[ēèéêě]", "[īìíîǐ]", "[ōòóôǒ]", "[ūùúûǔ]", "ḿ", "[ǹńň]", MACRON, ACUTE, GRAVE, CIRC, CARON},
to  = {"a"      , "e"      , "i"      , "o"      , "u"      , "m", "n"    }},
}
 
m["nv"] = {
"Navajo",
"Q13310",
"apa",
otherNames = {"Navaho", "Diné bizaad"},
scripts = {"nv-Latn"},
sort_key = {
from = {"[áą]", "[éę]", "[íį]", "[óǫ]", "ń", "^n([djlt])", "ł" , "[ʼ’']", ACUTE},
to  = {"a"  , "e"  , "i"  , "o"  , "n", "ni%1"   , "l~"}}, -- the tilde is used to guarantee that ł will always be sorted after all other words with l
}
 
m["ny"] = {
"Chichewa",
"Q33273",
"bnt",
otherNames = {"Chicheŵa", "Chinyanja", "Nyanja", "Chewa", "Cicewa", "Cewa", "Cinyanja"},
scripts = Latn,
entry_name = {
from = {"ŵ", "Ŵ", "á", "Á", "é", "É", "í", "Í", "ó", "Ó", "ú", "Ú", "ń", "Ń", "ḿ", "Ḿ" },
to  = {"w", "W", "a", "A", "e", "E", "i", "I", "o", "O", "u", "U", "n", "N", "m", "M"}},
sort_key = {
from = {"ng'"},
to  = {"ng"}} ,
}
 
m["oc"] = {
"Occitan",
"Q14185",
"roa",
otherNames = {"Provençal", "Auvergnat", "Auvernhat", "Gascon", "Languedocien", "Lengadocian", "Shuadit", "Chouhadite", "Chouhadit", "Chouadite", "Chouadit", "Shuhadit", "Judeo-Provençal", "Judeo-Provencal", "Judeo-Comtadin"},
scripts = {"Latn", "Hebr"},
ancestors = {"pro"},
sort_key = {
from = {"[àá]", "[èé]", "[íï]", "[òó]", "[úü]", "ç", "([lns])·h"},
to  = {"a"  , "e"  , "i"  , "o"  , "u"  , "c", "%1h"   }} ,
}
 
m["oj"] = {
"Ojibwe",
"Q33875",
"alg",
otherNames = {"Chippewa", "Ojibway", "Ojibwemowin", "Southwestern Ojibwa"},
scripts = {"Cans", "Latn"},
}
 
m["om"] = {
"Oromo",
"Q33864",
"cus",
otherNames = {"Orma", "Borana-Arsi-Guji Oromo", "West Central Oromo"},
scripts = {"Latn", "Ethi"},
}
 
m["or"] = {
"Oriya",
"Q33810",
"inc",
otherNames = {"Odia", "Oorya"},
scripts = {"Orya"},
ancestors = {"inc-mor"},
translit_module = "or-translit",
}
 
m["os"] = {
"Ossetian",
"Q33968",
"ira-scy",
otherNames = {"Ossete", "Ossetic", "Digor", "Iron"},
scripts = {"Cyrl", "Geor", "Latn"},
ancestors = {"oos"},
translit_module = "os-translit",
override_translit = true,
entry_name = {
from = {GRAVE, ACUTE},
to  = {}} ,
}
 
m["pa"] = {
"Punjabi",
"Q58635",
"inc",
otherNames = {"Panjabi"},
scripts = {"Guru", "pa-Arab", "Deva"},
ancestors = {"psu"},
translit_module = "translit-redirect",
entry_name = {
from = {u(0x064B), u(0x064C), u(0x064D), u(0x064E), u(0x064F), u(0x0650), u(0x0651), u(0x0652)},
to  = {}} ,
}
 
m["pi"] = {
"Pali",
"Q36727",
"inc-old",
scripts = {"Latn", "Brah", "Deva", "Beng", "Sinh", "Mymr", "Thai", "Lana", "Khmr"}, -- holds Laoo, not enough glyphes to render
ancestors = {"sa"},
sort_key = {
from = {"ā", "ī", "ū", "ḍ", "ḷ", "[ṁṃ]", "[ṇñṅ]", "ṭ", "([เแโใไ])([ก-ฮ])", "ᩔ", "ᩕ", "ᩖ", "ᩘ", "([ᨭ-ᨱ])ᩛ", "([ᨷ-ᨾ])ᩛ", "ᩤ", u(0xFE00)},
to  = {"a", "i", "u", "d", "l", "m"  , "n" , "t", "%2%1", "ᩈ᩠ᩈ", "᩠ᩁ", "᩠ᩃ", "ᨦ᩠", "%1᩠ᨮ", "%1᩠ᨻ", "ᩣ"}} ,
entry_name = {
from = {u(0xFE00)},
to  = {}},
}
 
m["pl"] = {
"Polish",
"Q809",
"zlw",
scripts = Latn,
ancestors = {"zlw-opl"},
sort_key = {
from = {"[Ąą]", "[Ćć]", "[Ęę]", "[Łł]", "[Ńń]", "[Óó]", "[Śś]", "[Żż]", "[Źź]"},
to  = {
"a" .. u(0x10FFFF),
"c" .. u(0x10FFFF),
"e" .. u(0x10FFFF),
"l" .. u(0x10FFFF),
"n" .. u(0x10FFFF),
"o" .. u(0x10FFFF),
"s" .. u(0x10FFFF),
"z" .. u(0x10FFFF),
"z" .. u(0x10FFFE)}} ,
}
 
m["ps"] = {
"Pashto",
"Q58680",
"ira-pat",
otherNames = {"Pashtun", "Pushto", "Pashtu", "Central Pashto", "Northern Pashto", "Southern Pashto", "Pukhto", "Pakhto", "Pakkhto", "Afghani"},
scripts = {"ps-Arab"},
ancestors = {"ira-pat-pro"},
}
 
m["pt"] = {
"Portuguese",
"Q5146",
"roa",
otherNames = {"Modern Portuguese"},
scripts = {"Latn", "Brai"},
ancestors = {"roa-opt"},
sort_key = {
from = {"[àãáâä]", "[èẽéêë]", "[ìĩíï]", "[òóôõö]", "[üúùũ]", "ç", "ñ"},
to  = {"a"   , "e"   , "i" , "o"   , "u" , "c", "n"}} ,
}
 
m["qu"] = {
"Quechua",
"Q5218",
"qwe",
scripts = Latn,
}
 
m["rm"] = {
"Romansch",
"Q13199",
"roa-rhe",
otherNames = {"Romansh", "Rumantsch", "Romanche"},
scripts = Latn,
}
 
m["ro"] = {
"Romanian",
"Q7913",
"roa-eas",
otherNames = {"Daco-Romanian", "Roumanian", "Rumanian"},
scripts = {"Latn", "Cyrl"},
sort_key = {
        from = {"ă" , "â"  , "î" , "ș" , "ț" },
        to  = {"a~", "a~~", "i~", "s~", "t~"}},
}
 
m["ru"] = {
"Russian",
"Q7737",
"zle",
scripts = {"Cyrl", "Brai"},
translit_module = "ru-translit",
sort_key = {
from = {"ё"},
to  = {"е" .. mw.ustring.char(0x10FFFF)}},
entry_name = {
from = {"Ѐ", "ѐ", "Ѝ", "ѝ", GRAVE, ACUTE},
to  = {"Е", "е", "И", "и"}},
standardChars = "ЁІА-яёі0-9—" .. PUNCTUATION,
}
 
m["rw"] = {
"Rwanda-Rundi",
"Q33573",
"bnt",
otherNames = {"Rwanda", "Kinyarwanda", "Rundi", "Kirundi", "Ha", "Giha", "Hangaza", "Vinza", "Shubi", "Subi"},
scripts = Latn,
}
 
m["sa"] = {
"Sanskrit",
"Q11059",
"inc",
scripts = {"Deva", "Bali", "as-Beng", "Beng", "Bhks", "Brah", "Gran", "Gujr", "Guru", "Java", "Khar", "Khmr", "Knda", "Lana", "Mlym", "Mymr", "Newa", "Orya", "Saur", "Shrd", "Sidd", "Sinh", "Taml", "Telu", "Thai", "Tibt", "Tirh"}, -- holds Laoo, not enough glyphes to render
sort_key = {
from = {"ā", "ī", "ū", "ḍ", "ḷ", "[ṁṃ]", "[ṇñṅ]", "ṭ", "([เแโใไ])([ก-ฮ])", "ᩔ", "ᩕ", "ᩖ", "ᩘ", "([ᨭ-ᨱ])ᩛ", "([ᨷ-ᨾ])ᩛ", "ᩤ", u(0xFE00)},
to  = {"a", "i", "u", "d", "l", "m"  , "n" , "t", "%2%1", "ᩈ᩠ᩈ", "᩠ᩁ", "᩠ᩃ", "ᨦ᩠", "%1᩠ᨮ", "%1᩠ᨻ", "ᩣ"}} ,
entry_name = {
from = {u(0xFE00)},
to  = {}},
translit_module = "translit-redirect",
}
 
m["sc"] = {
"Sardinian",
"Q33976",
"roa",
otherNames = {"Campidanese", "Campidanese Sardinian", "Logudorese", "Logudorese Sardinian", "Nuorese", "Nuorese Sardinian"},
scripts = Latn,
}
 
m["sd"] = {
"Sindhi",
"Q33997",
"inc",
scripts = {"sd-Arab", "Deva", "Sind", "Khoj"},
entry_name = {
from = {u(0x0671), u(0x064B), u(0x064C), u(0x064D), u(0x064E), u(0x064F), u(0x0650), u(0x0651), u(0x0652), u(0x0670), u(0x0640)},
to  = {u(0x0627)}},
ancestors = {"psu"},
}
 
m["se"] = {
"Northern Sami",
"Q33947",
"smi",
otherNames = {"North Sami", "Northern Saami", "North Saami"},
scripts = Latn,
entry_name = {
from = {"ạ", "[ēẹ]", "ī", "[ōọ]", "ū", "ˈ"},
to  = {"a", "e"  , "i", "o"  , "u"} },
sort_key = {
from = {"á" , "č" , "đ" , "ŋ" , "š" , "ŧ" , "ž" },
to  = {"a²", "c²", "d²", "n²", "s²", "t²", "z²"} },
standardChars = "A-PR-VZa-pr-vz0-9ÁáČčĐđŊŋŠšŦŧŽž" .. PUNCTUATION,
}
 
m["sg"] = {
"Sango",
"Q33954",
"crp",
scripts = Latn,
}
 
m["sh"] = {
"Serbo-Croatian",
"Q9301",
"zls",
otherNames = {"BCS", "Croato-Serbian", "Serbocroatian", "Bosnian", "Croatian", "Montenegrin", "Serbian"},
scripts = {"Latn", "Cyrl"},
entry_name = {
from = {"[ȀÀȂÁĀÃ]", "[ȁàȃáāã]", "[ȄÈȆÉĒẼ]", "[ȅèȇéēẽ]", "[ȈÌȊÍĪĨ]", "[ȉìȋíīĩ]", "[ȌÒȎÓŌÕ]", "[ȍòȏóōõ]", "[ȐȒŔ]", "[ȑȓŕ]", "[ȔÙȖÚŪŨ]", "[ȕùȗúūũ]", "Ѐ", "ѐ", "[ӢЍ]", "[ӣѝ]", "[Ӯ]", "[ӯ]", GRAVE, ACUTE, DGRAVE, INVBREVE, MACRON, TILDE},
to  = {"A"   , "a"   , "E"   , "e"   , "I"   , "i"   , "O"   , "o"   , "R" , "r" , "U"   , "u"   , "Е", "е", "И"  , "и", "У", "у"  }},
wikimedia_codes = {"sh", "bs", "hr", "sr"},
}
 
m["si"] = {
"Sinhalese",
"Q13267",
"inc",
otherNames = {"Singhalese", "Sinhala"},
scripts = {"Sinh"},
ancestors = {"elu-prk"},
translit_module = "si-translit",
override_translit = true,
}
 
m["sk"] = {
"Slovak",
"Q9058",
"zlw",
scripts = Latn,
sort_key = {
from = {"[áä]", "é", "í", "[óô]", "ú", "ý", "ŕ", "ĺ", "[" .. DIAER .. ACUTE .. CIRC .. "]"},
to  = {"a"  , "e", "i", "o"  , "u", "y", "r", "l", ""}} ,
}
 
m["sl"] = {
"Slovene",
"Q9063",
"zls",
otherNames = {"Slovenian"},
scripts = Latn,
entry_name = {
from = {"[ÁÀÂȂȀ]", "[áàâȃȁ]", "[ÉÈÊȆȄỆẸ]", "[éèêȇȅệẹə]", "[ÍÌÎȊȈ]", "[íìîȋȉ]", "[ÓÒÔȎȌỘỌ]", "[óòôȏȍộọ]", "[ŔȒȐ]", "[ŕȓȑ]", "[ÚÙÛȖȔ]", "[úùûȗȕ]", "ł", GRAVE, ACUTE, DGRAVE, INVBREVE, CIRC, DOTBELOW},
to  = {"A"   , "a"   , "E" , "e" , "I"   , "i"   , "O" , "o" , "R" , "r" , "U"   , "u"   , "l"}} ,
}
 
m["sm"] = {
"Samoan",
"Q34011",
"poz-pnp",
scripts = Latn,
}
 
m["sn"] = {
"Shona",
"Q34004",
"bnt",
scripts = Latn,
entry_name = {
        from = {ACUTE},
        to = {}} ,
}
 
m["so"] = {
"Somali",
"Q13275",
"cus",
scripts = {"Latn", "Arab", "Osma"},
entry_name = {
from = {"[ÁÀÂ]", "[áàâ]", "[ÉÈÊ]", "[éèê]", "[ÍÌÎ]", "[íìî]", "[ÓÒÔ]", "[óòô]", "[ÚÙÛ]", "[úùû]", "[ÝỲ]", "[ýỳ]"},
to  = {"A"   , "a"   , "E" , "e" , "I"   , "i"   , "O" , "o" , "U"  , "u", "Y", "y"}} ,
}
 
m["sq"] = {
"Albanian",
"Q8748",
"sqj",
otherNames = {"Tosk", "Gheg", "Arvanitika", "Arbëreshë", "Arbëresh"},
scripts = {"Latn", "Grek", "Elba"},
sort_key = {
from = { '[âãä]', '[ÂÃÄ]', '[êẽë]', '[ÊẼË]', 'ĩ', 'Ĩ', 'õ', 'Õ', 'ũ', 'Ũ', 'ỹ', 'Ỹ', 'ç', 'Ç' },
to  = {    'a',    'A',    'e',    'E', 'i', 'I', 'o', 'O', 'u', 'U', 'y', 'Y', 'c', 'C' } } ,
}
 
m["ss"] = {
"Swazi",
"Q34014",
"bnt-ngu",
otherNames = {"Swati"},
scripts = Latn,
entry_name = {
from = {"[āàáâǎ]", "[ēèéêě]", "[īìíîǐ]", "[ōòóôǒ]", "[ūùúûǔ]", "ḿ", "[ǹńň]", MACRON, ACUTE, GRAVE, CIRC, CARON},
to  = {"a"      , "e"      , "i"      , "o"      , "u"      , "m", "n"    }},
}
 
m["st"] = {
"Sotho",
"Q34340",
"bnt-sts",
otherNames = {"Sesotho", "Southern Sesotho", "Southern Sotho"},
scripts = Latn,
}
 
m["su"] = {
"Sundanese",
"Q34002",
"poz-msa",
scripts = {"Latn", "Sund"},
translit_module = "su-translit",
}
 
m["sv"] = {
"Swedish",
"Q9027",
"gmq",
scripts = Latn,
ancestors = {"gmq-osw"},
}
 
m["sw"] = {
"Swahili",
"Q7838",
"bnt",
otherNames = {"Settler Swahili", "KiSetla", "KiSettla", "Setla", "Settla", "Kitchen Swahili", "Kihindi", "Indian Swahili", "KiShamba", "Kishamba", "Field Swahili", "Kibabu", "Asian Swahili", "Kimanga", "Arab Swahili", "Kitvita", "Army Swahili"},
scripts = LatnArab,
sort_key = {
from = {"ng'", "^-"},
to  = {"ngz"}} ,
}
 
m["ta"] = {
"Tamil",
"Q5885",
"dra",
scripts = {"Taml"},
ancestors = {"oty"},
translit_module = "ta-translit",
override_translit = true,
}
 
m["te"] = {
"Telugu",
"Q8097",
"dra",
scripts = {"Telu"},
translit_module = "te-translit",
override_translit = true,
}
 
m["tg"] = {
"Tajik",
"Q9260",
"ira-swi",
otherNames = {"Tadjik", "Tadzhik", "Tajiki", "Tajik Persian", "Tajiki Persian"},
scripts = {"Cyrl", "fa-Arab", "Latn"},
ancestors = {"pal"}, -- same as "fa", see WT:T:AFA
translit_module = "tg-translit",
override_translit = true,
sort_key = {
from = {"Ё", "ё"},
to  = {"Е" , "е"}} ,
entry_name = {
from = {ACUTE},
to  = {}} ,
}
 
m["th"] = {
"Thai",
"Q9217",
"tai-swe",
otherNames = {"Siamese", "Central Thai"},
scripts = {"Thai", "Brai"},
translit_module = "th-translit",
sort_key = {
from = {"%p", "[็-๎]", "([เแโใไ])([ก-ฮ])"},
to  = {"", "", "%2%1"}},
}
 
m["ti"] = {
"Tigrinya",
"Q34124",
"sem-eth",
otherNames = {"Tigrigna"},
scripts = {"Ethi"},
translit_module = "Ethi-translit",
}
 
m["tk"] = {
"Turkmen",
"Q9267",
"trk-ogz",
scripts = {"Latn", "Cyrl"},
entry_name = {
from = {"ā", "ē", "ī", "ō", "ū", "ȳ", "ȫ", "ǖ", MACRON},
to  = {"a", "e", "i", "o", "u", "y", "ö", "ü", ""}},
ancestors = {"trk-ogz-pro"},
}
 
m["tl"] = {
"Tagalog",
"Q34057",
"phi",
scripts = {"Latn", "Tglg"},
entry_name = {
from = {"[áàâ]", "[éèê]", "[íìî]", "[óòô]", "[úùû]", ACUTE, GRAVE, CIRC},
to  = {"a"    , "e"    , "i"    , "o"    , "u"    }},
}
 
m["tn"] = {
"Tswana",
"Q34137",
"bnt-sts",
otherNames = {"Setswana"},
scripts = Latn,
}
 
m["to"] = {
"Tongan",
"Q34094",
"poz-pol",
scripts = Latn,
}
 
m["tr"] = {
"Turkish",
"Q256",
"trk-ogz",
scripts = Latn,
ancestors = {"ota"},
}
 
m["ts"] = {
"Tsonga",
"Q34327",
"bnt",
scripts = Latn,
}
 
m["tt"] = {
"Tatar",
"Q25285",
"trk-kip",
scripts = {"Cyrl", "Latn", "tt-Arab"},
translit_module = "tt-translit",
override_translit = true,
}
 
-- "tw" IS TREATED AS "ak", SEE WT:LT
 
m["ty"] = {
"Tahitian",
"Q34128",
"poz-pep",
scripts = Latn,
}
 
m["ug"] = {
"Uyghur",
"Q13263",
"trk",
otherNames = {"Uigur", "Uighur", "Uygur"},
scripts = {"ug-Arab", "Latn", "Cyrl"},
ancestors = {"chg"},
translit_module = "ug-translit",
override_translit = true,
}
 
m["uk"] = {
"Ukrainian",
"Q8798",
"zle",
scripts = Cyrl,
ancestors = {"orv"},
translit_module = "uk-translit",
entry_name = {
from = {"Ѐ", "ѐ", "Ѝ", "ѝ", GRAVE, ACUTE},
to  = {"Е", "е", "И", "и"}},
standardChars = "ЄІЇА-ЩЫЬЮ-щыьюяєії" .. PUNCTUATION,
}
m["ur"] = {
"Urdu",
"Q1617",
"inc",
scripts = {"ur-Arab"},
ancestors = {"inc-sap"},
entry_name = {
from = {u(0x064B), u(0x064C), u(0x064D), u(0x064E), u(0x064F), u(0x0650), u(0x0651), u(0x0652)},
to  = {}} ,
}
 
m["uz"] = {
"Uzbek",
"Q9264",
"trk",
otherNames = {"Northern Uzbek", "Southern Uzbek"},
scripts = {"Latn", "Cyrl", "fa-Arab"},
ancestors = {"chg"},
}
 
m["ve"] = {
"Venda",
"Q32704",
"bnt",
scripts = Latn,
}
 
m["vi"] = {
"Vietnamese",
"Q9199",
"mkh-vie",
otherNames = {"Annamese", "Annamite"},
scripts = {"Latn", "Hani"},
ancestors = {"mkh-mvi"},
sort_key = "vi-sortkey",
}
 
m["vo"] = {
"Volapük",
"Q36986",
"art",
scripts = Latn,
}
 
m["wa"] = {
"Walloon",
"Q34219",
"roa-oil",
otherNames = {"Liégeois", "Namurois", "Wallo-Picard", "Wallo-Lorrain"},
scripts = Latn,
ancestors = {"fro"},
sort_key = {
from = {"[áàâäå]", "[éèêë]", "[íìîï]", "[óòôö]", "[úùûü]", "[ýỳŷÿ]", "ç", "'"},
to  = {"a"   , "e" , "i" , "o" , "u" , "y" , "c"}} ,
}
 
m["wo"] = {
"Wolof",
"Q34257",
"alv-sng",
otherNames = {"Gambian Wolof"}, -- the subsumed dialect 'wof'
scripts = LatnArab,
}
 
m["xh"] = {
"Xhosa",
"Q13218",
"bnt-ngu",
scripts = Latn,
entry_name = {
from = {"[āàáâǎ]", "[ēèéêě]", "[īìíîǐ]", "[ōòóôǒ]", "[ūùúûǔ]", "ḿ", "[ǹńň]", MACRON, ACUTE, GRAVE, CIRC, CARON},
to  = {"a"      , "e"      , "i"      , "o"      , "u"      , "m", "n"    }},
}
 
m["yi"] = {
"Yiddish",
"Q8641",
"gmw",
scripts = {"Hebr"},
ancestors = {"gmh"},
sort_key = {
from = {"[אַאָ]", "בּ", "[וֹוּ]", "יִ", "ײַ", "פֿ"},
to = {"א", "ב", "ו", "י", "יי", "פ"}} ,
translit_module = "yi-translit",
}
 
m["yo"] = {
"Yoruba",
"Q34311",
"alv-von",
scripts = Latn,
}
 
m["za"] = {
"Zhuang",
"Q13216",
"tai",
otherNames = {"Standard Zhuang", "Dai Zhuang", "Wenma Zhuang", "Wenma Thu", "Wenma", "Nong Zhuang", "Youjiang Zhuang", "Yongbei Zhuang", "Yang Zhuang", "Yongnan Zhuang", "Zuojiang Zhuang", "Central Hongshuihe Zhuang", "Eastern Hongshuihe Zhuang", "Guibei Zhuang", "Minz Zhuang", "Guibian Zhuang", "Liujiang Zhuang", "Lianshan Zhuang", "Liuqian Zhuang", "Qiubei Zhuang", "Chongzuo Zhuang", "Shangsi Zhuang"},
scripts = {"Latn", "Hani"},
}
 
m["zh"] = {
"Chinese",
"Q7850",
"zhx",
scripts = {"Hani", "Brai", "Nshu"},
ancestors = {"ltc"},
sort_key = "zh-sortkey",
}
 
m["zu"] = {
"Zulu",
"Q10179",
"bnt-ngu",
otherNames = {"isiZulu"},
scripts = Latn,
entry_name = {
                from = {"[āàáâǎ]", "[ēèéêě]", "[īìíîǐ]", "[ōòóôǒ]", "[ūùúûǔ]", "ḿ", "[ǹńň]", MACRON, ACUTE, GRAVE, CIRC, CARON},
                to  = {"a"      , "e"      , "i"      , "o"      , "u"      , "m", "n"    }},
}
 
m["und"] = {
"Undetermined",
nil,
"qfa-not",
scripts = {"Zyyy"},
}
return m

Latest revision as of 19:11, 6 September 2023

Documentation for this module may be created at Module:Languages/data/documentation

local table = table
local insert = table.insert
local u = mw.ustring.char

local export = {}

-- UTF-8 encoded strings for some commonly-used diacritics.
local c = {
	grave			= u(0x0300),
	acute			= u(0x0301),
	circ			= u(0x0302),
	tilde			= u(0x0303),
	macron			= u(0x0304),
	overline		= u(0x0305),
	breve			= u(0x0306),
	dotabove		= u(0x0307),
	diaer			= u(0x0308),
	ringabove		= u(0x030A),
	dacute			= u(0x030B),
	caron			= u(0x030C),
	lineabove		= u(0x030D),
	dgrave			= u(0x030F),
	invbreve		= u(0x0311),
	commaabove		= u(0x0313),
	revcommaabove	= u(0x0314),
	dotbelow		= u(0x0323),
	diaerbelow		= u(0x0324),
	ringbelow		= u(0x0325),
	cedilla			= u(0x0327),
	ogonek			= u(0x0328),
	brevebelow		= u(0x032E),
	macronbelow		= u(0x0331),
	perispomeni		= u(0x0342),
	ypogegrammeni	= u(0x0345),
	CGJ				= u(0x034F), -- combining grapheme joiner
	dbrevebelow		= u(0x035C),
	dinvbreve		= u(0x0361),
	kamora          = u(0x0484),
	dasiapneumata   = u(0x0485),
	psilipneumata   = u(0x0486),
	kashida			= u(0x0640),
	fathatan		= u(0x064B),
	dammatan		= u(0x064C),
	kasratan		= u(0x064D),
	fatha			= u(0x064E),
	damma			= u(0x064F),
	kasra			= u(0x0650),
	shadda			= u(0x0651),
	sukun			= u(0x0652),
	hamzaabove		= u(0x0654),
	nunghunna		= u(0x0658),
	smallv			= u(0x065A),
	superalef		= u(0x0670),
	psili			= u(0x1FBD),
	coronis			= u(0x1FBF),
	ZWNJ			= u(0x200C), -- zero width non-joiner
	ZWJ				= u(0x200D), -- zero width joiner
	RSQuo			= u(0x2019), -- right single quote
	VS01			= u(0xFE00), -- variation selector 1
	-- Punctuation for the standardChars field.
	punc			= " ',%-–…∅"
}
-- Braille characters for the standardChars field.
local braille = {}
for i = 0x2800, 0x28FF do
	insert(braille, u(i))
end
c.braille = table.concat(braille)
export.chars = c

-- PUA characters, generally used in sortkeys.
-- Note: if the limit needs to be increased, do so in powers of 2 (due to the way memory is allocated for tables).
local p = {}
for i = 1, 32 do
	p[i] = u(0xF000+i-1)
end
export.puaChars = p

local s = {}
-- These values are placed here to make it possible to synchronise a group of languages without the need for a dedicated function module.

s["cau-Cyrl-displaytext"] = {
	from = {"[IlІӀ]", "ᴴ"},
	to = {"ӏ", "ᵸ"}
}

s["cau-Cyrl-entryname"] = {
	remove_diacritics = c.grave .. c.acute .. c.macron,
	from = s["cau-Cyrl-displaytext"].from,
	to = s["cau-Cyrl-displaytext"].to
}

s["cau-Latn-entryname"] = {remove_diacritics = c.grave .. c.acute .. c.macron}

s["Cyrs-entryname"] = {remove_diacritics = c.grave .. c.acute ..  c.diaer .. c.kamora .. c.dasiapneumata .. c.psilipneumata}

s["Cyrs-sortkey"] = {
	from = {
		"ї", "оу", -- 2 chars
		"ґ", "ꙣ", "є", "[ѕꙃꙅ]", "ꙁ", "[іꙇ]", "[ђꙉ]", "[ѻꙩꙫꙭꙮꚙꚛ]", "ꙋ", "[ѡѿꙍѽ]", "ꙑ", "ѣ", "ꙗ", "ѥ", "ꙕ", "[ѧꙙ]", "[ѩꙝ]", "ꙛ", "ѫ", "ѭ", "ѯ", "ѱ", "ѳ", "ѵ", "ҁ" -- 1 char
	},
	to = {
		"и" .. p[1], "у",
		"г" .. p[1], "д" .. p[1], "е", "ж" .. p[1], "з", "и" .. p[1], "и" .. p[2], "о", "у", "х" .. p[1], "ы", "ь" .. p[1], "ь" .. p[2], "ь" .. p[3], "ю", "я", "я" .. p[1], "я" .. p[2], "я" .. p[3], "я" .. p[4], "я" .. p[5], "я" .. p[6], "я" .. p[7], "я" .. p[8], "я" .. p[9]
	},
}

s["Grek-sortkey"] = {
	remove_diacritics = c.grave .. c.acute .. c.diaer .. c.caron .. c.commaabove .. c.revcommaabove .. c.diaerbelow .. c.brevebelow .. c.perispomeni .. c.ypogegrammeni,
	from = {"ς"},
	to = {"σ"}
}

s["Jpan-sortkey"] = {
	Jpan = "Jpan-sortkey",
	Hani = "Hani-sortkey",
	Hrkt = "Hira-sortkey", -- sort general kana by normalizing to Hira
	Hira = "Hira-sortkey",
	Kana = "Kana-sortkey"
}

s["Jpan-translit"] = {
	Hrkt = "Hrkt-translit",
	Hira = "Hrkt-translit",
	Kana = "Hrkt-translit"
}

local HaniChars = require("Module:scripts").getByCode("Hani"):getCharacters()
s["Kore-entryname"] = {
	remove_diacritics = u(0x302E) .. u(0x302F),
	from = {"([" .. HaniChars .. "])%(.-%)", "(.)%-(.)", "%([" .. HaniChars .. "]+%)"},
	to = {"%1", "%1%2"}
}

s["Mong-displaytext"] = {
	from = {"([ᠨ-ᡂᡸ])ᠶ([ᠨ-ᡂᡸ])", "([ᠠ-ᡂᡸ])ᠸ([^᠋ᠠ-ᠧ])", "([ᠠ-ᡂᡸ])ᠸ$"},
	to = {"%1ᠢ%2", "%1ᠧ%2", "%1ᠧ"}
}

s["Mong-entryname"] = s["Mong-displaytext"]

s["roa-oil-sortkey"] = {
	remove_diacritics = c.grave .. c.acute .. c.circ .. c.diaer .. c.ringabove .. c.cedilla .. "'",
	from = {"æ", "œ"},
	to = {"ae", "oe"}
}

s["Tibt-displaytext"] = {
	from = {"ༀ", "༌", "།།", "༚༚", "༚༝", "༝༚", "༝༝", "ཷ", "ཹ", "ེེ", "ོོ"},
	to = {"ཨོཾ", "་", "༎", "༛", "༟", "࿎", "༞", "ྲཱྀ", "ླཱྀ", "ཻ", "ཽ"}
}

s["Tibt-entryname"] = s["Tibt-displaytext"]

s["wen-sortkey"] = {
	from = {
		"l", -- Ensure "l" comes after "ł".
		"b́", "č", "ć", "dź", "ě", "f́", "ch", "ł", "ḿ", "ń", "ó", "ṕ", "ř", "ŕ", "š", "ś", "ẃ", "ž", "ż", "ź"
	},
	to = {
		"l" .. p[1],
		"b" .. p[1], "c" .. p[1], "c" .. p[2], "d" .. p[1], "e" .. p[1], "f" .. p[1], "h" .. p[1], "l", "m" .. p[1], "n" .. p[1], "o" .. p[1], "p" .. p[1], "r" .. p[1], "r" .. p[2], "s" .. p[1], "s" .. p[2], "w" .. p[1], "z" .. p[1], "z" .. p[2], "z" .. p[3]
	}
}

export.shared = s

-- Short-term solution to override the standard substitution process, by forcing the module to substitute the entire text in one pass. This results in any PUA characters that are used as stand-ins for formatting being handled by the language-specific substitution process, which is usually undesirable.
-- This override is provided for languages which use formatting between strings of text which might need to interact with each other (e.g. Korean 값이 transliterates as "gaps-i", but [[값]] has the formatting '''값'''[[-이]]. The normal process would split the text at the second '''.)
export.contiguous_substitution = {
	["ja"] = "tr",
	["jje"] = "tr",
	["ko"] = "tr",
	["ru"] = "tr",
}

return export