Open main menu

Wiktionary β

Module:zh-usex/data

< Module:zh-usex

This module contains data used by Module:zh-usex for formatting quotations and usage examples.


local data = {}

data.variety_list = {
	["MSC"] = { "[[w:Standard Chinese|MSC]]", "cmn", "Pinyin" },
		["M-BJ"] = { "[[w:Beijing dialect|Beijing Mandarin]]", "cmn", "Pinyin" },
		["M-TW"] = { "[[w:Taiwanese Mandarin|Taiwanese Mandarin]]", "cmn", "Pinyin" },
		["M-TJ"] = { "[[w:Tianjin dialect|Tianjin Mandarin]]", "cmn", "Pinyin" },
		["M-NE"] = { "[[w:Northeastern Mandarin|Northeastern Mandarin]]", "cmn", "Pinyin" },
		["M-S"]  = { "[[w:Sichuanese dialects|Sichuanese]]", "cmn-sze", "Sichuanese Pinyin" },
		["M-W"]  = { "[[w:Wuhan dialect|Wuhanese]]", "cmn-wuh", "IPA" },
	
	["CL"] = { "[[w:Classical Chinese|Classical Chinese]]", "cmn", "Pinyin" },
		["CL-VN"] = { "[[w:Classical Chinese|Classical Chinese]]", "vi", "[[w:Sino-Vietnamese vocabulary|Sino-Vietnamese]]" },
		["CL-C"] = { "[[w:Classical Chinese|Classical Chinese]]", "yue", "Jyutping" },
	
	["WVC"] = { "[[w:Written vernacular Chinese|Written Vernacular Chinese]]", "cmn", "Pinyin" },

	["C"] = { "[[w:Cantonese|Cantonese]]", "yue", "Jyutping" },
		["C-GZ"] = { "[[w:Cantonese|Guangzhou Cantonese]]", "yue", "Jyutping" },
		["C-LIT"] = { "[[w:Cantonese|Literary Cantonese]]", "yue", "Jyutping" },
		["C-T"] = { "[[w:Taishanese|Taishanese]]", "yue-tai", "Wiktionary" },
	
	["MD"] = { "[[w:Min Dong|Min Dong]]", "cdo", "[[w:Bàng-uâ-cê|Bàng-uâ-cê]] / IPA" },
	
	["MN"] = { "[[w:Min Nan|Min Nan]]", "nan", "[[w:Pe̍h-ōe-jī|Pe̍h-ōe-jī]]" },
		["TW"] = { "[[w:Taiwanese|Taiwanese]]", "nan", "[[w:Pe̍h-ōe-jī|Pe̍h-ōe-jī]]" },
		["MN-T"] = { "[[w:Teochew dialect|Teochew]]", "nan-teo", "[[w:Peng\'im|Peng\'im]]" },
		
	["W"] = { "[[w:Wu Chinese|Wu]]", "wuu", "IPA" },
		["SH"] = { "[[w:Shanghainese|Shanghainese]]", "wuu", "IPA" },
		
	["H"] = { "[[w:Hakka Chinese|Hakka]]", "hak", "[[w:Pha̍k-fa-sṳ|Pha̍k-fa-sṳ]]" },
}

data.punctuation = {
	[","] = ",",	["。"] = ".",	["、"] = ",",
	["?"] = "?",	["!"] = "!",
	
	["《"] = "“",	["》"] = "”",
	["『"] = "‘",	["』"] = "’",
	["「"] = "“",	["」"] = "”",
	
	["("] = "(",	[")"] = ")",
	[";"] = ";",	[":"] = ":",
	["|"] = "|",	["—"] = "-",	["~"] = "~",	["——"] = "—",
	["·"] = " ",	["…"] = "...",
	["."] = ".",

	[" "] = ";",
}

local CE = '<small class="ce-date">[[Appendix:Glossary#CE|<span title="Glossary and display preference">CE</span>]]</small>'
local BCE = '<small class="ce-date">[[Appendix:Glossary#BCE|<span title="Glossary and display preference">BCE</span>]]</small>'

