-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsautungva_beta.schema.yaml
424 lines (405 loc) · 10.6 KB
/
sautungva_beta.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
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
# Rime schema
# encoding: utf-8
schema:
schema_id: sautungva_beta
name: 邵東話測試
version: "0.1"
author:
- 轀輬 <[email protected]>
description: |
「邵東話拼音魔改」,以按鍵qrwj輸入五聲(聽感近似的陰陽去聲45皆用j表示)
dependencies:
- luna_pinyin
- kana
- oldhangeul
- cyrillic
- njerchet
#, trad_tw, trad_hk
#, 臺灣 , 香港
icon: icon/ciang_khai.ico
switches:
- options: [noop, simplification]
states: [ 漢字, 汉字 ]
- options: [noop, trad_tw]
states: [ 大陸, 臺灣 ]
- name: ascii_mode
reset: 0
states: [ 中文, 西文 ]
- name: full_shape
reset: 0
states: [ 半角, 全角 ]
- name: ascii_punct
reset: 0
states: [ ,。, ,. ]
#- name: pinyin
# reset: 1
#- send: BACK
engine:
processors:
#- key_binder
- ascii_composer
- key_binder
- recognizer
#- key_binder
- speller
- punctuator
- selector
- navigator
- express_editor
segmentors:
- ascii_segmentor
- matcher
- affix_segmentor@kana
- affix_segmentor@hangeul
- affix_segmentor@cyrillic
- affix_segmentor@hannom
- abc_segmentor
- punct_segmentor
- fallback_segmentor
translators:
- punct_translator
- script_translator
- table_translator@kana
- table_translator@hangeul
- table_translator@cyrillic
- table_translator@hannom
- reverse_lookup_translator
filters:
- simplifier
- simplifier@trad_tw
- simplifier@trad_hk
#- simplifier@pinyin
- reverse_lookup_filter@luna_pinyin
- uniquifier
luna_pinyin:
dictionary: njerchet
trad_tw:
option_name: trad_tw
opencc_config: t2tw.json
tags: abc
tips: none
show_in_comment: false
trad_hk:
option_name: trad_hk
opencc_config: t2hk.json
tags: abc
tips: none
show_in_comment: false
speller:
alphabet: "zyxwvutsrqponmljkihgfedcba"
initials: abcdefghiklmnopstuvwxyz
delimiter: " '"
algebra:
#- xform/\d// # 無聲調
- xform/\|.+$// # 注释
- "derive/П//"
#- derive/ieu$/iu/
#- derive/cie/cue/
#- derive/uei$/ui/
#- derive/au$/ao/
#- derive/eu$/ou/
#- derive/^tc/yc/
#- derive/[aeiuy]n$/$1ng/
#- derive/ang$/an$/
- derive/^dz/tz/
- derive/^ts/ds/
- derive/^tc/dc/
#- derive/^tc([iy])/tx$1/
#- derive/^t/y/
#- derive/ng/nf/
#- derive/ng/nh/
#- derive/^([bpmfdtnlgkhscz])e([iu])/$1z$2/
#- derive/^([ptk])h([aeou])/$1j$2/
#- derive/^(ts)h([aeou])/$1j$2/
#- derivr/^(tc)h([iy])/$1j$2/
#- derive/^tc([iy])/ts$1/
#- derive/^tch([iy])/tsh$1/
#- derive/^ts([aeuo])/tc$1/
#- derive/^tsh([aeuo])/tch$1/
#- derive/[iy]en$/[iy]an/
- derive/([ui])ang/$1an/
- derive/(u)ng/$1n/
- derive/([aeiouy])m/$1n/
#- derive/^kh/lh/
#- derive/^([ui])/y$1/
- xform/1$/q/
- xform/2$/r/
- xform/3$/w/
- xform/[45]$/j/
- derive/[0qrwj]$//
- derive/([aieuy])n/$1b/
#- derive/^ng/bg/
- derive/liang/lia/
#- derive/([aiueo])-/$1$1/
#- "derive/\[[a-z]*\]//"
#- "derive/\[//"
#- "derive/\]//"
- fuzz/^(ts|dz|tc|tsh|tch|[tpk]h)[aeuiyo].+$/$1/
- fuzz/^([aoeiu]).+$/$1/
- fuzz/^([abcdefghikmnopstuvxz])[aeuiyo].+$/$1/
- fuzz/^y[ean].+$/y/
- fuzz/^l[aeuiyo].+$/l/
#- derive/^(ts|dz|tc|tsh|tch|ph|th|kh)([aoeiuy]).+$/$1/
#- derive/^([aoeiuy]).+$/$1/
#- derive/^([abcdefghiklmnopstuvxyz])([aoeiuy]).+$/$1/
translator:
dictionary: sautungva
spelling_hints: false
prism: sautungva_beta
preedit_format:
- xform/\|.+$// # 注释
- xform/s([aoeu])/с$1/
- xform/z([aoeu])/з$1/
- xform/tsh([aoeu])/ц$1/
- xform/ng/ŋ̍/
- xform/ŋ̍([ao])/ŋ$1/
- xform/([aoeiuy])ŋ̍/$1ŋ/
- xform/m/m̍/
- xform/m̍([aoeiu])/m$1/
- xform/([aoeiuy])n/$1н/
- xform/([aoeiuy])m̍/$1m/
- xform/ni/ȵi/
- xform/n/n̍/
- xform/([ktp]|ts|tc)h/$1ʰ/
- xform/([aoeiuy])k/$1k̚/
- xform/([aoeiuy])t/$1t̚/
- xform/([aoeiuy])p/$1p̚/
- xform/eн/ən/
- xform/([iy])ən/$1en/
- xform/eu/əɯ/
- xform/au/aɯ/
- xform/ei/еi/
- xform/e/ɛ/
- xform/c/ɕ/
- xform/z([iy])/ʑ$1/
- xform/н/n/
- xform/е/e/
- xform/([sz])/$1ɿ/
- xform/ɿʰ/ʰɿ/
- xform/h/ɣ/
- xform/с/s/
- xform/з/z/
- xform/ц/tsʰ/
comment_format:
#- xform/\|.+$// # 注释
- xform/s([aoeu])/с$1/
- xform/z([aoeu])/з$1/
- xform/tsh([aoeu])/ц$1/
- xform/ng/ŋ̍/
- xform/ŋ̍([ao])/ŋ$1/
- xform/([aoeiuy])ŋ̍/$1ŋ/
- xform/m/m̍/
- xform/m̍([aoeiu])/m$1/
- xform/([aoeiuy])n/$1н/
- xform/([aoeiuy])m̍/$1m/
- xform/ni/ȵi/
- xform/n/n̍/
- xform/([ktp]|ts|tc)h/$1ʰ/
- xform/([aoeiuy])k/$1k̚/
- xform/([aoeiuy])t/$1t̚/
- xform/([aoeiuy])p/$1p̚/
- xform/eн/ən/
- xform/([iy])ən/$1en/
- xform/eu/əɯ/
- xform/au/aɯ/
- xform/ei/еi/
- xform/e/ɛ/
- xform/c/ɕ/
- xform/z([iy])/ʑ$1/
- xform/н/n/
- xform/е/e/
- xform/([sz])/$1ɿ/
- xform/ɿʰ/ʰɿ/
- xform/h/ɣ/
- xform/с/s/
- xform/з/z/
- xform/ц/tsʰ/
- xform/0/⁵/
- xform/1/⁵⁵/ # ꜀
- xform/2/¹²/ # ꜁
- xform/3/³²/ # ꜂
- xform/4/³⁵/ # ꜄
- xform/5/²⁴/ # ꜅
- xform/П/普/
kana:
tag: kana
dictionary: japanese
spelling_hints: 10
#enable_user_dict: false
prefix: 'j'
suffix: "'"
tips: 〔假名〕
closing_tips: 〔邵東話〕
hangeul:
tag: hangeul
dictionary: oldhangeul
spelling_hints: 10
enable_user_dict: false
prefix: 'w'
suffix: "'"
tips: 〔諺文〕
closing_tips: 〔邵東話〕
preedit_format:
- "xlit|qwertyuiopasdfghjklzxcvbnmQWERTYADFGZXCV|ㅂㅈㄷㄱㅅㅿㅛㅕㅑㆍㅁㄴㅇㄹㅎㅗㅓㅏㅣㅋㅌㅊㅍㅠㅜㅡᄫᅎᅐДᄼᄾㅱㆁᄛㆆдᅔᅕᅗ|"
cyrillic:
tag: cyrillic
dictionary: cyrillic
spelling_hints: 10
enable_user_dict: false
prefix: 'r'
suffix: "'"
tips: 〔西方字母〕
closing_tips: 〔邵東話〕
hannom:
tag: hannom
dictionary: newhannom
spelling_hints: 10
enable_user_dict: false
prefix: 'q'
suffix: "'"
tips: 〔漢喃〕
closing_tips: 〔邵東話〕
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 (huy)(nh)([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: luna_pinyin
prefix: "`"
suffix: "'"
tips: 〔拼音〕
preedit_format:
- xform/([nl])v/$1ü/
- xform/([nl])ue/$1üe/
- xform/([jqxy])v/$1u/
#pinyin:
# opencc_config: pinyin.json
# option_name: pinyin
# show_in_comment: true
# comment_format:
# - xform/ / /
# tags:
# - abc
# tips: all
punctuator:
import_preset: default
key_binder:
import_preset: default
bindings:
#- { when: always, accept: minus, send: minus }
#- { when: always, accept: semicolon, send: m }
#- { when: always, accept: colon, send: M }
#- { when: always, accept: m, send: semicolon }
#- { when: always, accept: M, send: colon }
#- { when: always, accept: q, send: a }
#- { when: always, accept: a, send: q }
#- { when: always, accept: w, send: z }
#- { when: always, accept: z, send: w }
#- { when: always, accept: Q, send: A }
#- { when: always, accept: A, send: Q }
#- { when: always, accept: W, send: Z }
#- { when: always, accept: Z, send: W }
#- { when: always, accept: Shift_L+semicolon, send: M }
#- { when: has_menu, accept: Shift_L, send: commit }
#- { when: paging, accept: minus, send: Page_Up }
#- { when: has_menu, accept: equal, send: Page_Down}
recognizer:
import_preset: default
patterns:
reverse_lookup: "^`[abcdefghijklmnopqrestuvwxyz]*'?$"
kana: "^j[abcdefghijkmnopqrestuwxyz]*'?$"
hangeul: "^w[abcdefghijklmnopqrestuvwxyzQWERTYADFGZXCV]*'?$"
cyrillic: "^r[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]*'?$"
hannom: "^q[abcdefghijklmnopqrestuvwxyz]*'?$"