Skip to content

Commit 4c544b9

Browse files
committed
YML syntax updates for Chinese.
1 parent dfd1c04 commit 4c544b9

1 file changed

Lines changed: 46 additions & 9 deletions

File tree

scriptshifter/tables/data/_chinese_base.yml

Lines changed: 46 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,59 @@
11
# This file is derived and kept in sync with Princeton's OCLC Connexion Pinyin
22
# converter (https://github.com/pulibrary/oclcpinyin/).
3-
# Incorporates CC-CEDICT update from 1/31/26 (https://www.mdbg.net/chinese/dictionary?page=cedict)
3+
# Incorporates CC-CEDICT update from 1/31/26
4+
# (https://www.mdbg.net/chinese/dictionary?page=cedict)
5+
6+
---
47

58
general: # Section names and other keywords are all snake_cased.
6-
name: Chinese base (from Princeton)
9+
name: Chinese
10+
case_sensitive: false
11+
description: >
12+
Chinese transliteration derived and kept in sync with Princeton's OCLC
13+
Connexion Pinyin converter (https://github.com/pulibrary/oclcpinyin/).
14+
version: 1.0.0
15+
date: 2025-11-29
716
parents:
817
- _ignore_base
918

19+
options:
20+
- id: marc_field
21+
label: MARC field
22+
description: >
23+
Romanize according to a specific MARC field format. If indicating a
24+
subfield, append it to the numeric field value , e.g. \'245n\'.
25+
Leave blank if not applicable.
26+
type: string
27+
default:
28+
1029
script_to_roman:
30+
directives:
31+
# Capitalize the first letter of the string only; TODO
32+
# Implement a list that includes all punctuation marks that
33+
# want the following letter capitalized.
34+
capitalize: true
35+
36+
hooks:
37+
pre_assembly:
38+
-
39+
- chinese.person_name_pre_assembly
40+
1141
map: # Mapping section.
1242
# Multi-character maps.
13-
"\u5DF4\u57FA\u65AF\u5766\u4F0A\u65AF\u862D\u5171\u548C\u570B": "Bajisitan Yisilan Gongheguo "
14-
"\u5DF4\u57FA\u65AF\u5766\u4F0A\u65AF\u5170\u5171\u548C\u56FD": "Bajisitan Yisilan Gongheguo "
15-
"\u5DF4\u97F3\u90ED\u695E\u8499\u53E4\u81EA\u6CBB\u5DDE": "Bayinguoleng Menggu Zizhizhou "
16-
"\u5EF6\u908A\u671D\u9BAE\u65CF\u81EA\u6CBB\u5DDE": "Yanbian Chaoxianzu Zizhizhou "
17-
"\u5EF6\u8FB9\u671D\u9C9C\u65CF\u81EA\u6CBB\u5DDE": "Yanbian Chaoxianzu Zizhizhou "
18-
"\u5FB7\u610F\u5FD7\u806F\u90A6\u5171\u548C\u570B": "Deyizhi Lianbang Gongheguo "
19-
"\u5FB7\u610F\u5FD7\u8054\u90A6\u5171\u548C\u56FD": "Deyizhi Lianbang Gongheguo "
43+
"\u5DF4\u57FA\u65AF\u5766\u4F0A\u65AF\u862D\u5171\u548C\u570B":
44+
"Bajisitan Yisilan Gongheguo "
45+
"\u5DF4\u57FA\u65AF\u5766\u4F0A\u65AF\u5170\u5171\u548C\u56FD":
46+
"Bajisitan Yisilan Gongheguo "
47+
"\u5DF4\u97F3\u90ED\u695E\u8499\u53E4\u81EA\u6CBB\u5DDE":
48+
"Bayinguoleng Menggu Zizhizhou "
49+
"\u5EF6\u908A\u671D\u9BAE\u65CF\u81EA\u6CBB\u5DDE":
50+
"Yanbian Chaoxianzu Zizhizhou "
51+
"\u5EF6\u8FB9\u671D\u9C9C\u65CF\u81EA\u6CBB\u5DDE":
52+
Yanbian Chaoxianzu Zizhizhou "
53+
"\u5FB7\u610F\u5FD7\u806F\u90A6\u5171\u548C\u570B":
54+
"Deyizhi Lianbang Gongheguo "
55+
"\u5FB7\u610F\u5FD7\u8054\u90A6\u5171\u548C\u56FD":
56+
"Deyizhi Lianbang Gongheguo "
2057
"\u4E2D\u83EF\u4EBA\u6C11\u5171\u548C\u570B": "Zhonghua Renmin Gongheguo "
2158
"\u4E2D\u534E\u4EBA\u6C11\u5171\u548C\u56FD": "Zhonghua Renmin Gongheguo "
2259
"\u5BE7\u590F\u56DE\u65CF\u81EA\u6CBB\u5340": "Ningxia Huizu Zizhiqu "

0 commit comments

Comments
 (0)