data.ref_list = {
	['Analects']     =  { "CL",  "The ''[[w:Analects|Analects]] of Confucius'', circa 475 – 221 " .. BCE .. ", translated based on [[w:James Legge|James Legge]]'s version" },
	['Analects-W']     =  { "CL",  "The ''[[w:Analects|Analects]] of Confucius'', circa 475 – 221 " .. BCE .. ", Wiktionary translation" },
	['Bencao Gangmu']=  { "CL",  "The ''[[w:Compendium of Materia Medica|Compendium of Materia Medica]]'' [Bencao Gangmu], by [[w:Li Shizhen|Li Shizhen]], 1578 " .. CE },
	['Changhenge']        =  { "CL",  "'''806''' " .. CE .. ", [[w:Bai Juyi|Bai Juyi]], ''[[wikisource:Song of Everlasting Regret|Song of Everlasting Regret]]''" },
	['Chuci']        =  { "CL",  "The ''[[w:Chu Ci|Verses of Chu]]'', 4<sup>th</sup> century " .. BCE .." – 2<sup>nd</sup> century " .. CE },
	['Fayan']        =  { "CL",  "[[w:Yang Xiong|Yang Xiong]], ''[[w:Fa yan|Fa Yan]]'' (''Exemplary Sayings''), 9 " .. CE },
	['Guanyinzi']    =  { "CL",  "''[[w:zh:關尹子|Guanyinzi]]'', time unknown" },
	['Guanzi']       =  { "CL",  "''[[w:Guanzi (text)|Guanzi]]'', 7<sup>th</sup> – 4<sup>th</sup> century " .. BCE },
	['Guoyu']        =  { "CL",  "''[[w:Guoyu|Guoyu]]'', circa 4<sup>th</sup> century " .. BCE },
	['Hanfeizi']     =  { "CL",  "''[[w:Han Feizi (book)|Han Feizi]]'', circa 2<sup>nd</sup> century " .. BCE },
	['Hanshu']       =  { "CL",  "The ''[[w:Book of Han|Book of Han]]'', circa 1<sup>st</sup> century " .. CE },
	['Houhanshu']    =  { "CL",  "The ''[[w:Book of the Later Han|Book of the Later Han]]'', circa 5<sup>th</sup> century " .. CE },
	['Hongloumeng']  =  { "WVC", "[[w:Cao Xueqin|Cao Xueqin]], ''[[w:Dream of the Red Chamber|Dream of the Red Chamber]]'', mid-18<sup>th</sup> century " .. CE },
	['Huangdi Neijing']={ "CL",  "''[[w:Huangdi Neijing|Huangdi Neijing]]'', 4<sup>th</sup> century " .. BCE .. " to 3<sup>rd</sup> century " .. CE },
	['Jinshu']       =  { "CL",  "'''648''' " .. CE .. ", [[w:Fang Xuanling|Fang Xuanling]] (lead editor), ''[[w:Book of Jin|Book of Jin]]''" },
	['Jiutangshu']        =  { "CL",  "The ''[[w:Old Book of Tang|Old Book of Tang]]'', 945" .. CE },
	['Lantingjixu']  =  { "CL",  "'''353''' " .. CE .. ", [[w:Wang Xizhi|Wang Xizhi]], ''[[:s:Preface to the Poems Composed at the Orchid Pavilion|Preface to the Poems Composed at the Orchid Pavilion]]''" },
	['Liji']         =  { "CL",  "The ''[[w:Book of Rites|Book of Rites]]'', circa 4<sup>th</sup> – 2<sup>nd</sup> century " .. BCE },
	['Lunheng']      =  { "CL",  "[[w:Wang Chong|Wang Chong]], ''[[w:Lunheng|Lun Heng]]'' (''Discussive Weighing''), 80 " .. CE },
	['Mengzi']       =  { "CL",  "''[[w:Mencius (book)|Mengzi]] (Mencius)'', circa 4<sup>th</sup> century " .. BCE },
	['Mozi']         =  { "CL",  "''[[w:Mozi|Mozi]] ([[w:zh:墨子 (书)|book]])'', circa 4<sup>th</sup> century " .. BCE },
	['Qimin Yaoshu'] =  { "CL",  "'''544''' " .. CE .. ", Jia Sixie, ''[[w:Qimin Yaoshu|Qimin Yaoshu]]''" },
	['Rulin Waishi'] =  { "WVC",  "[[w:Wu Jingzi|Wu Jingzi]], ''[[w:The Scholars (novel)|The Scholars]]'', 1750 " .. CE },
	['Sanguo Yanyi'] =  { "CL",  "''[[w:Romance of the Three Kingdoms|Romance of the Three Kingdoms]]'', circa 14<sup>th</sup> century " .. CE },
	['Sanzijing']    =  { "CL",  "''[[w:Three Character Classic|Three Character Classic]]'', circa 13<sup>th</sup> century " .. CE },
	['Shangjunshu']  =  { "CL",  "The ''[[w:The Book of Lord Shang|Book of Lord Shang]]'', circa 3<sup>rd</sup> century " .. BCE },
	['Shangshu']     =  { "CL",  "The ''[[w:Book of Documents|Book of Documents]]'', circa 4<sup>th</sup> – 3<sup>rd</sup> century " .. BCE },
	['Shanhaijing']  =  { "CL",  "The ''[[w:Classic of Mountains and Seas|Classic of Mountains and Seas]]''" },
	['Shiji']        =  { "CL",  "The ''[[w:Records of the Grand Historian|Records of the Grand Historian]]'', by [[w:Sima Qian|Sima Qian]], circa 91 " .. BCE },
	['Shijing']      =  { "CL",  "The ''[[w:Classic of Poetry|Classic of Poetry]]'', circa 11<sup>th</sup> – 7<sup>th</sup> centuries " .. BCE .. ", translated based on [[w:James Legge|James Legge]]'s version" },
	['Shijing-Xu']   =  { "CL",  "''Preface to Mao's Odes'' (Commentary on the ''[[w:Classic of Poetry|Classic of Poetry]]''), mid 2<sup>nd</sup> century " .. BCE  },
	['Shishuo Xinyu']=  { "CL",  "[[w:zh:劉義慶|Liu Yiqing]] (editor), ''[[w:A New Account of the Tales of the World|A New Account of the Tales of the World]]'', 4<sup>th</sup> century " .. CE },
	['Shuihuzhuan']  =  { "WVC", "[[w:Shi Nai'an|Shi Nai'an]], ''[[w:Water Margin|Water Margin]]'', circa 14<sup>th</sup> century " .. CE },
	['Shujing']      =  { "CL",  "The ''[[w:Book of Documents|Book of Documents]]'', circa 7<sup>th</sup> – 4<sup>th</sup> centuries " .. BCE },
	['Shuowen']      =  { "CL",  "''[[w:Shuowen Jiezi|Shuowen Jiezi]]'', circa 2<sup>nd</sup> century " .. CE },
	['Sunzi']        =  { "CL",  "''[[w:The Art of War|The Art of War]]'', circa 5<sup>th</sup> century " .. BCE },
	['Taiping Guangji']={ "CL",  "''[[w:Taiping Guangji|Taiping Guangji]]'' (''Extensive Records of the Taiping Era''), 978 " .. CE },
	['Taiping Yulan']=  { "CL",	 "''[[w:Taiping Yulan|Taiping Yulan]]'' (''Readings of the Taiping Era''), 977 – 983 " .. CE },
	['Taixuanjing']  =  { "CL",  "[[w:Yang Xiong|Yang Xiong]], ''[[w:Taixuanjing|The Canon of Supreme Mystery]]'', 2 " .. BCE },
	['Tongdian']     =  { "CL",	 "[[w:Du You|Du You]], ''[[w:Tongdian|Tongdian]]'', 766 – 801 " .. CE },
	['UM']           =  { "MSC", "[http://nlp2ct.cis.umac.mo/um-corpus/ UM-Corpus: A Large English-Chinese Parallel Corpus] by NLP2CT" },
	['Xishuangji']   =  { "WVC", "[[w:Wang Shifu|Wang Shifu]], ''[[w:The Story of the Western Wing|The Story of the Western Wing]]'', 13<sup>th</sup> – 14<sup>th</sup> centuries " .. CE },
	['Xiyouji']      =  { "WVC", "[[w:Wu Cheng'en|Wu Cheng'en]], ''[[w:Journey to the West|Journey to the West]]'', 16<sup>th</sup> century " .. CE },
	['Xintangshu']   =  { "CL",  "The ''[[w:New Book of Tang|New Book of Tang]]'', 1060" .. CE .. " ([[w:Song dynasty|Song dynasty]])" },
	['Xinyu']        =  { "CL",  "[[w:Lu Jia (Western Han)|Lu Jia]], ''[[w:zh:新語 (中國古籍)|Xinyu]]'' (''A New Discourse''), circa 197 " .. BCE },
	['Xunzi']        =  { "CL",  "''[[w:Xunzi (book)|Xunzi]]'', circa 3<sup>rd</sup> century " .. BCE },
	['Yanzi Chunqiu']=  { "CL",  "''[[w:Yanzi Chunqiu|Annals of Master Yan]]'', circa 3<sup>rd</sup> century " .. BCE },
	['Yijing']       =  { "CL",  "''[[w:I Ching|I Ching]]'', 3<sup>rd</sup> – 2<sup>nd</sup> millennia " .. BCE },
	['Yilin']        =  { "CL",  "[[w:zh:焦贛|Jiao Gong]], ''[[w:Jiaoshi Yilin|Yilin]]'', 1<sup>st</sup> century " .. BCE },
	['Yizhoushu']    =  { "CL",  "''[[w:Yi Zhou Shu|Lost Book of Zhou]]'', circa 4<sup>th</sup> – 1<sup>st</sup> centuries " .. BCE },
	['Zhanguoce']    =  { "CL",  "''[[w:Zhan Guo Ce|Zhan Guo Ce]]'', circa 5<sup>th</sup> – 3<sup>rd</sup> centuries " .. BCE },
	['Zhouli']       =  { "CL",  "''[[w:Rites of Zhou|Rites of Zhou]]'', circa 3<sup>rd</sup> century " .. BCE },
	['Zhuangzi']     =  { "CL",  "''[[w:Zhuangzi (book)|Zhuangzi]]'', circa 3<sup>rd</sup> – 2<sup>nd</sup> centuries " .. BCE },
	['Zhuzi Jiaxun'] =  { "CL",  "[[w:zh:朱用純|Zhu Yongchun]], ''[[w:zh:朱柏廬治家格言|Zhu Zi's Family Maxims]]'', 17<sup>th</sup> century " .. CE },
	['Zibuyu']       =  { "CL",  "[[w:Yuan Mei|Yuan Mei]], ''[[w:What the Master Would Not Discuss|What the Master Would Not Discuss]]'', 1788 " .. CE },
	['Zuozhuan']     =  { "CL",  "''[[w:Zuo zhuan|Commentary of Zuo]]'', circa 4<sup>th</sup> century " .. BCE },
	['Zuozhuan-D']   =  { "CL",  "''[[w:Zuo zhuan|Commentary of Zuo]]'', circa 4<sup>th</sup> century " .. BCE .. ", translation from ''Zuozhuan: Commentary on the \"Spring and Autumn Annals\"'' (2017), by Stephen Durrant, Wai-yee Li and David Schaberg" },
}

