This module contains definitions and metadata for three-letter language codes starting with "h
". See Wiktionary:Languages for more information.
This module must not be used directly in other modules or templates. The data should be accessed through Module:languages. For the corresponding extra data, see Module:languages/data/3/h/extra.
The following errors were detected by Module:data consistency check:
nb
) has Middle Norwegian language (gmq-mno
) set as an ancestor, but is not in the West Scandinavian family (gmq-wes
).nb
) has Danish language (da
) set as an ancestor, but is not in the East Scandinavian family (gmq-eas
).hns
) has Bhojpuri language (bho
) set as an ancestor, but is not in the Bihari family (inc-bih
).hns
) has Awadhi language (awa
) set as an ancestor, but is not in the Eastern Hindi family (inc-hie
).alv-gtm-pro
) does not have the expected name "Proto-Ghana-Togo Mountain", even though it is the proto-language of the Ghana-Togo Mountain languages (alv-gtm
).auf-pro
) does not have the expected name "Proto-Arauan", even though it is the proto-language of the Arauan languages (auf
).awd-amc-pro
) has a proto-language code associated with the invalid code awd-amc
.awd-kmp-pro
) has a proto-language code associated with the invalid code awd-kmp
.awd-pro
) does not have the expected name "Proto-Arawakan", even though it is the proto-language of the Arawakan languages (awd
).awd-prw-pro
) has a proto-language code associated with the invalid code awd-prw
.awd-taa-pro
) does not have the expected name "Proto-Ta-Arawakan", even though it is the proto-language of the Ta-Arawakan languages (awd-taa
).dru-pro
) has a proto-language code associated with Rukai (dru
), which is not a family.euq-pro
) does not have the expected name "Proto-Vasconic", even though it is the proto-language of the Vasconic languages (euq
).gmq-pro
) does not have the expected name "Proto-North Germanic", even though it is the proto-language of the North Germanic languages (gmq
).inc-krn-pro
) does not have the expected name "Proto-KRNB lects", even though it is the proto-language of the KRNB lects (inc-krn
).mis-hkl
, is repeated in the table of aliases
.nai-chu-pro
) does not have the expected name "Proto-Chumashan", even though it is the proto-language of the Chumashan languages (nai-chu
).nai-mdu-pro
) does not have the expected name "Proto-Maiduan", even though it is the proto-language of the Maiduan languages (nai-mdu
).nai-miz-pro
) does not have the expected name "Proto-Mixe-Zoquean", even though it is the proto-language of the Mixe-Zoquean languages (nai-miz
).nai-pom-pro
) does not have the expected name "Proto-Pomoan", even though it is the proto-language of the Pomoan languages (nai-pom
).omq-maz-pro
) does not have the expected name "Proto-Mazatecan", even though it is the proto-language of the Mazatecan languages (omq-maz
).os-pro
) has a proto-language code associated with Ossetian (os
), which is not a family.poz-swa-pro
) does not have the expected name "Proto-North Sarawakan", even though it is the proto-language of the North Sarawakan languages (poz-swa
).sal-pro
) does not have the expected name "Proto-Salishan", even though it is the proto-language of the Salishan languages (sal
).smi-pro
) does not have the expected name "Proto-Sami", even though it is the proto-language of the Sami languages (smi
).tbq-kuk-pro
) does not have the expected name "Proto-Kukish", even though it is the proto-language of the Kukish languages (tbq-kuk
).xsc-sak-pro
) does not have the expected name "Proto-Sakan", even though it is the proto-language of the Sakan languages (xsc-sak
).xsc-sar-pro
) has a proto-language code associated with the invalid code xsc-sar
.lzh-lit
) has a canonical name that is not unique; it is also used by the code lzh
.preprocess_links
for ??? (th-new
) is invalid.inc-old
) has no child families or languages.lzh-lit
, is wrong; it should be Literary Chinese.lzh-lit
, is wrong; it should be Literary Chinese.ira-mid
and the canonical name Middle Iranian should be removed; they are not found in Module:families/data.ira-old
and the canonical name Old Iranian should be removed; they are not found in Module:families/data.ira-mid
and the canonical name Middle Iranian should be removed; they are not found in Module:families/data.ira-old
and the canonical name Old Iranian should be removed; they are not found in Module:families/data.Every entry in the table must contain the following indexed fields:
1
2
Q
and ends with decimal digits. Set to nil
if not known/present. This replaces the older wikipedia_article
property, which can still be used to link to specific sections or language editions.3
4
Language:findBestScript
method in Module:languages. This function goes down the list of scripts and counts how many characters in the text belong to each script. If all the characters belong to one script, that script will be returned; otherwise, the script with the most characters will be returned. Thus, script detection will be faster if the most frequently used scripts are first in the list. If none of the characters match any of the listed scripts, then the None
script is returned (even if the characters would match a script not listed). Translingual (mul
) and Undetermined (und
) have the special value "All"
, which means they are treated as having every script. This value should not be set for any other language codes."Latn, Brai, Shaw, Dsrt"
.type
regular
- This value is the default, so it doesn't need to be specified. It indicates that the is attested according to WT:CFI and therefore permitted in the main namespace. There may also be reconstructed terms for the language, which are placed in the Reconstruction namespace and must be prefixed with * to indicate a reconstruction.reconstructed
- This language is not attested according to CFI, and therefore is allowed only in the Reconstruction namespace. All terms in this language are reconstructed, and must be prefixed with *.appendix-constructed
- This language is attested but does not meet the additional requirements set out for constructed languages (WT:CFI#Constructed languages). Its entries must therefore be in the Appendix namespace, but they are not reconstructed and therefore should not have * prefixed in links.ancestors
enm
(Middle English); ang
(Old English, the ancestor of Middle English), gem-pro
(Proto-Germanic, the ancestor of Old English), and ine-pro
(Proto-Indo-European, the ancestor of Proto-Germanic) are not listed.gem-pro
) belongs to the Indo-European (ine
) family, and its direct ancestor is Proto-Indo-European (ine-pro
). Because Proto-Indo-European is the proto-language of the Indo-European languages, Proto-Germanic does not need an ancestors
table; Proto-Indo-European will be automatically returned as its ancestor by the getAncestors
function."cr, fr"
.wikimedia_codes
"en, simple"
.interwiki_langs
in Module:translations/data; and the wiktprefix
field of the `metadata` variable in MediaWiki:Gadget-TranslationAdder-Data.js. FIXME: Unify this data.wikipedia_article
translit
isTransliterated
value set to false
in Module:scripts/data. This is used by transliterate
in Module:languages.link_tr
true
to link the language's transliteration. For instance, Gothic has entries in Gothic script and entries for transliterations: 𐌷𐌻𐌰𐌹𐌱𐍃 (hlaibs). Otherwise, this can be a comma-separated list of script codes, which means that links are only applied to terms using those scripts.override_translit
true
to make the automatic transliteration override an any given manual transliteration. Otherwise, this can be a comma-separated list of script codes, which means that the override is only applied to terms using those scripts.display_text
ӏ
, used in Cyrillic in many Caucasian languages, is frequently entered as I
, or even Latin l
or I
. As this is an ongoing issue (even among native speakers), the easiest way to solve the problem is to automatically correct the display form for those languages. This is used by makeDisplayText
in Module:languages.entry_name
ру́сский
→ русский
), or macrons from Latin or Old English words (ōs
→ os
), as these are not used in the normal written form of these languages. This is used by makeEntryName
in Module:languages.sort_key
"у" .. p
. Another character could be inserted straight after by using "у" .. p
(and so on).makeSortKey
in Module:languages.dotted_dotless_i
true
for languages that distinguish between the dotted and dotless I (such as some Turkic languages).translit
, display_text
, entry_name
and sort_key
all use the same syntax, which is designed to be as flexible as possible:
"sa-translit"
refers to Module:sa-translit.from
, to
, remove_diacritics
and remove_exceptions
relate to text substitution (see below).1
can be used as a fallback, which will be used if no specific behaviour is defined for that script.1
if you want to avoid this. It is not possible to process the output of a script-specific module with another module, however: this should be done (for example) with a tail call in the first module.text, lang, sc
, where text
is the input text (usually the page name or input by the user), lang
is the language code (not the language object), and sc
is the script code (not the script object). For performance reasons, they should only be used when it is not possible to achieve the desired result via text substitution.from
and to
keys.remove_diacritics
(and optionally remove_exceptions
).from
is paired with to
, and both of them must be tables that are organised pairwise: each element in from
is a pattern to identify which characters in the term to replace, while the corresponding element in to
defines what to replace them with (as arguments to mw.ustring.gsub
).false
or nil
), then any matching characters are removed altogether. This means that the from
list can be longer than the to
list, and an empty replacement will be assumed for any elements in from
that have no counterpart in to
.mw.ustring.gsub
function. See the Scribunto reference manual for more information. Note that patterns make double substitutions a viable way to achieve more complex results. See the Latin sortkey for Mandarin (cmn
) as an example of this.remove_diacritics
is a string which contains characters that will be removed after the text is decomposed. For instance, if remove_diacritics
is a combining acute accent, all acute accents will be stripped, even if they are part of precomposed characters (such as á or ά). Despite the name, the characters to be stripped need not be diacritics: for instance, including an apostrophe would remove all apostrophes (though be careful with hyphens, which must be be escaped as %-
).remove_diacritics
is given, then it is possible to specify a remove_exceptions
table, which prevents specific characters from having their diacritics stripped. For instance, if remove_diacritics
is a combining diaeresis, but remove_exceptions
contains "ё"
, then any instances of ё
will remain unchanged. On the other hand, an instance of ӱ
would still become у
(unless "ӱ"
is also added to remove_exceptions
).aliases
, varieties
, otherNames
family
3
.scripts
4
.local m_lang = require("Module:languages")
local m_langdata = require("Module:languages/data")
local u = require("Module:string utilities").char
local c = m_langdata.chars
local p = m_langdata.puaChars
local s = m_langdata.shared
local m = {}
m = {
"Hän",
28272,
"ath-nor",
"Latn",
}
m = {
"Hanoi Sign Language",
12632107,
"sgn",
"Latn", -- when documented
}
m = {
"Gurani",
33733,
"ira-zgr",
"ku-Arab",
translit = "ckb-translit",
}
m = {
"Hatam",
56825,
"paa-wpa",
}
m = {
"Haiphong Sign Language",
39868240,
"sgn",
}
m = {
"Hanga",
35426,
"nic-dag",
"Latn",
}
m = {
"Hahon",
3125730,
"poz-ocw",
"Latn",
}
m = {
"Haida",
33303,
"qfa-iso",
"Latn",
}
m = {
"Hajong",
3350576,
"qfa-mix",
"as-Beng, Latn",
ancestors = "tbq-pro, inc-oas, inc-obn",
}
m = {
"Hakka",
33375,
"zhx",
"Hants",
ancestors = "ltc",
generate_forms = "zh-generateforms",
sort_key = "Hani-sortkey",
}
m = {
"Halang",
56307,
"mkh",
"Latn",
}
m = {
"Hewa",
5748345,
"paa-spk",
}
m = {
"Hakö",
3125871,
"poz-ocw",
"Latn",
}
m = {
"Hupla",
5946223,
"ngf",
}
m = {
"Harari",
33626,
"sem-eth",
"Ethi",
translit = "Ethi-translit",
}
m = {
"Haisla",
3107399,
"wak",
}
m = {
"Havu",
5684097,
"bnt-shh",
"Latn",
}
m = {
"Hawaiian",
33569,
"poz-pep",
"Latn",
display_text = {
from = {"‘"},
to = {"ʻ"}
},
sort_key = {remove_diacritics = c.macron},
standardChars = "AaĀāEeĒēIiĪīOoŌōUuŪūHhKkLlMmNnPpWwʻ" .. c.punc,
}
m = {
"Southern Haida",
12953543,
"qfa-iso",
ancestors = "hai",
}
m = {
"Haya",
35756,
"bnt-haj",
}
m = {
"Hamba",
11028905,
"bnt-tet",
}
m = {
"Huba",
56290,
"cdc-cbm",
}
m = {
"Heiban",
35523,
"alv-hei",
}
m = {
"Habu",
1567033,
"poz-cet",
"Latn",
}
m = {
"Andaman Creole Hindi",
7599417,
"crp",
ancestors = "hi, bn, ta",
}
m = {
"Huichol",
35575,
"azc",
"Latn",
}
m = {
"Northern Haida",
20054484,
"qfa-iso",
ancestors = "hai",
}
m = {
"Honduras Sign Language",
3915496,
"sgn",
"Latn", -- when documented
}
m = {
"Hadiyya",
56613,
"cus-hec",
}
m = {
"Northern Qiandong Miao",
3138832,
"hmn",
}
m = {
"Herdé",
56253,
"cdc-mas",
}
m = {
"Helong",
35432,
"poz-tim",
"Latn",
}
m = {
"Hehe",
3129390,
"bnt-bki",
"Latn",
}
m = {
"Heiltsuk",
5699507,
"wak",
"Latn",
}
m = {
"Hemba",
5711209,
"bnt-lbn",
}
m = {
"Haiǁom",
4494781,
"khi-khk",
"Latn",
}
m = {
"Haigwai",
5639108,
"poz-ocw",
"Latn",
}
m = {
"Hoia Hoia",
5877767,
"ngf",
}
m = {
"Kerak",
11010783,
"alv-jfe",
}
m = {
"Hoyahoya",
15633149,
"ngf",
}
m = {
"Lamang",
35700,
"cdc-cbm",
"Latn",
}
m = {
"Hibito",
3135164,
}
m = {
"Hidatsa",
3135234,
"sio-mor",
"Latn",
}
m = {
"Fiji Hindi",
46728,
"inc-hie",
"Latn",
ancestors = "awa",
}
m = {
"Kamwe",
56271,
"cdc-cbm",
}
m = {
"Pamosu",
12953011,
"ngf-mad",
}
m = {
"Hinduri",
5766763,
"him",
}
m = {
"Hijuk",
35274,
"bnt-bsa",
}
m = {
"Seit-Kaitetu",
7446989,
"poz-cma",
}
m = {
"Hiligaynon",
35978,
"phi",
"Latn",
entry_name = {Latn = {remove_diacritics = c.grave .. c.acute .. c.circ}},
standardChars = {
Latn = "AaBbKkDdEeGgHhIiLlMmNnOoPpRrSsTtUuWwYy",
c.punc
},
sort_key = {
Latn = "tl-sortkey"
},
}
m = {
"Tshwa",
963636,
"khi-kal",
}
m = {
"Himarimã",
5765127,
}
m = {
"Hittite",
35668,
"ine-ana",
"Xsux",
}
m = {
"Hiw",
3138713,
"poz-vnn",
"Latn",
}
m = {
"Hixkaryana",
56522,
"sai-prk",
"Latn",
}
m = {
"Haji",
5639933,
"poz-mly",
}
m = {
"Kahe",
3892562,
"bnt-chg",
"Latn",
}
m = {
"Hunde",
3065432,
"bnt-shh",
"Latn",
}
m = {
"Pogali",
105198619,
"inc-kas",
}
m = {
"Hunjara-Kaina Ke",
63213931,
"ngf",
}
m = {
"Mel-Khaonh",
19059577,
"mkh-ban",
}
m = {
"Hong Kong Sign Language",
17038844,
"sgn",
}
m = {
"Halia",
3125959,
"poz-ocw",
"Latn",
}
m = {
"Halbi",
3695692,
"inc-hal",
"Deva, Orya",
}
m = {
"Halang Doan",
3914632,
"mkh-ban",
}
m = {
"Hlersu",
5873537,
"tbq-llo",
}
m = {
"Nga La",
12952942,
"tbq-kuk",
}
m = {
"Southern Mashan Hmong",
12953560,
"hmn",
"Latn",
}
m = {
"Humburi Senni",
35486,
"son",
}
m = {
"Central Huishui Hmong",
12953558,
"hmn",
}
m = {
"A-Hmao",
1108934,
"hmn",
"Latn, Plrd",
}
m = {
"Eastern Huishui Hmong",
12953559,
"hmn",
}
m = {
"Hmong Don",
22911602,
"hmn",
}
m = {
"Southwestern Guiyang Hmong",
27478542,
"hmn",
}
m = {
"Southwestern Huishui Hmong",
12953565,
"hmn",
}
m = {
"Northern Huishui Hmong",
27434946,
"hmn",
}
m = {
"Ge",
11251864,
"hmn",
}
m = {
"Yemaek",
8050724,
"qfa-kor",
"Hani",
sort_key = "Hani-sortkey",
}
m = {
"Luopohe Hmong",
14468943,
"hmn",
}
m = {
"Central Mashan Hmong",
12953561,
"hmn",
}
m = {
"Northern Mashan Hmong",
12953564,
"hmn",
}
m = {
"Eastern Qiandong Miao",
27431369,
"hmn",
}
m = {
"Hmar",
2992841,
"tbq-kuk",
ancestors = "lus",
}
m = {
"Southern Qiandong Miao",
12953562,
"hmn",
}
m = {
"Hamtai",
5646436,
"ngf",
}
m = {
"Hamap",
12952484,
"qfa-tap",
}
m = {
"Hmong Dô",
22911598,
"hmn",
}
m = {
"Western Mashan Hmong",
12953563,
"hmn",
}
m = {
"Southern Guiyang Hmong",
12953553,
"hmn",
}
m = {
"Hmong Shua",
25559603,
"hmn",
}
m = {
"Mina",
56532,
"cdc-cbm",
}
m = {
"Southern Hindko",
382273,
"inc-pan",
ancestors = "lah",
}
m = {
"Chhattisgarhi",
33158,
"inc-hie",
"Deva",
ancestors = "inc-oaw",
translit = "hi-translit"
}
m = {
"ǁAni",
3832982,
"khi-kal",
"Latn",
}
m = {
"Hani",
56516,
"tbq-han",
}
m = {
"Green Hmong",
3138831,
"hmn",
"Latn, Hmng, Hmnp",
}
m = {
"Hainanese",
934541,
"zhx-nan",
"Hants",
generate_forms = "zh-generateforms",
sort_key = "Hani-sortkey",
}
m = {
"Hanunoo",
35435,
"phi",
"Hano, Latn",
translit = {Hano = "hnn-translit"},
override_translit = true,
entry_name = {Latn = {remove_diacritics = c.grave .. c.acute .. c.circ}},
standardChars = {
Latn = "AaBbKkDdEeGgHhIiLlMmNnOoPpRrSsTtUuWwYy",
c.punc
},
sort_key = {
Latn = "tl-sortkey",
},
}
m = {
"Northern Hindko",
6346358,
"inc-pan",
"Arab",
ancestors = "lah",
}
m = {
"Caribbean Hindustani",
1843468,
"inc", -- "crp"?
ancestors = "bho, awa",
}
m = {
"Hung",
12632753,
"mkh-vie",
}
m = {
"Hoava",
3138887,
"poz-ocw",
"Latn",
}
m = {
"Austronesian Mari",
6760941,
"poz-ocw",
"Latn",
}
m = {
"Ho",
33270,
"mun",
"Wara, Orya, Deva, Latn",
}
m = {
"Holma",
56331,
"cdc-cbm",
"Latn",
}
m = {
"Horom",
3914008,
"nic-ple",
"Latn",
}
m = {
"Hobyót",
33299,
"sem-sar",
"Arab, Latn",
}
m = {
"Holikachuk",
28508,
"ath-nor",
"Latn",
}
m = {
"Hadothi",
33227,
"raj",
"Deva",
translit = "hi-translit",
}
m = {
"Holu",
4121133,
"bnt-pen",
"Latn",
}
m = {
"Homa",
3449953,
"bnt-boa",
"Latn",
}
m = {
"Holoholo",
3139484,
"bnt-tkm",
"Latn",
}
m = {
"Hopi",
56421,
"azc",
"Latn",
}
m = {
"Horo",
641748,
"csu-sar",
}
m = {
"Ho Chi Minh City Sign Language",
16111971,
"sgn",
"Latn", -- when documented
}
m = {
"Hote",
12632404,
"poz-ocw",
"Latn",
}
m = {
"Hovongan",
5917269,
"poz",
}
m = {
"Honi",
56842,
"tbq-han",
}
m = {
"Holiya",
5880707,
"dra-kan",
}
m = {
"Hozo",
5923010,
"omv-mao",
}
m = {
"Hpon",
5923277,
"tbq-brm",
}
m = {
"Hawai'i Pidgin Sign Language",
33358,
"sgn",
"Latn", -- when documented
}
m = {
"Hrangkhol",
5923435,
"tbq-kuk",
}
m = {
"Niwer Mil",
30323994,
"poz-oce",
"Latn",
}
m = {
"Hrê",
3915794,
"mkh-nbn",
}
m = {
"Haruku",
5675762,
"poz-cma",
}
m = {
"Horned Miao",
63213949,
"hmn",
}
m = {
"Haroi",
3127568,
"cmc",
"Latn",
}
m = {
"Nhirrpi",
32571318,
"aus-kar",
}
m = {
"Hértevin",
33290,
"sem-nna",
"Latn",
}
m = {
"Hruso",
5923933,
"sit-hrs",
}
m = {
"Warwar Feni",
56704265,
"poz-oce",
"Latn",
}
m = {
"Hunsrik",
304049,
"gmw-hgm",
"Latn",
ancestors = "gmw-cfr",
}
m = {
"Harzani",
56464,
"xme-ttc",
ancestors = "xme-ttc-nor",
}
m = {
"Upper Sorbian",
13248,
"wen",
"Latn",
sort_key = s,
}
m = {
"Hungarian Sign Language",
13636869,
"sgn",
"Latn", -- when documented
}
m = {
"Hausa Sign Language",
3915462,
"sgn",
"Latn", -- when documented
}
m = {
"Xiang",
13220,
"zhx",
"Hants",
ancestors = "ltc",
generate_forms = "zh-generateforms",
translit = "zh-translit",
sort_key = "Hani-sortkey",
}
m = {
"Harsusi",
33423,
"sem-sar",
"Arab, Latn",
}
m = {
"Hoti",
5912372,
"poz-cma",
"Latn",
}
m = {
"Minica Huitoto",
948514,
"sai-wit",
"Latn",
}
m = {
"Hadza",
33411,
"qfa-iso",
"Latn",
}
m = {
"Hitu",
5872700,
"poz-cma",
"Latn",
}
m = {
"Huambisa",
1526037,
"sai-jiv",
"Latn",
}
m = {
"ǂHoan",
2053913,
"khi-kxa",
"Latn",
}
m = {
"Huaulu",
12952504,
"poz-cma",
"Latn",
}
m = {
"Humene",
11732231,
"ngf",
"Latn",
}
m = {
"Huachipaeri",
3446617,
"sai-har",
"Latn",
}
m = {
"Huilliche",
35531,
"sai-ara",
"Latn",
}
m = {
"Huli",
3125121,
"paa-eng",
"Latn",
}
m = {
"Northern Guiyang Hmong",
12953554,
"hmn",
}
m = {
"Hulung",
12952505,
"poz-cet",
}
m = {
"Hula",
6382179,
"poz-ocw",
"Latn",
}
m = {
"Hungana",
10975396,
"bnt-yak",
}
m = {
"Hu",
3141783,
"mkh-pal",
}
m = {
"Hupa",
28058,
"ath-pco",
"Latn",
}
m = {
"Tsat",
34133,
"cmc",
}
m = {
"Halkomelem",
35388,
"sal",
"Latn",
}
m = {
"Wastek",
35573,
"myn",
"Latn",
}
m = {
"Murui Huitoto",
2640935,
"sai-wit",
"Latn",
}
m = {
"Huave",
12954031,
"qfa-iso",
"Latn",
}
m = {
"Hukumina",
3142988,
"poz-cma",
"Latn",
}
m = {
"Nüpode Huitoto",
56333,
"sai-wit",
"Latn",
}
m = {
"Hulaulá",
33426,
"sem-nna",
}
m = {
"Hunzib",
56564,
"cau-ets",
"Cyrl",
translit = "huz-translit",
display_text = {Cyrl = s},
entry_name = {Cyrl = s},
}
m = {
"Haitian Vodoun Culture Language",
3504239,
"crp",
"Latn",
}
m = {
"Haveke",
5683513,
"poz-cln",
"Latn",
}
m = {
"Sabu",
3128792,
"poz-cet",
"Latn",
}
m = {
"Wané",
3914887,
"kro-ekr",
"Latn",
}
m = {
"Hawaiian Creole",
35602,
"crp",
"Latn",
}
m = {
"Hwana",
56498,
"cdc-cbm",
"Latn",
}
m = {
"Hya",
56798,
"cdc-cbm",
"Latn",
}
return m_lang.finalizeLanguageData(m_lang.addDefaultTypes(m, true))