-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnewhannom.schema.yaml
367 lines (354 loc) · 8.31 KB
/
newhannom.schema.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
# Rime schema
# encoding: utf-8
schema:
schema_id: newhannom
name: 部𢫈𡨸漢喃㗂越
version: "0.11"
author:
- Keepout2010 <Keepout2010@163.com>, modified by Liu
description: |
部𢫈𡨸漢喃㗂越、telex
dependencies:
- cangjie5
switches:
- name: ascii_mode
reset: 0
states: [ 越, 西 ]
- name: full_shape
states: [ 半角, 全角 ]
- name: simplification
states: [ 正字, 略字 ]
reset: 0
patch:
punctuator/full_shape:
'\' : ','
'/' : '・'
',' : '、'
# ",": {commit: "、"}
punctuator/half_shape:
'\' : ','
'/' : '・'
',' : '、'
# ",": {commit: "、"}
engine:
processors:
- ascii_composer
- recognizer
- key_binder
- speller
- punctuator
- selector
- navigator
- express_editor
segmentors:
- ascii_segmentor
- matcher
- abc_segmentor
- punct_segmentor
- fallback_segmentor
translators:
- punct_translator
- r10n_translator
- reverse_lookup_translator
filters:
- simplifier
- uniquifier
speller:
alphabet: zyxwvutsrqponmlkjihgfedcba
delimiter: " '"
algebra:
- xform/(ⓗ|ⓥ|×).+$//
- xform/ỷ/yr/
- xform/ỹ/yx/
- xform/ỵ/yj/
- xform/ỳ/yf/
- xform/ý/ys/
- xform/ỏ/or/
- xform/õ/ox/
- xform/ọ/oj/
- xform/ò/of/
- xform/ó/os/
- xform/ẻ/er/
- xform/ẽ/ex/
- xform/ẹ/ej/
- xform/è/ef/
- xform/é/es/
- xform/ủ/ur/
- xform/ũ/ux/
- xform/ụ/uj/
- xform/ù/uf/
- xform/ú/us/
- xform/ỉ/ir/
- xform/ĩ/ix/
- xform/ị/ij/
- xform/ì/if/
- xform/í/is/
- xform/ả/ar/
- xform/ã/ax/
- xform/ạ/aj/
- xform/à/af/
- xform/á/as/
- xform/ở/ơr/
- xform/ỡ/ơx/
- xform/ợ/ơj/
- xform/ờ/ơf/
- xform/ớ/ơs/
- xform/ơ/ow/
- xform/ử/ưr/
- xform/ữ/ưx/
- xform/ự/ưj/
- xform/ừ/ưf/
- xform/ứ/ưs/
- xform/ư/uw/
- xform/ể/êr/
- xform/ễ/êx/
- xform/ệ/êj/
- xform/ề/êf/
- xform/ế/ês/
- xform/ê/ee/
- xform/ổ/ôr/
- xform/ỗ/ôx/
- xform/ộ/ôj/
- xform/ồ/ôf/
- xform/ố/ôs/
- xform/ô/oo/
- xform/ẳ/ăr/
- xform/ẵ/ăx/
- xform/ặ/ăj/
- xform/ằ/ăf/
- xform/ắ/ăs/
- xform/ă/aw/
- xform/ẩ/âr/
- xform/ẫ/âx/
- xform/ậ/âj/
- xform/ầ/âf/
- xform/ấ/âs/
- xform/â/aa/
- xform/đ/dd/
- 'xform (uy)([sfjxr])(nh|t) $1$3$2'
- 'xform ([aeiouâăôê])([sfjxr])(ng|nh|ch) $1$3$2'
- 'xform ([aeiouâăôê])([sfjxr])([iunptckmy]) $1$3$2'
- 'xform ([ae])([sfjxr])([ou]) $1$3$2'
- 'xform (aw|ow|uw)([sfjxr])(ng|nh|ch) $1$3$2'
- 'xform (aw|ow|uw)([sfjxr])([iunptckmy]) $1$3$2'
- 'xform (u|uw|i)([sfjxr])(a) $1$3$2'
- xform/^(.*)$/$1z/
- xform/([sfjxr])z/$1/
- derive/^(qu|k|l|h|v|m|t|s?)i([sfjxrz])$/$1y$2/
- derive/^(qu|k|l|h|v|m|t|s?)y([sfjxrz])$/$1i$2/
- derive/uw/w/
- derive/^ph/f/
- abbrev/^([a-z]).+$/$1/
- derive/^(.*)[z,sxjfrA]$/$1/
# - derive/aw/a/
# - derive/aa/a/
# - derive/ee/e/
# - derive/oo/o/
# - derive/uw/u/
# - derive/ow/o/
# - derive/dd/d/
translator:
dictionary: newhannom
prism: newhannom
spelling_hints: 1 # 〜字以內候選標註完整帶調拼音
enable_completion: false
preedit_format:
- xform/(ⓗ|ⓥ|×).+$//
# - 'xform ([aeiouâăôê])(ng|nh|ch)([sfjxr]) $1$3$2'
# - 'xform ([aeiouâăôê])([iunptckmy])([sfjxr]) $1$3$2'
# - 'xform ([ae])([ou])([sfjxr]) $1$3$2'
# - 'xform (aw|ow|uw|w)([iunptckmy])([sfjxr]) $1$3$2'
# - 'xform (aw|ow|uw|w)(ng|nh|ch)([sfjxr]) $1$3$2'
# - 'xform (u|uw|i|w)(a)([sfjxr])$ $1$3$2'
# - 'xform (gi)([sfjxr])(a) $1$3$2'
# - 'xform (u)([sfjxr])(y) $1$3$2'
# - 'xform (uy)(nh|t)([sfjxr]) $1$3$2'
# - 'xform qu([sfjxr])i qui$1'
# - 'xform z '
# - 'xform dd đ'
# - 'xform aa â'
# - 'xform âs ấ'
# - 'xform âf ầ'
# - 'xform âj ậ'
# - 'xform âx ẫ'
# - 'xform âr ẩ'
# - 'xform aw ă'
# - 'xform ăs ắ'
# - 'xform ăf ằ'
# - 'xform ăj ặ'
# - 'xform ăx ẵ'
# - 'xform ăr ẳ'
# - 'xform oo ô'
# - 'xform ôs ố'
# - 'xform ôf ồ'
# - 'xform ôj ộ'
# - 'xform ôx ỗ'
# - 'xform ôr ổ'
# - 'xform ee ê'
# - 'xform ês ế'
# - 'xform êf ề'
# - 'xform êj ệ'
# - 'xform êx ễ'
# - 'xform êr ể'
# - 'xform ow ơ'
# - 'xform ơs ớ'
# - 'xform ơf ờ'
# - 'xform ơj ợ'
# - 'xform ơx ỡ'
# - 'xform ơr ở'
# - 'xform uw ư'
# - 'xform w ư'
# - 'xform ưs ứ'
# - 'xform ưf ừ'
# - 'xform ưj ự'
# - 'xform ưx ữ'
# - 'xform ưr ử'
# - 'xform as á'
# - 'xform af à'
# - 'xform aj ạ'
# - 'xform ax ã'
# - 'xform ar ả'
# - 'xform is í'
# - 'xform if ì'
# - 'xform ij ị'
# - 'xform ix ĩ'
# - 'xform ir ỉ'
# - 'xform us ú'
# - 'xform uf ù'
# - 'xform uj ụ'
# - 'xform ux ũ'
# - 'xform ur ủ'
# - 'xform es é'
# - 'xform ef è'
# - 'xform ej ẹ'
# - 'xform ex ẽ'
# - 'xform er ẻ'
# - 'xform os ó'
# - 'xform of ò'
# - 'xform oj ọ'
# - 'xform ox õ'
# - 'xform or ỏ'
# - 'xform ys ý'
# - 'xform yf ỳ'
# - 'xform yj ỵ'
# - 'xform yx ỹ'
# - 'xform yr ỷ'
# - 'xform f ph'
comment_format:
# - xform/^(.*)$/〔$1〕
- xform/((ⓗ|ⓥ|×).+)〕/〕$1/
# - xform/úy/uý/
# - xform/ùy/uỳ/
# - xform/ủy/uỷ/
# - xform/ụy/uỵ/
# - xform/ũy/uỹ/
- xform/(qu|k|l|h|v|m|t|s)y/$1i/
# - xform/(qu|k|l|h|v|m|t|s)ỳ/$1ì/
# - xform/(qu|k|l|h|v|m|t|s)ý/$1í/
# - xform/(qu|k|l|h|v|m|t|s)ỵ/$1ị/
# - xform/(qu|k|l|h|v|m|t|s)ỹ/$1ĩ/
# - xform/(qu|k|l|h|v|m|t|s)ỷ/$1ỉ/
reverse_lookup:
dictionary: cangjie5
enable_completion: true
prefix: "`"
suffix: "'"
tips: 〔倉頡〕
preedit_format:
- "xlit|abcdefghijklmnopqrstuvwxyz|日月金木水火土竹戈十大中一弓人心手口尸廿山女田難卜符|"
comment_format:
# - 'xform ([aeiouâăôê])(ng|nh|ch)([sfjxr]) $1$3$2'
# - 'xform ([aeiouâăôê])([iunptckmy])([sfjxr]) $1$3$2'
# - 'xform ([ae])([ou])([sfjxr]) $1$3$2'
# - 'xform (aw|ow|uw)([iunptckmy])([sfjxr]) $1$3$2'
# - 'xform (aw|ow|uw)(ng|nh|ch)([sfjxr]) $1$3$2'
# - 'xform (u|uw)(a)([sfjxr]) $1$3$2'
# - 'xform z '
# - 'xform dd đ'
# - 'xform aa â'
# - 'xform âs ấ'
# - 'xform âf ầ'
# - 'xform âj ậ'
# - 'xform âx ẫ'
# - 'xform âr ẩ'
# - 'xform aw ă'
# - 'xform ăs ắ'
# - 'xform ăf ằ'
# - 'xform ăj ặ'
# - 'xform ăx ẵ'
# - 'xform ăr ẳ'
# - 'xform oo ô'
# - 'xform ôs ố'
# - 'xform ôf ồ'
# - 'xform ôj ộ'
# - 'xform ôx ỗ'
# - 'xform ôr ổ'
# - 'xform ee ê'
# - 'xform ês ế'
# - 'xform êf ề'
# - 'xform êj ệ'
# - 'xform êx ễ'
# - 'xform êr ể'
# - 'xform uw ư'
# - 'xform ưs ứ'
# - 'xform ưf ừ'
# - 'xform ưj ự'
# - 'xform ưx ữ'
# - 'xform ưr ử'
# - 'xform ow ơ'
# - 'xform ơs ớ'
# - 'xform ơf ờ'
# - 'xform ơj ợ'
# - 'xform ơx ỡ'
# - 'xform ơr ở'
# - 'xform as á'
# - 'xform af à'
# - 'xform aj ạ'
# - 'xform ax ã'
# - 'xform ar ả'
# - 'xform is í'
# - 'xform if ì'
# - 'xform ij ị'
# - 'xform ix ĩ'
# - 'xform ir ỉ'
# - 'xform us ú'
# - 'xform uf ù'
# - 'xform uj ụ'
# - 'xform ux ũ'
# - 'xform ur ủ'
# - 'xform es é'
# - 'xform ef è'
# - 'xform ej ẹ'
# - 'xform ex ẽ'
# - 'xform er ẻ'
# - 'xform os ó'
# - 'xform of ò'
# - 'xform oj ọ'
# - 'xform ox õ'
# - 'xform or ỏ'
# - 'xform ys ý'
# - 'xform yf ỳ'
# - 'xform yj ỵ'
# - 'xform yx ỹ'
# - 'xform yr ỷ'
- xform/^(.*)$/〔$1〕
- xform/((ⓗ|ⓥ|×).+)〕/〕$1/
simplifier:
tips: all
opencc_config: hn.json
option_name: simplification
punctuator:
import_preset: default
key_binder:
import_preset: default
recognizer:
import_preset: default
patterns:
reverse_lookup: "`[a-z]*'?$"
style:
font_face: "Gothic Nguyen"
label_font_face: "Gothic Nguyen"
comment_font_face: "Gothic Nguyen"
font_point: 13
label_font_point: 11
comment_font_point: 11