data.pron_correction = {
	["cmn"] = {
		["吧"] = "ba",
		["的"] = "de", ["都"] = "dōu", 
		["個"] = "ge", ["給"] = "gěi", ["更"] = "gèng",
		["還"] = "hái", 
		["幾"] = "jǐ", ["將"] = "jiāng",
		["了"] = "le", ["槤"] = "lián",
		["麼"] = "me", ["沒"] = "méi", 
		["妳"] = "nǐ",
		["漂"] = "piào", 
		["捨"] = "shě", ["什"] = "shén", 
		["為"] = "wèi",
		["要"] = "yào"
	},
	["yue"] = {
		["掂"] = "dim6",
		["若"] = "joek6",
		["令"] = "ling6", ["來"] = "loi4",
		["華"] = "waa4", ["玩"] = "waan2",
		["蛇"] = "se4",
		["𠻹"] = "tim1",
		["只"] = "zi2",
	},
	["hak"] = {
		["阿"] = "-â-",
		["竹"] = "-chuk-", ["獎"] = "-chióng-",
		["茶"] = "chhà", ["蚻"] = "-chha̍t-", ["曾"] = "-chhèn-", ["千"] = "-chhiên-", ["竄"] = "-chhon-", ["捽"] = "-chhu̍t-",
		["仔"] = "-é-", ["𫣆"] = "-ên-",
		["客"] = "-hak-",
		["𥘹"] = "-kì-", ["溝"] = "-kiêu-", ["稿"] = "-kó-",
		["罅"] = "-la-", ["壢"] = "-lak-", ["摎"] = "-lâu-", ["㧯"] = "-lâu-", ["恅"] = "-láu-", ["俚"] = "-lî-", ["擂"] = "-lùi-",
		["閩"] = "-mén-", ["忘"] = "-mong-", ["蚊"] = "-mûn-",
		["𠊎"] = "-ngài-", ["祢"] = "-ngì-",
		["孲"] = "-ò-", ["𡟓"] = "-ôi-",
		["輩"] = "-pi-", ["𡜵"] = "-pû-",
		["婆"] = "-phò-",
		["使"] = "-sṳ́-", ["史"] = "-sṳ́-", ["脣"] = "-sùn-",
		["點"] = "-tiám-",
		["𢯭"] = "-then-", ["唐"] = "-thòng-"
	},
	["nan"] = {
		["阿"] = "-a-", ["仔"] = "-á-", ["矣"] = "-ah-", ["啊"] = "-ah-",
		["䆀"] = "-bái-", ["袂"] = "-bē-", ["欲"] = "-beh-", ["覕"] = "-bih-", ["盟"] = "-bêng-", ["務"] = "-bū-",
		["欉"] = "-châng-", ["十"] = "-cha̍p-", ["誌"] = "-chì-", ["遮"] = "-chiah-", ["針"] = "-chiam-", ["窒"] = "-chit-", ["一"] = "-chi̍t-", ["睭"] = "-chiu-", ["𠞩"] = "-chûi-",
		["𨑨"] = "-chhit-", ["𤆬"] = "-chhōa-", ["攢"] = "-chhoân-",
		["的"] = "-ê-", ["憶"] = "-ek-",
		["𠢕"] = "-gâu-", ["偌"] = "-gōa-", ["囡"] = "-gín-",
		["耳"] = "-hīⁿ-", ["予"] = "-hō͘-",
		["也"] = "-iā-", ["𪜶"] = "-in-",
		["字"] = "-jī-", ["然"] = "-jiân-", ["日"] = "-ji̍t-",
		["共"] = "-kā-", ["佮"] = "-kah-", ["甲"] = "-kah-", ["矸"] = "-kan-", ["到"] = "-kàu-", ["竟"] = "kèng", ["行"] = "-kiâⁿ-", ["勼"] = "-kiu-", ["閣"] = "-koh-", ["擱"] = "-koh-", ["講"] = "-kóng-",
		["跤"] = "-kha-", ["較"] = "-khah-", ["徛"] = "-khiā-", ["課"] = "-khò",
		["人"] = "-lâng-", ["汝"] = "-lí-", ["旅"] = "-lí-", ["啉"] = "-lim-", ["戀"] = "-loân-", ["攏"] = "-lóng-",
		["毋"] = "-m̄-", ["嬤"] = "-má-",
		["喔"] = "-o͘h-",
		["爸"] = "-pē-",
		["麭"] = "-pháng-",
		["三"] = "-saⁿ-", ["捨"] = "-siá-", ["閃"] = "-siám-", ["雙"] = "-siang-", ["啥"] = "-siáⁿ-", ["俗"] = "-sio̍k-", ["傷"] = "-siong-", ["商"] = "-siong-", ["受"] = "-siū-", ["煞"] = "-soah-", ["士"] = "-sū-", ["媠"] = "-súi-", ["遂"] = "-sūi-",
		["塊"] = "-tè-", ["咧"] = "-teh-", ["豬"] = "ti", ["戴"] = "-tì-", ["佇"] = "-tī-", ["躊"] = "-tiû-", ["斷"] = "-tn̄g-", ["多"] = "-to-", ["倒"] = "tó", ["拄"] = "-tú-", ["盹"] = "-tuh-", ["脣"] = "-tûn-",
		["太"] = "-thài-", ["刣"] = "-thâi-", ["讀"] = "-tha̍k-", ["窗"] = "-thang-", ["迌"] = "-thô-",
		["揻"] = "-ui-",
	},
	["wuu"] = {},
}

