Modul:Lang/data/ujian: Perbezaan antara semakan
Kandungan dihapus Kandungan ditambah
Mencipta laman baru dengan kandungan '--[[--------------------------< L A N G _ N A M E _ T A B L E >------------------------------------------------ primary table of tables that decode: lang...' |
Tiada ringkasan suntingan |
||
Baris 10:
all of these data come from separate modules that are derived from the IANA language-subtag-registry file
key_to_lower() avoids the metatable trap and sets all keys in the subtables to lowercase.
have multiple associated names; Module:lang is only concerned with the first name so key_to_lower() only fetches
the first name.
Baris 24:
local function key_to_lower (module, src_type)
local out = {};
local source = (('
if '
for k, v in pairs (source) do
out[k:lower()] = v; -- for variant, everything is needed
Baris 53:
script = key_to_lower ('Module:Language/data/iana scripts'), -- script keys are capitalized; set to lower
region = key_to_lower ('Module:Language/data/iana regions'), -- region keys are uppercase; set to lower
variant = key_to_lower ('Module:Language/data/iana variants', '
suppressed = key_to_lower ('Module:Language/data/iana suppressed scripts', 'var_sup'), -- script keys are capitalized; set to lower
}
Baris 67:
local override = {
------------------------------< I S O
["ca-valencia"] = {"Valencian"},
Baris 93:
["bo"] = {"Standard Tibetan"}, -- Tibetan
["el"] = {"Greek"}, -- Modern Greek
-- ["en-SA"] = {"South African English"}, -- English; no; SA is not South Africa it Saudi Arabia;
["ff"] = {"Fula"}, -- Fulah
["ht"] = {"Haitian Creole"}, -- Haitian
Baris 121:
------------------------------< I S O
["arc"] = {"Aramaic"}, -- Official Aramaic (700-300 BCE), Imperial Aramaic (700-300 BCE);
Baris 133:
["byr"] = {"Yipma"}, -- Baruya, Yipma
["egy"] = {"Ancient Egyptian"}, -- Egyptian (Ancient); distinguish from contemporary arz: Egyptian Arabic
["ems"] = {"Alutiiq"}, -- Pacific Gulf Yupik; to match en.wiki article title
["frr"] = {"North Frisian"}, -- Northern Frisian
["frs"] = {"East Frisian Low Saxon"}, -- Eastern Frisian
["ilo"] = {"Ilocano"}, -- Iloko; to match en.wiki article title
["jam"] = {"Jamaican Patois"}, -- Jamaican Creole English
["luo"] = {"Dholuo"}, -- IANA (primary) /ISO 639-3: Luo (Kenya and Tanzania); IANA (secondary): Dholuo
["mhr"] = {"Meadow Mari"}, -- Eastern Mari
["mid"] = {"Modern Mandaic"}, -- Mandaic
Baris 142 ⟶ 144:
['mte'] = {"Mono-Alu"}, -- Mono (Solomon Islands)
["nan-tw"] = {"Taiwanese Hokkien"}, -- make room for IANA / 639-3 nan Min Nan Chinese; match en.wiki article title
["new"] = {"Newar"}, -- Newari, Nepal Bhasa; to match en,wiki article title
["nrf"] = {"Norman"}, -- not quite a collective - IANA name: Jèrriais; categorizes to Norman-language text
["nzi"] = {"Nzema"}, -- Nzima; to match en.wiki article title
Baris 162 ⟶ 165:
["apm"] = {"Mescalero-Chiricahua"}, -- Mescalero-Chiricahua Apache
["bal"] = {"Balochi"}, -- Baluchi
-- ["bcl"] = {"Central Bicolano"}, -- Central Bikol
["bin"] = {"Edo"}, -- Bini
["bpy"] = {"Bishnupriya Manipuri"}, -- Bishnupriya
Baris 197 ⟶ 200:
["mww"] = {"White Hmong"}, -- Hmong Daw
["nds-nl"] = {"Dutch Low Saxon"}, -- Low German
-- ["new"] = {"Nepal Bhasa"}, -- Newari
["nso"] = {"Northern Sotho"}, -- Pedi
-- ["nwc"] = {"Classical Nepal Bhasa"}, -- Classical Newari, Classical Nepal Bhasa, Old Newari
["ood"] = {"O'odham"}, -- Tohono O'odham
["otk"] = {"Old Turkic"}, -- Old Turkish
Baris 230 ⟶ 233:
------------------------------< P R I V A T E
["cel-x-proto"] = {"Proto-Celtic"}, -- cel in IANA is Celtic languages
["gem-x-proto"] = {"Proto-Germanic"}, -- gem in IANA is Germanic languages
["gmw-x-ecg"] = {"East Central German"},
["grc-x-aeolic"] = {"Aeolic Greek"}, -- these grc-x-... codes are preferred alternates to the non-standard catchall code grc-gre
["grc-x-attic"] = {"Attic Greek"},
Baris 247 ⟶ 251:
["grk-x-proto"] = {"Proto-Greek"}, -- grk in IANA is Greek languages
["iir-x-proto"] = {"Proto-Indo-Iranian"}, -- iir in IANA is Indo-Iranian Languages
["ine-x-proto"] = {"Proto-Indo-European"},
["ira-x-proto"] = {"Proto-Iranian"}, -- ira in IANA is Iranian languages
["itc-x-proto"] = {"Proto-Italic"}, -- itc in IANA is Italic languages
["ksh-x-colog"] = {"Colognian"}, -- en.wiki article is Colognian; ksh (Kölsch) redirects there
["la-x-medieval"] = {"Medieval Latin"},
["mis-x-ripuar"] = {"Ripuarian"}, -- replaces improper use of ksh in wp_languages
["sem-x-proto"] = {"Proto-Semitic"},
["sla-x-proto"] = {"Proto-Slavic"}, -- sla in IANA is Slavic languages
["yuf-x-hav"] = {"Havasupai"}, -- IANA name for these three is Havasupai-Walapai-Yavapai
Baris 261 ⟶ 268:
for those rare occasions when article titles don't fit with the normal '<language name>-language', this table
maps language code to article title.
that is the long-standing method of handling article names that don't fit with the normal pattern
Baris 277 ⟶ 284:
--[=[-------------------------< R T L _ S C R I P T S >--------------------------------------------------------
ISO 15924 scripts that are written right-to-left.
last update to this list: 2017-12-24
Baris 291 ⟶ 298:
--[[--------------------------< T R A N S L I T
This is a table of tables of transliteration standards and the language codes or language scripts that apply to
those standards.
by some of the {{lang-??}} templates.
These tables are more-or-less copied directly from {{transl}}.
the cases when no |std= parameter value is provided.
Baris 486 ⟶ 493:
['satts'] = {
['default'] = 'Standard Arabic Technical Transliteration System transliteration',
},
['scientific'] = {
['default'] = 'scientific transliteration',
},
['ukrainian'] = {
['default'] = 'Ukrainian National system of romanization',
},
|