-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathzyujam.schema.yaml
153 lines (144 loc) · 3.4 KB
/
zyujam.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
# Rime schema
# encoding: utf-8
schema:
schema_id: zyujam
name: 粵語注音
version: "0.1"
author:
- Andrew D. M. PARKE
- 雪齋
description: |
基於國語和臺語註音方案製作
dependencies:
- luna_pinyin
switches:
- name: ascii_mode
reset: 0
states: [ 中文, 西文 ]
- name: full_shape
states: [ 半角, 全角 ]
- name: ascii_punct
states: [ ,。, ,. ]
- name: simplification
states: [ 漢字, 汉字 ]
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
- script_translator
- reverse_lookup_translator
filters:
- simplifier
- uniquifie
- cjk_minifierr
speller:
alphabet: zyxwvutsrqponmlkjihgfedcba
initials: zwutsponmlkjihgfdcba
delimiter: " '"
algebra:
- derive/^jy?([aeiou])/y$1/ # 容錯 je -> ye, jyu -> yu
- derive/^jyu/ju/ # 容錯 jyu -> ju
- derive/yu/y/ # 教院式 jyu -> jy
- derive/eoi$/oey/ # 教院式
- derive/eoi$/eoy/ # 容錯
- derive/eo/oe/ # 教院式
- derive/oe(ng|k)$/eo$1/ # 容錯
- derive/aa$/a/ # 容錯
- abbrev/^([a-z]).+$/$1/ # 首字母簡拼
- derive/^z/dz/ # 教院式
- derive/^c/ts/ # 教院式
- abbrev/^(ng).+$/$1/ # 聲母簡拼
- abbrev/^([gk]w).+$/$1/ # 聲母簡拼
- abbrev/^(dz).+$/$1/ # 聲母簡拼
- abbrev/^(ts).+$/$1/ # 聲母簡拼
translator:
dictionary: jyutping
spelling_hints: 5
preedit_format: &transform
- xform/([ptk])1/$17/
- xform/([ptk])3/$18/
- xform/([ptk])6/$19/
- xform/([aoeiuy])t/$1n0/
- xform/([aoeiuy])k/$1ng0/
- xform/([aoeiuy])p/$1m0/
- xform/0(\d)/$1/
- xform/m([aoeiuy])/ㄇ$1/
- xform/ng([aoeiuy])/ㄫ$1/
- xform/n([aoeiuy])/ㄋ$1/
- xform/gw/ㄬ/
- xform/kw/ㄪ/
- xform/(eo|oe)(ng)/ㄜ$2/
- xform/(eo|oe)n/ㆤ/
- xform/(eo|oe)[iy]/ㄦ/
- xform/(eo|oe)/ㄜ/
- xform/aa/ㄚ/
- xform/ai/ㄞ/
- xform/au/ㄠ/
- xform/am/ㆰ/
- xform/ang/ㄤ/
- xform/an/ㄢ/
- xform/om/ㆱ/
- xform/ou/ㄡ/
- xform/ei/ㄟ/
- xform/ing/ㆭ/
- xform/ung/ㆲ/
- xform/o/ㄛ/
- xform/e/ㄝ/
- xform/(j?yu|j[yu])/ㄩ/
- xform/([a-z])y/$1ㄩ/
- xform/[jyi]i?/ㄧ/
- xform/(wu?|u)/ㄨ/
- xform/a/ㄚ/
- xform/m/ㆬ/
- xform/ng/ㄥ/
- xform/n/ㄣ/
- xform/b/ㄅ/
- xform/p/ㄆ/
- xform/f/ㄈ/
- xform/d/ㄉ/
- xform/t/ㄊ/
- xform/l/ㄌ/
- xform/g/ㄍ/
- xform/k/ㄎ/
- xform/h/ㄏ/
- xform/zh/ㄓ/
- xform/ch/ㄔ/
- xform/sh/ㄕ/
- xform/d?z/ㄗ/
- xform/(ts|c)/ㄘ/
- xform/s/ㄙ/
- xlit|123456789|‾⸍–⸜⸝_˙‧․|
- "xform/0/\u309A/"
comment_format: *transform
reverse_lookup:
dictionary: luna_pinyin
prefix: "`"
suffix: "'"
tips: 〔拼音〕
preedit_format:
- xform/([nl])v/$1ü/
- xform/([nl])ue/$1üe/
- xform/([jqxy])v/$1u/
comment_format: *transform
punctuator:
import_preset: default
key_binder:
import_preset: default
recognizer:
import_preset: default
patterns:
reverse_lookup: "`[a-z]*'?$"