interscript-maps 3.0.0 → 3.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,471 @@
1
+ system "ALA-LC:zho-Hani:Latn:2012" {
2
+
3
+ metadata {
4
+ authority_id alalc
5
+ id 2012
6
+ language iso-639-2:zho
7
+ source_script Hani
8
+ destination_script Latn
9
+ name "Chinese Romanization Table (2012)"
10
+ url https://www.loc.gov/catdir/cpso/romanization/chinese.pdf
11
+ creation_date 2012
12
+ adoption_date
13
+ description { ALA-LC Chinese Romanization Table, 2012 version. The
14
+ 2012 table follows the principles of the Pinyin system, replacing
15
+ the Wade-Giles system of earlier editions, and does not indicate
16
+ tone marks (Rules of Application 1). Separation of Syllables: the
17
+ romanization of each Chinese character is separated by a space.
18
+ This map encodes the character readings attested by the document's
19
+ own examples, output as lowercase syllables separated by spaces,
20
+ and the deterministic punctuation equivalents. Transcribed from the
21
+ loc.gov document's complete text layer. }
22
+
23
+ notes {
24
+ note "Character coverage: the document provides no general
25
+ hanzi-to-pinyin table - Rules of Application 2 delegate readings to
26
+ Ci hai 辞海 and other dictionaries. The character table here is the
27
+ set of 321 distinct characters attested with readings in the
28
+ document's own example lines; both simplified and traditional forms
29
+ are mapped as attested. The companion map alalc-zho-Latn-Latn-2012
30
+ encodes the document's complete Wade-Giles to Pinyin correspondence
31
+ table (pages 9-21)."
32
+ note "Multiple readings: 大 is attested both as dai (韋大夫 | Wei
33
+ dai fu) and da (智顗大師 | Zhiyi da shi; 中山大學 | Zhongshan da
34
+ xue; 长江大饭店 | Chang Jiang da fan dian; 泸州长江大桥 | Luzhou
35
+ Changjiang Daqiao) and maps to any([dai, da]). No other character
36
+ carries two readings across the document's examples."
37
+ note "Rules recorded but not encoded (word formation above the
38
+ character level, requiring name/title segmentation): joining the
39
+ syllables of multi-character surnames, given names, geographic
40
+ names and jurisdictions (Connection of syllables 1, 1A-1E, 2,
41
+ 2A-2J, 3); apostrophe insertion before joined vowel-initial
42
+ syllables in cases of ambiguity (Connection of syllables 4, e.g.
43
+ Chang'an Shi vs Changan Shi); capitalization (Capitalization 1-4;
44
+ titles and terms of address lower-cased, e.g. Lin lao shi); the
45
+ date rules joining reign periods (Dates 1, e.g. Guangxu ji chou);
46
+ systematic romanization of non-Chinese-origin words (Rules of
47
+ Application 3)."
48
+ note "Punctuation rules recorded but not encoded: the centered
49
+ point (•) transcribes as a comma between coordinate words and as a
50
+ space between personal-name elements (Punctuation 1) - the choice
51
+ is context-dependent. The bracket rule (Punctuation 2) is
52
+ deterministic and is encoded: 「」『』《》 romanize as quotation
53
+ marks."
54
+ }
55
+ }
56
+
57
+ tests {
58
+ # Document examples reproducible end-to-end under the Separation of
59
+ # Syllables rule (each character's syllable separated by a space;
60
+ # common-noun/direction examples printed lowercase in the document).
61
+ "西北" -> "xi bei"
62
+ "东北" -> "dong bei"
63
+ "東北" -> "dong bei" # 2I: direction/position reading
64
+ "一九九八年" -> "yi jiu jiu ba nian"
65
+ "一九九零年" -> "yi jiu jiu ling nian"
66
+ # Single-character entries (readings attested in the document's
67
+ # examples; one or more per romanization initial, plus traditional
68
+ # forms and special rows).
69
+ "安" -> "an"
70
+ "昂" -> "ang"
71
+ "北" -> "bei"
72
+ "博" -> "bo"
73
+ "慈" -> "ci"
74
+ "城" -> "cheng"
75
+ "东" -> "dong"
76
+ "傣" -> "dai"
77
+ "俄" -> "e"
78
+ "尔" -> "er"
79
+ "恩" -> "en"
80
+ "夫" -> "fu"
81
+ "妃" -> "fei"
82
+ "国" -> "guo"
83
+ "光" -> "guang"
84
+ "华" -> "hua"
85
+ "亨" -> "heng"
86
+ "九" -> "jiu"
87
+ "剧" -> "ju"
88
+ "孔" -> "kong"
89
+ "李" -> "li"
90
+ "娄" -> "lou"
91
+ "明" -> "ming"
92
+ "木" -> "mu"
93
+ "南" -> "nan"
94
+ "能" -> "neng"
95
+ "歐" -> "ou"
96
+ "平" -> "ping"
97
+ "颇" -> "po"
98
+ "丘" -> "qiu"
99
+ "区" -> "qu"
100
+ "人" -> "ren"
101
+ "如" -> "ru"
102
+ "然" -> "ran"
103
+ "史" -> "shi"
104
+ "司" -> "si"
105
+ "孫" -> "sun"
106
+ "太" -> "tai"
107
+ "桐" -> "tong"
108
+ "乌" -> "wu"
109
+ "委" -> "wei"
110
+ "乡" -> "xiang"
111
+ "学" -> "xue"
112
+ "一" -> "yi"
113
+ "亞" -> "ya"
114
+ "元" -> "yuan"
115
+ "中" -> "zhong"
116
+ "子" -> "zi"
117
+ # Traditional forms attested alongside simplified ones.
118
+ "吳" -> "wu"
119
+ "務" -> "wu"
120
+ "學" -> "xue"
121
+ "劉" -> "liu"
122
+ "寧" -> "ning"
123
+ "師" -> "shi"
124
+ "菴" -> "an"
125
+ "顗" -> "yi"
126
+ "釋" -> "shi"
127
+ }
128
+
129
+ stage main {
130
+ # Separation of Syllables: separate the romanization of each Chinese
131
+ # character with a space.
132
+ separate
133
+
134
+ parallel {
135
+ # Punctuation 2: brackets used in the manner of quotation marks
136
+ # romanize as quotation marks.
137
+ sub "「" "\""
138
+ sub "」" "\""
139
+ sub "『" "\""
140
+ sub "』" "\""
141
+ sub "《" "\""
142
+ sub "》" "\""
143
+
144
+ # Characters attested in the document's examples
145
+ sub "一" "yi"
146
+ sub "与" "yu"
147
+ sub "丑" "chou"
148
+ sub "丘" "qiu"
149
+ sub "东" "dong"
150
+ sub "中" "zhong"
151
+ sub "主" "zhu"
152
+ sub "义" "yi"
153
+ sub "乌" "wu"
154
+ sub "乙" "yi"
155
+ sub "九" "jiu"
156
+ sub "乡" "xiang"
157
+ sub "亞" "ya"
158
+ sub "产" "chan"
159
+ sub "亨" "heng"
160
+ sub "京" "jing"
161
+ sub "人" "ren"
162
+ sub "他" "ta"
163
+ sub "会" "hui"
164
+ sub "佳" "jia"
165
+ sub "俄" "e"
166
+ sub "保" "bao"
167
+ sub "修" "xiu"
168
+ sub "健" "jian"
169
+ sub "傣" "dai"
170
+ sub "元" "yuan"
171
+ sub "先" "xian"
172
+ sub "光" "guang"
173
+ sub "克" "ke"
174
+ sub "八" "ba"
175
+ sub "公" "gong"
176
+ sub "共" "gong"
177
+ sub "净" "jing"
178
+ sub "刘" "liu"
179
+ sub "剧" "ju"
180
+ sub "劉" "liu"
181
+ sub "加" "jia"
182
+ sub "动" "dong"
183
+ sub "劳" "lao"
184
+ sub "務" "wu"
185
+ sub "化" "hua"
186
+ sub "北" "bei"
187
+ sub "区" "qu"
188
+ sub "半" "ban"
189
+ sub "华" "hua"
190
+ sub "南" "nan"
191
+ sub "博" "bo"
192
+ sub "占" "zhan"
193
+ sub "卯" "mao"
194
+ sub "印" "yin"
195
+ sub "卿" "qing"
196
+ sub "厂" "chang"
197
+ sub "原" "yuan"
198
+ sub "县" "xian"
199
+ sub "发" "fa"
200
+ sub "口" "kou"
201
+ sub "可" "ke"
202
+ sub "史" "shi"
203
+ sub "司" "si"
204
+ sub "吉" "ji"
205
+ sub "名" "ming"
206
+ sub "后" "hou"
207
+ sub "吳" "wu"
208
+ sub "告" "gao"
209
+ sub "呗" "bai"
210
+ sub "员" "yuan"
211
+ sub "周" "zhou"
212
+ sub "和" "he"
213
+ sub "哈" "ha"
214
+ sub "哥" "ge"
215
+ sub "商" "shang"
216
+ sub "嘉" "jia"
217
+ sub "四" "si"
218
+ sub "园" "yuan"
219
+ sub "国" "guo"
220
+ sub "國" "guo"
221
+ sub "土" "tu"
222
+ sub "地" "di"
223
+ sub "城" "cheng"
224
+ sub "基" "ji"
225
+ sub "塔" "ta"
226
+ sub "壁" "bi"
227
+ sub {
228
+ from "大"
229
+ to any(["dai", "da"])
230
+ } # dai in 大夫 (Wei dai fu); da in 智顗大師, 中山大學, 长江大饭店, 泸州长江大桥
231
+ sub "太" "tai"
232
+ sub "夫" "fu"
233
+ sub "奇" "qi"
234
+ sub "如" "ru"
235
+ sub "妃" "fei"
236
+ sub "始" "shi"
237
+ sub "委" "wei"
238
+ sub "娄" "lou"
239
+ sub "子" "zi"
240
+ sub "孔" "kong"
241
+ sub "学" "xue"
242
+ sub "孫" "sun"
243
+ sub "學" "xue"
244
+ sub "安" "an"
245
+ sub "宋" "song"
246
+ sub "宏" "hong"
247
+ sub "宝" "bao"
248
+ sub "客" "ke"
249
+ sub "家" "jia"
250
+ sub "寧" "ning"
251
+ sub "寺" "si"
252
+ sub "小" "xiao"
253
+ sub "少" "shao"
254
+ sub "尔" "er"
255
+ sub "尼" "ni"
256
+ sub "展" "zhan"
257
+ sub "山" "shan"
258
+ sub "岗" "gang"
259
+ sub "岛" "dao"
260
+ sub "島" "dao"
261
+ sub "州" "zhou"
262
+ sub "工" "gong"
263
+ sub "左" "zuo"
264
+ sub "己" "ji"
265
+ sub "市" "shi"
266
+ sub "师" "shi"
267
+ sub "帝" "di"
268
+ sub "師" "shi"
269
+ sub "干" "gan"
270
+ sub "平" "ping"
271
+ sub "年" "nian"
272
+ sub "幸" "xing"
273
+ sub "广" "guang"
274
+ sub "庄" "zhuang"
275
+ sub "库" "ku"
276
+ sub "店" "dian"
277
+ sub "府" "fu"
278
+ sub "度" "du"
279
+ sub "康" "kang"
280
+ sub "延" "yan"
281
+ sub "张" "zhang"
282
+ sub "录" "lu"
283
+ sub "徒" "tu"
284
+ sub "德" "de"
285
+ sub "徽" "hui"
286
+ sub "志" "zhi"
287
+ sub "忠" "zhong"
288
+ sub "恩" "en"
289
+ sub "情" "qing"
290
+ sub "惠" "hui"
291
+ sub "想" "xiang"
292
+ sub "慈" "ci"
293
+ sub "戏" "xi"
294
+ sub "所" "suo"
295
+ sub "扬" "yang"
296
+ sub "护" "hu"
297
+ sub "报" "bao"
298
+ sub "文" "wen"
299
+ sub "族" "zu"
300
+ sub "昂" "ang"
301
+ sub "昌" "chang"
302
+ sub "明" "ming"
303
+ sub "晦" "hui"
304
+ sub "景" "jing"
305
+ sub "智" "zhi"
306
+ sub "書" "shu"
307
+ sub "月" "yue"
308
+ sub "有" "you"
309
+ sub "朝" "chao"
310
+ sub "木" "mu"
311
+ sub "术" "shu"
312
+ sub "权" "quan"
313
+ sub "李" "li"
314
+ sub "村" "cun"
315
+ sub "来" "lai"
316
+ sub "杭" "hang"
317
+ sub "東" "dong"
318
+ sub "林" "lin"
319
+ sub "果" "guo"
320
+ sub "查" "cha"
321
+ sub "案" "an"
322
+ sub "桐" "tong"
323
+ sub "档" "dang"
324
+ sub "桥" "qiao"
325
+ sub "梧" "wu"
326
+ sub "梵" "fan"
327
+ sub "棉" "mian"
328
+ sub "棠" "tang"
329
+ sub "森" "sen"
330
+ sub "楊" "yang"
331
+ sub "楼" "lou"
332
+ sub "概" "gai"
333
+ sub "歌" "ge"
334
+ sub "歐" "ou"
335
+ sub "正" "zheng"
336
+ sub "比" "bi"
337
+ sub "毛" "mao"
338
+ sub "氏" "shi"
339
+ sub "民" "min"
340
+ sub "水" "shui"
341
+ sub "江" "jiang"
342
+ sub "汾" "fen"
343
+ sub "沙" "sha"
344
+ sub "河" "he"
345
+ sub "治" "zhi"
346
+ sub "泸" "lu"
347
+ sub "洋" "yang"
348
+ sub "洲" "zhou"
349
+ sub "派" "pai"
350
+ sub "浦" "pu"
351
+ sub "浩" "hao"
352
+ sub "海" "hai"
353
+ sub "淇" "qi"
354
+ sub "清" "qing"
355
+ sub "港" "gang"
356
+ sub "滨" "bin"
357
+ sub "灣" "wan"
358
+ sub "為" "wei"
359
+ sub "無" "wu"
360
+ sub "然" "ran"
361
+ sub "物" "wu"
362
+ sub "王" "wang"
363
+ sub "珠" "zhu"
364
+ sub "理" "li"
365
+ sub "甘" "gan"
366
+ sub "生" "sheng"
367
+ sub "登" "deng"
368
+ sub "白" "bai"
369
+ sub "的" "de"
370
+ sub "皇" "huang"
371
+ sub "相" "xiang"
372
+ sub "省" "sheng"
373
+ sub "督" "du"
374
+ sub "研" "yan"
375
+ sub "社" "she"
376
+ sub "祁" "qi"
377
+ sub "祥" "xiang"
378
+ sub "福" "fu"
379
+ sub "禧" "xi"
380
+ sub "秦" "qin"
381
+ sub "程" "cheng"
382
+ sub "稿" "gao"
383
+ sub "究" "jiu"
384
+ sub "立" "li"
385
+ sub "章" "zhang"
386
+ sub "管" "guan"
387
+ sub "索" "suo"
388
+ sub "經" "jing"
389
+ sub "緒" "xu"
390
+ sub "縣" "xian"
391
+ sub "纂" "zuan"
392
+ sub "约" "yue"
393
+ sub "纽" "niu"
394
+ sub "组" "zu"
395
+ sub "编" "bian"
396
+ sub "缮" "shan"
397
+ sub "美" "mei"
398
+ sub "翠" "cui"
399
+ sub "老" "lao"
400
+ sub "聖" "sheng"
401
+ sub "能" "neng"
402
+ sub "自" "zi"
403
+ sub "臺" "tai"
404
+ sub "芝" "zhi"
405
+ sub "苗" "miao"
406
+ sub "英" "ying"
407
+ sub "華" "hua"
408
+ sub "菴" "an"
409
+ sub "董" "dong"
410
+ sub "蔣" "jiang"
411
+ sub "藏" "zang"
412
+ sub "西" "xi"
413
+ sub "要" "yao"
414
+ sub "言" "yan"
415
+ sub "論" "lun"
416
+ sub "讨" "tao"
417
+ sub "论" "lun"
418
+ sub "诗" "shi"
419
+ sub "话" "hua"
420
+ sub "说" "shuo"
421
+ sub "谷" "gu"
422
+ sub "賢" "xian"
423
+ sub "趙" "zhao"
424
+ sub "路" "lu"
425
+ sub "輝" "hui"
426
+ sub "较" "jiao"
427
+ sub "辑" "ji"
428
+ sub "迅" "xun"
429
+ sub "运" "yun"
430
+ sub "逊" "xun"
431
+ sub "鄂" "e"
432
+ sub "釋" "shi"
433
+ sub "錦" "jin"
434
+ sub "钢" "gang"
435
+ sub "镇" "zhen"
436
+ sub "長" "chang"
437
+ sub "长" "chang"
438
+ sub "門" "men"
439
+ sub "陕" "shan"
440
+ sub "院" "yuan"
441
+ sub "陳" "chen"
442
+ sub "陽" "yang"
443
+ sub "雄" "xiong"
444
+ sub "集" "ji"
445
+ sub "雲" "yun"
446
+ sub "零" "ling"
447
+ sub "震" "zhen"
448
+ sub "靖" "jing"
449
+ sub "韋" "wei"
450
+ sub "順" "shun"
451
+ sub "顗" "yi"
452
+ sub "颇" "po"
453
+ sub "风" "feng"
454
+ sub "館" "guan"
455
+ sub "饭" "fan"
456
+ sub "馬" "ma"
457
+ sub "驼" "tuo"
458
+ sub "骆" "luo"
459
+ sub "高" "gao"
460
+ sub "鲁" "lu"
461
+ sub "鲜" "xian"
462
+ sub "鶴" "he"
463
+ sub "鹿" "lu"
464
+ sub "黄" "huang"
465
+ sub "黑" "hei"
466
+ sub "齐" "qi"
467
+ sub "齡" "ling"
468
+ sub "龙" "long"
469
+ }
470
+ }
471
+ }