[go: up one dir, main page]

跳转到内容

模組:Languages/data/3/r

維基詞典,自由的多語言詞典

在"incategory ..."過濾器後添加搜索文字:

該模塊包含了語言代碼之定義和元數據。欲見其他相關資訊,請參見附录:語言列表

此模塊不得直接用於其他模塊或模板。資料與數據應通過Module:languages獲取。

必填值

表中的每個項目必須包含以下索引字段:

1
該語言的「規範」名稱,舊版模塊中寫作canonicalName。這是維基詞典詞條和分類名稱中使用的名字。
2
該語言在維基數據的ID(以Q開頭)。這取代了舊的wikipedia_article屬性。若該語言在維基數據沒有對應的實體,可將其設為nil

選填值

3
該語言所屬的語系,請參見Wiktionary:語系

屬性 entry_namesort_key 用於替換文本;它們替換或刪除某些字符或字符集。其工作原理相似,且都是可選的。它們都可以是表,sort_key 可以是一個模塊的名稱,該模塊接收一個條目名並生成一個排序鍵(用於在類別頁面上對條目進行排序)。

if sort_key is the name of a module, the module must contain a sortkey-generating function that is named makeSortKey. This function must take the arguments text, lang, sc, where text is the page name (or other text in the language), lang is the language code (not the language object), and sc is the script code (not the script object). The returned value should always be a string, or there will be a module error in the Language:makeSortKey() function.

If either one is a table, it must contain two tables inside it: one named from and one named to. These two tables 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.

If the replacement is not present or if it is false or nil, it defaults to an empty replacement, meaning that the 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.

The tables can contain literal characters, or the patterns (a type of regular expressions) that are used by the standard Scribunto mw.ustring.gsub function. See the Scribunto reference manual for more information.

At the top of the module, there is a list of combining characters with names. These are provided for convenience and readability, as combining characters generally do not display properly inside the module code (although they do not affect the actual operation of the module).

entry_name
Defines replacements to create the entry name from the displayed form of a term. This can be used to remove certain diacritical marks according to the customs or standard practice of the language. For example, it is used to remove accent marks from Russian words (ру́сскийрусский), or macrons from Latin or Old English words (ōsos), as these are not used in the normal written form of these languages. This is used by makeEntryName in Module:languages.
sort_key
Defines replacements to create a category sort key from the page name. The purpose is to remove any characters that are ignored in sorting, and to replace similar characters with identical ones if the sorting rules for that language do not distinguish them. For example, in German, the characters "ä" and "a" are considered equivalent for sorting, and are both treated as "a". The page name is converted to lowercase before applying the replacements, so you should not add uppercase letters to the "from" lists. This is used by makeSortKey in Module:languages.

These are other optional values:

