-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgryihleng_double_hamster.schema.yaml
More file actions
220 lines (210 loc) · 4.99 KB
/
gryihleng_double_hamster.schema.yaml
File metadata and controls
220 lines (210 loc) · 4.99 KB
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
# Rime schema
# encoding: utf-8
schema:
schema_id: gryihleng_double_hamster
name: "諧聲雙拼"
version: "2024.11.17"
author:
- 亓 <ziqiphyzhou@gmail.com>
dependencies:
- luna_pinyin # 或者任何其它字典,請修改reverse_lookup
# updates replace the header until here
switches:
- name: ascii_mode
reset: 0
states: ["中文", "西文"]
- name: full_shape
reset: 0
states: ["半角", "全角"]
- name: simplification
reset: 0
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:
- echo_translator
- punct_translator
- script_translator
- reverse_lookup_translator
filters:
- simplifier
- uniquifier
speller:
delimiter: " '"
alphabet: "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
algebra: # do not change the processing order
- xform/ng/v/ # for convenience
- xform/A/3/ # for convenience
- xform/B/5/ # for convenience
- xform/[14]/1/ # for convenience
- xform/(?<!\w)h/x/ # for convenience
- xform/(?<!\w)l/j/ # for convenience
# 合口色彩的來源模糊韻
- derive/([pb]h?\d)uv/$1ym/
- derive/([skgxqv]h?)(\d)u([itn])/$1w$2y$3/
- derive/([skgxqv]h?)(\d)o([itn])/$1w$2a$3/
- derive/([skgxqv]h?)(\d)([uo])([itn])/$1w$2$3$4/
- derive/g(w[12][ya][itn])/$1/
# 韻母
- xform/yk/Y/
- xform/ak/H/
- xform/ek/N/
- xform/yv/T/
- xform/av/G/
- xform/ev/B/
- xform/uv/Q/
- xform/ov/A/
- xform/[ea]uk?/Z/
- xform/yi/I/
- xform/ai/L/
- xform/[uo][it]/X/
- xform/[iy]t|([12])et/$1U/
- xform/at|([35])et/$1J/
- xform/[iy]n|([12])en/$1E/
- xform/an|([35])en/$1D/
- xform/[uo]n/C/
- xform/[iy]p|([12])ep/$1O/
- xform/ap|([35])ep/$1K/
- xform/[iy]m|([12])em/$1P/
- xform/am|([35])em/$1M/
- xform/y/R/
- xform/i?a/F/
- xform/i?uk?/W/
- xform/ok?/S/
- xform/e/V/
- xform/i/I/
#聲母
- xform/(m|d)l\d/I/
- xform/[pb]h?1/O/
- xform/[pb]h?[35]/K/
- xform/[pb]h?2/P/
- xform/m[h]?\d/A/
- xform/[kg]h?l?1/Y/
- xform/[kg]h?l?[35]/H/
- xform/[kg]h?l?2/N/
- derive/xl?\d/C/ # 曉母額外可選按鍵
- xform/xl?\d/Z/
- xform/q\d/Q/
- xform/vh?\d/E/
- xform/[skgxqv]?h?w1/W/
- xform/[skgxqv]?h?w[35]/S/
- xform/[skgxqv]?h?w2/X/
- xform/jh?\d/I/
- xform/r\d/L/ # must preceed processing "t" and "s"
- xform/[td]h?1/U/
- xform/[td]h?3/J/
- xform/[td]h?[25]/M/
- xform/nh?\d/D/
- xform/[cz]h?1/T/
- xform/[cz]h?3/G/
- xform/[cz]h?[25]/B/
- xform/s[lt]?1/R/
- xform/s[lt]?3/F/
- xform/s[25]/V/
- "xlit|ABCDEFGHIJKLMNOPQRSTUVWXYZ|abcdefghijklmnopqrstuvwxyz|"
- abbrev/^([a-z]).$/\U$1/ # 簡拼(首字母)
translator:
dictionary: gryihleng
prism: gryihleng_double
preedit_format:
- xform/([A-Z])/\L$1;/
- xform/(^|[ '])q/$1ʔ/
- xform/(^|[ '])a/$1M/
- xform/(^|[ '])z/$1H/
- xform/(^|[ '])w/$1Wˁ/
- xform/(^|[ '])s/$1W/
- xform/(^|[ '])x/$1Wʳ/
- xform/(^|[ '])e/$1Ŋ/
- xform/(^|[ '])d/$1N/
- xform/(^|[ '])c/$1H/
- xform/(^|[ '])r/$1Sˁ/
- xform/(^|[ '])f/$1S/
- xform/(^|[ '])v/$1Sʳ/
- xform/(^|[ '])t/$1Cˁ/
- xform/(^|[ '])g/$1C/
- xform/(^|[ '])b/$1Cʳ/
- xform/(^|[ '])y/$1Kˁ/
- xform/(^|[ '])h/$1K/
- xform/(^|[ '])n/$1Kʳ/
- xform/(^|[ '])u/$1Tˁ/
- xform/(^|[ '])j/$1T/
- xform/(^|[ '])m/$1Tʳ/
- xform/(^|[ '])i/$1L/
- xform/(^|[ '])k/$1P/
- xform/(^|[ '])o/$1Pˁ/
- xform/(^|[ '])l/$1R/
- xform/(^|[ '])p/$1Pʳ/
- xform/q/UŊ/
- xform/a/OŊ/
- xform/z/AU/
- xform/w/U/
- xform/s/O/
- xform/x/UI/
- xform/e/ƏN/
- xform/d/AN/
- xform/c/UN/
- xform/r/Ə/
- xform/f/A/
- xform/v/E/
- xform/t/ƏŊ/
- xform/g/AŊ/
- xform/b/EŊ/
- xform/y/ƏK/
- xform/h/AK/
- xform/n/EK/
- xform/u/ƏT/
- xform/j/AT/
- xform/m/AM/
- xform/i/I/
- xform/k/AP/
- xform/o/ƏP/
- xform/l/AI/
- xform/p/ƏM/
- xform/;/-/
- "xlit|ABCDEFGHIJKLMNOPQRSTUVWXYZƏŊ|abcdefghijklmnopqrstuvwxyzəŋ|"
menu:
page_size: 10
reverse_lookup:
dictionary: luna_pinyin
comment_format:
- xform/ng/ŋ/
- xform/q/ʔ/
- xform/dl/ɦl/
- xform/(kh?|g|h)l/$1ˡ/
- xform/([pmkŋwlrtnc])h/$1ʰ/
- xform/([kghʰʔŋ])w/$1ʷ/
- xform/A//
- xform/B/ʳ/
- xform/[14]/ˁ/
- xform/2/ʳˁ/
- xlit/y/ə/
preedit_format:
- "xform/([nl])v/$1ü/"
- "xform/([nl])ue/$1üe/"
- "xform/([jqxy])v/$1u/"
prefix: "`"
suffix: "'"
prism: luna_pinyin
tips: "〔拼音〕"
punctuator:
import_preset: default
key_binder:
import_preset: default
recognizer:
import_preset: default
patterns:
reverse_lookup: "`[a-z]*'?$"