data.polysyllable_pron_correction = {
	["cmn"] = {
		["覺得"] = "juéde"
	},
	["yue"] = {},
	["hak"] = {
		["老鼠"] = "-lo-chhú-",
		["敗勢"] = "-phài-se-",
		["癩⿸疒哥"] = "-thái-kô-",
		["台灣"] = "-Thòi-vàn-",
		["臺灣"] = "-Thòi-vàn-"
	},
	["nan"] = {
		["愛人"] = "-ài-jîn-",
		["饅頭"] = "-bán-thô-", ["門徒"] = "-bûn-tô͘-",
		["情批"] = "-chêng-phoe-", ["遮爾"] = "-chiah-nī-", ["這馬"] = "-chit-má-", ["作用"] = "-chok-iōng-",
		["請假"] = "-chhéng-ká-", ["親像"] = "-chhin-chhiūⁿ-",
		["偌爾"] = "-gōa-nī-",
		["一切"] = "-it-chhè-", ["一般"] = "-it-poaⁿ-", ["一直"] = "-it-ti̍t-",
		["人海"] = "-jîn-hái-", ["人生"] = "-jîn-seng-",
		["卡拉OK"] = "-kha-lá-ó͘-khe-",
		["旅行"] = "-lí-hêng-",
		["歐巴桑"] = "-o͘-bá-sáng-",
		["歹勢"] = "-pháiⁿ-sè-",
		["山珍海味"] = "-san-tin-hái-bī-", ["漩渦"] = "-soân-o-",
		["臺灣"] = "-Tâi-oân-", ["第一"] = "-tē-it-", ["的確"] = "-tek-khak-",
		["癩⿸疒哥"] = "-thái-ko-",
	},
	["wuu"] = {},
}

return data