otherNames
該語言除了標準名稱外的所有名稱的表格。該表格不僅應包括該語言的同義詞,而且應包括指歸入同一類別的語言變體的名稱。例如,雖然佛蘭芒語不是荷蘭語的同義詞,但佛蘭芒語被認為是荷蘭語的「一部分」,因此該名稱被列入荷蘭語其中。
type
語言的類型(會影響它在Wiktionary上的處理方式)。可用的值包括:
  • regular-這個值是默認值,所以不需要特別指定。這表示該語言的詞彙符合Wiktionary:收录标准,因此被允許放在主命名空間中。該語言可能也有重構的詞彙,則這些詞彙應被放在重構(Reconstructed)命名空間中,且必須在前面加「*」表示重構。(註:中文維基詞典暫無 Reconstructed 空間。)
  • reconstructed - 此語言不符合Wiktionary:收录标准,因此只允許在重構命名空間中使用。這類語言中的所有詞彙都是重建得到的,必須在前面加上「*」。
  • appendix-constructed - 這種語言已經通過驗證,但不符合對重構語言的額外要求(Wiktionary:收录标准#構建語言)。因此,其詞彙必須放在附錄(Appendix)命名空間中;又因為它們不是透過重建得到的,因此不應該在鏈接中加上「*」前綴。
scripts
A list of script codes, see Wiktionary:Scripts. These represent all the scripts (writing systems) that this language uses in the real world, as well as the ones that Wiktionary uses. The scripts that are used most often on Wiktionary should be first in the list, as this will speed up script detection.
Many templates and modules detect the script of text in a particular language using the findBestScript function in Module:scripts. 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.
translit_module
The name of a module that is used to generate transliterations of terms, without the Module: prefix. This module must export a function named tr that is defined as follows:
tr(text, lang, sc)
The three parameters are the text to be transliterated, the language code, and the script code. The function can ignore the language and script codes, but they are provided for cases when a language has more than one script, or when a single function is used to transliterate multiple languages sharing the same script.
ancestors
A table listing the language codes of the direct ancestors of this language. For example, the ancestor of English is listed as 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.
For most languages, only one ancestor code should be given, but multiple ancestors can be listed for pidgins, creoles and mixed languages.
The ancestor language table should not be included if the language's direct ancestor is the proto-language of the family to which the language belongs. In such a case, if the family code has been provided, Module:languages will automatically add the proto-language as the language's ancestor. For example, Proto-Germanic (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.
wikimedia_codes
A table listing the Wikimedia language codes that this language maps to. This is used to translate Wiktionary codes to Wikimedia codes, which are usually the same but there are a few languages where it is different. The language codes must be valid Wikimedia codes (as determined by the wiki software), and if they are not defined in one of the language data modules, they must be defined in Module:wikimedia languages/data.
wikipedia_article
The name of the Wikipedia article for the language. Should normally only be supplied if the Wikidata id cannot be used.

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["raa"] = {
	"蕩格馬利語",
	56871,
	"sit-kic",
}

m["rab"] = {
	"坎陵語",
	3436664,
	"sit-kic",
	"Deva",
}

m["rac"] = {
	"拉薩瓦語",
	56443,
	"paa-lkp",
	"Latn",
}

m["rad"] = {
	"埃地語",
	3429088,
	"cmc",
	"Latn",
}

m["raf"] = {
	"西梅瓦杭語",
	17442461,
	"sit-kie",
}

m["rag"] = {
	"洛戈利語",
	6667767,
	"bnt-lok",
	"Latn",
}

m["rah"] = {
	"拉巴語",
	7278686,
	"tbq-bdg",
	"Beng, Latn",
}

m["rai"] = {
	"拉莫艾納語",
	3418509,
	"poz-ocw",
	"Latn",
}

m["rak"] = {
	"博瓦伊語",
	2908807,
	"poz-aay",
	"Latn",
}

m["ral"] = {
	"Ralte",
	7288392,
	"tbq-kuk",
	"Latn",
}

m["ram"] = {
	"卡內拉語",
	2936334,
	"sai-nje",
	"Latn",
}

m["ran"] = {
	"Riantana",
	7322169,
	"ngf",
	"Latn",
}

m["rao"] = {
	"拉奧語",
	11732596,
	"paa",
	"Latn",
}

m["rap"] = {
	"拉帕努伊語",
	36746,
	"poz-pep",
	"Latn",
}

m["raq"] = {
	"薩姆語",
	7395644,
	"sit-kic",
}

m["rar"] = {
	"拉羅湯加語",
	36745,
	"poz-pep",
	"Latn",
}

m["ras"] = {
	"塔加利語",
	36522,
	"nic-ras",
	"Latn",
}

m["rat"] = {
	"Razajerdi",
	7299461,
	"xme-ttc",
	ancestors = "xme-ttc-eas",
}

m["rau"] = {
	"拉烏特語",
	7296262,
	"sit-gma",
	"Deva, Latn",
}

m["rav"] = {
	"桑旁語",
	3449115,
	"sit-kic",
}

m["raw"] = {
	"日旺語",
	542564,
	"sit-nng",
	"Latn",
	sort_key = {remove_diacritics = c.grave .. c.acute .. c.macron},
}

m["rax"] = {
	"Rang",
	3913345,
	"alv-mum",
}

m["ray"] = {
	"拉帕語",
	36417,
	"poz-pep",
}

m["raz"] = {
	"拉罕布語",
	3417555,
	"poz-btk",
}

m["rbb"] = {
	"若買德昂語",
	12953797,
	"mkh-pal",
	"Mymr",
}

m["rbk"] = {
	"北邦托克語",
	63311016,
	"phi",
}

m["rbl"] = {
	"米拉亞比科爾語",
	18664557,
	"phi",
}

m["rcf"] = {
	"留尼旺克里奧爾法語",
	13198,
	"crp",
	"Latn",
	ancestors = "fr",
	sort_key = s["roa-oil-sortkey"],
}

m["rdb"] = {
	"Rudbari",
	12953072,
	"xme",
	ancestors = "xme-mid",
}

m["rea"] = {
	"雷勞語",
	7314883,
	"ngf-mad",
}

m["reb"] = {
	"勒姆邦語",
	7311570,
	"poz-cet",
}

m["ree"] = {
	"拉壤加央語",
	3423957,
	"poz",
}

m["reg"] = {
	"Kara (Tanzania)",
	6367567,
	"bnt-haj",
}

m["rei"] = {
	"Reli",
	7310982,
}

m["rej"] = {
	"勒姜語",
	3056339,
	"poz",
	"Rjng",
}

m["rel"] = {
	"倫迪勒語",
	3447297,
	"cus-som",
}

m["rem"] = {
	"雷莫語",
	3501825,
	"sai-pan",
	"Latn",
}

m["ren"] = {
	"盧敖語",
	6583692,
	"mkh",
}

m["rer"] = {
	"Rer Bare",
	12953857,
}

m["res"] = {
	"雷舍語",
	36258,
	"nic-knj",
}

m["ret"] = {
	"雷塔語",
	7317113,
	"ngf",
}

m["rey"] = {
	"雷亞薩諾語",
	3111857,
	"sai-tac",
	"Latn",
}

m["rga"] = {
	"羅里亞語",
	7366825,
	"poz-vnn",
	"Latn",
}

m["rge"] = {
	"羅姆希臘語",
	3915435,
	"qfa-mix",
	"Latn", -- and/or Grek?
	ancestors = "rom, el",
}

m["rgk"] = {
	"朗卡斯語",
	7292645,
	"sit-alm",
}

m["rgn"] = {
	"羅馬涅語",
	1641543,
	"roa-git",
	"Latn",
	wikimedia_codes = "eml",
}

m["rgr"] = {
	"Resígaro",
	3450504,
	"awd",
	"Latn",
}

m["rgs"] = {
	"南拉格萊語",
	12953069,
}

m["rgu"] = {
	"Ringgou",
	7334886,
	"poz-tim",
}

m["rhg"] = {
	"羅興亞語",
	3241177,
	"inc-eas",
	"Rohg, Arab, Mymr, Latn, Beng",
	ancestors = "inc-obn",
	translit = {Rohg = "Rohg-translit"},
}

m["rhp"] = {
	"雅杭語",
	8046792,
	"qfa-tor",
}

m["ria"] = {
	"Reang",
	12953063,
	"tbq-bdg",
}

m["rif"] = {
	"里菲安語",
	34174,
	"ber",
	"Latn, Tfng, Arab",
	translit = { Tfng = "Tfng-translit" },
	standardChars = {
		Latn = "AaBbCcDdḌḍEeƐɛFfGgƔɣĞğHhḤḥIiJjKkLlMmNnPpQqRrŘřSsṢṣTtṬṭUuWwXxYyZzẒẓʷ",
		Tfng = "ⴰⴳⴷⴹⴼⵖⵉⴽⵍⵎⵏⵓⵔⵙⵛⵜⵡⵢⵣⵥⴱⵀⵅⵊⴳⵯⵕⵚⵟⵇⵃⵄⴻⴽⵯ",
		c.punc
	},
}

m["ril"] = {
	"日昂語",
	2741615,
	"mkh-pal",
}

m["rim"] = {
	"尼亞圖魯語",
	7193418,
	"bnt-tkm",
	"Latn",
}

m["rin"] = {
	"Nungu",
	3913350,
	"nic-nin",
	"Latn",
}

m["rir"] = {
	"瑞分語",
	7322443,
	"day",
	"Latn",
}

m["rit"] = {
	"Ritarungo",
	7336730,
	"aus-yol",
	"Latn",
}

m["riu"] = {
	"Riung",
	7336938,
	"poz-cet",
	"Latn",
}

m["rjg"] = {
	"Rajong",
	7286370,
	"poz-cet",
	"Latn",
}

m["rji"] = {
	"Raji",
	7286138,
	"sit-gma",
}

m["rjs"] = {
	"Rajbanshi",
	12640969,
	"inc-krn",
	"Deva",
}

m["rka"] = {
	"克勞爾語",
	3199593,
	"mkh-ban",
	"Khmr", -- also Latn?
}

m["rkb"] = {
	"里比薩語",
	2585357,
	"sai-mje",
	"Latn",
}

m["rkh"] = {
	"拉卡漢加-曼尼希基語",
	3119695,
	"poz-pep",
	"Latn",
}

m["rki"] = {
	"若開語",
	3450749,
	"tbq-brm",
	"Mymr",
	ancestors = "obr",
}

m["rkm"] = {
	"馬爾卡語",
	36030,
	"dmn-wmn",
	"Latn",
}

m["rkt"] = {
	"朗普里語",
	3241618,
	"inc-krn",
	"as-Beng, Latn",
	translit = "as-translit",
}

m["rkw"] = {
	"阿拉瓜爾語",
	34295800,
	"aus-pam",
	"Latn",
}

m["rma"] = {
	"拉瑪語",
	3444486,
	"cba",
}

m["rmb"] = {
	"Rembarunga",
	7311553,
	"aus-gun",
	"Latn",
}

m["rmc"] = {
	"喀爾巴阡羅姆語",
	5045611,
	"inc-rom",
	"Latn",
}

m["rmd"] = {
	"旅行者丹麥語",
	12640779,
	"qfa-mix",
	"Latn",
	ancestors = "rom, da",
}

m["rme"] = {
	"盎格魯羅姆語",
	541279,
	"qfa-mix",
	"Latn",
	ancestors = "rom, en",
}

m["rmf"] = {
	"芬蘭羅姆語",
	2093214,
	"inc-rom",
	"Latn",
}

m["rmg"] = {
	"旅行者挪威語",
	3177352,
	"qfa-mix",
	"Latn",
	ancestors = "rom, no",
}

m["rmh"] = {
	"穆爾金語",
	4308074,
	"paa-pau",
}

m["rmi"] = {
	"洛馬夫倫語",
	2495696,
	"qfa-mix",
	"Latn, Armn",
	ancestors = "pra-sau, hy",
	translit = {Armn = "Armn-translit"},
	override_translit = true,
}

m["rmk"] = {
	"隆昆語",
	7363236,
	"paa",
	"Latn",
}

m["rml"] = {
	"波羅的羅姆語",
	513736,
	"inc-rom",
	"Latn",
}

m["rmm"] = {
	"Roma",
	4414831,
}

m["rmn"] = {
	"巴爾幹羅姆語",
	1256701,
	"inc-rom",
	"Latn",
}

m["rmo"] = {
	"辛特羅姆語",
	1793299,
	"inc-rom",
	"Latn",
}

m["rmp"] = {
	"倫皮語",
	7312214,
	"ngf-mad",
}

m["rmq"] = {
	"伊比利吉普賽語",
	35466,
	"qfa-mix",
	"Latn",
	ancestors = "rom, osp, roa-opt",
}

m["rms"] = {
	"羅馬尼亞手語",
	7362575,
	"sgn",
}

m["rmt"] = {
	"多姆語",
	35394,
	"inc-cen",
}

m["rmu"] = {
	"斯堪地羅姆語",
	27808413,
	"qfa-mix",
	"Latn",
	ancestors = "rom, sv",
}

m["rmv"] = {
	"Romanova",
	1298715,
	"art",
	type = "appendix-constructed",
}

m["rmw"] = {
	"威爾士羅姆語",
	2097387,
	"inc-rom",
	"Latn",
}

m["rmx"] = {
	"勒曼語",
	22694600,
	"mkh",
}

m["rmy"] = {
	"弗拉赫羅姆語",
	2669199,
	"inc-rom",
	"Latn",
}

m["rmz"] = {
	"馬爾馬語",
	21403256,
	"tbq-brm",
	"Mymr",
	ancestors = "obr",
}

m["rnd"] = {
	"Ruwund",
	7383564,
	"bnt-lun",
}

m["rng"] = {
	"龍加語",
	2520717,
	"bnt-tsr",
	"Latn",
}

m["rnl"] = {
	"Ranglong",
	7292878,
}

m["rnn"] = {
	"Roon",
	7366335,
	"poz-hce",
}

m["rnp"] = {
	"Rongpo",
	7365672,
	"sit-whm",
}

m["rnw"] = {
	"龍瓦語",
	7379873,
	"bnt-mwi",
	"Latn",
}

m["rob"] = {
	"塔埃語",
	12473476,
	"poz-ssw",
	"Latn",
}

m["roc"] = {
	"各加拉格萊語",
	2932485,
}

m["rod"] = {
	"Rogo",
	3914894,
	"nic-kmk",
}

m["roe"] = {
	"龍基語",
	3441763,
	"poz-ocw",
}

m["rof"] = {
	"蘭博語",
	33330,
	"bnt-chg",
	"Latn",
}

m["rog"] = {
	"北拉格萊語",
	3439680,
	"cmc",
	"Latn",
}

m["rol"] = {
	"朗布隆語",
	13202,
	"phi",
}

m["rom"] = {
	"羅姆語",
	13201,
	"inc-rom",
	"Latn, Cyrl",
}

m["roo"] = {
	"羅托卡特語",
	13203,
	"paa-nbo",
	"Latn",
}

m["rop"] = {
	"澳洲克里奧爾語",
	35671,
	"crp",
	"Latn",
	ancestors = "en",
}

m["ror"] = {
	"Rongga",
	12473464,
}

m["rou"] = {
	"Runga",
	56793,
}

m["row"] = {
	"Dela-Oenale",
	5253046,
	"poz-tim",
}

m["rpn"] = {
	"Repanbitip",
	7313900,
	"poz-vnc",
	"Latn",
}

m["rpt"] = {
	"拉普廷語",
	7294362,
	"ngf-mad",
}

m["rri"] = {
	"Ririo",
	2404190,
	"poz-ocw",
}

m["rro"] = {
	"Roro",
	34197,
	"poz-ocw",
	"Latn",
}

m["rrt"] = {
	"Arritinngithigh",
	4796002,
	nil,
	"Latn",
}

m["rsb"] = {
	"羅姆語-塞爾維亞語",
	1268244,
	"qfa-mix",
	"Latn", -- and Cyrl?
	ancestors = "rom, sh",
}

m["rsl"] = {
	"俄羅斯手語",
	13210,
	"sgn",
}

m["rsk"] = {
	"潘諾尼亞盧森尼亞語",
	35660,
	"zlw",
	"Cyrl",
	ancestors = "zlw-osk",
	translit = "rsk-translit",
}

m["rsm"] = {
	"Miriwoong Sign Language",
	24090240,
	"sgn",
}

m["rtc"] = {
	"Rungtu",
	7379867,
	"tbq-kuk",
}

m["rth"] = {
	"拉塔罕語",
	3420026,
	"phi",
	"Latn",
}

m["rtm"] = {
	"羅圖馬語",
	36754,
	"poz-pcc",
	"Latn",
}

m["rtw"] = {
	"Rathawi",
	12953854,
	"inc-bhi",
}

m["rub"] = {
	"Gungu",
	11165235,
	"bnt-glb",
}

m["ruc"] = {
	"Ruuli",
	7383562,
	"bnt-nyg",
}

m["rue"] = {
	"盧森尼亞語",
	26245,
	"zle",
	"Cyrl",
	ancestors = "zle-ort",
	translit = "rue-translit",
	entry_name = {remove_diacritics = c.grave .. c.acute},
	sort_key = "rue-sortkey",
}

m["ruf"] = {
	"Luguru",
	3437661,
	"bnt-ruv",
	"Latn",
}

m["rug"] = {
	"羅維阿納語",
	3445546,
	"poz-ocw",
	"Latn",
}

m["ruh"] = {
	"Ruga",
	7378127,
}

m["rui"] = {
	"Rufiji",
	7377946,
	"bnt-mbi",
}

m["ruk"] = {
	"Che",
	3915445,
	"nic-nin",
}

m["ruo"] = {
	"伊斯特羅-羅馬尼亞語",
	33622,
	"roa-eas",
	"Latn",
}

m["rup"] = {
	"阿羅馬尼亞語",
	29316,
	"roa-eas",
	"Latn, Grek",
	wikimedia_codes = "roa-rup",
}

m["ruq"] = {
	"梅戈來諾-羅馬尼亞語",
	13358,
	"roa-eas",
	"Latn",
}

m["rut"] = {
	"魯圖爾語",
	36757,
	"cau-wsm",
	"Cyrl, Latn",
	display_text = {Cyrl = s["cau-Cyrl-displaytext"]},
	entry_name = {
		Cyrl = s["cau-Cyrl-entryname"],
		Latn = s["cau-Latn-entryname"],
	},
}

m["ruu"] = {
	"Lanas Lobu",
	12953676,
}

m["ruy"] = {
	"Mala (Nigeria)",
	3913381,
	"nic-kau",
}

m["ruz"] = {
	"Ruma",
	3913326,
	"nic-kau",
}

m["rwa"] = {
	"拉沃語",
	3504269,
}

m["rwk"] = {
	"羅瓦語",
	7985624,
	"bnt-chg",
}

m["rwm"] = {
	"Amba",
	788423,
	"bnt-kbi",
	"Latn",
}

m["rwo"] = {
	"拉瓦語",
	11732598,
	"ngf-fin",
	"Latn",
}

m["rxd"] = {
	"Ngardi",
	7022063,
}

m["rxw"] = {
	"Karuwali",
	6881575,
}

m["ryn"] = {
	"北奄美大島語",
	2840988,
	"jpx-nry",
	"Jpan",
	translit = s["jpx-translit"],
	display_text = s["jpx-displaytext"],
	entry_name = s["jpx-entryname"],
	sort_key = s["jpx-sortkey"],
}

m["rys"] = {
	"八重山語",
	34203,
	"jpx-sry",
	"Jpan",
	translit = s["jpx-translit"],
	display_text = s["jpx-displaytext"],
	entry_name = s["jpx-entryname"],
	sort_key = s["jpx-sortkey"],
}

m["ryu"] = {
	"沖繩語",
	34233,
	"jpx-nry",
	"Jpan",
	translit = s["jpx-translit"],
	display_text = s["jpx-displaytext"],
	entry_name = s["jpx-entryname"],
	sort_key = s["jpx-sortkey"],
}

m["rzh"] = {
	"Razihi",
	16911222,
	"sem-osa",
	"Arab",
	ancestors = "sem-srb",
}

return m_lang.finalizeLanguageData(m_lang.addDefaultTypes(m, true))