forked from amorphobia/rime-quad
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathquad.schema.yaml
230 lines (219 loc) · 5.05 KB
/
quad.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
# Rime schema
# encoding: utf-8
schema:
schema_id: quad
name: 四格双拼
version: "1.0.0"
author:
- fkxxyz (四叶草拼音词库)
- 吅吅大牛 (格道17键双拼布局)
- 四季的風 (五笔画输入方案)
- 雪齋 (五笔画输入方案)
- Kunki Chou (五笔画输入方案)
- amorphobia
description: |
四格声笔
由四叶草拼音的强大词库、格道17键双拼布局、以及五笔画辅码共同驱动
dependencies:
- stroke
switches:
- name: ascii_mode
reset: 0
states: [ "中", "英" ]
- name: full_shape
states: [ "半", "全" ]
- name: zh_simp_s2t
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:
- punct_translator
- script_translator
filters:
- simplifier
- uniquifier
- lua_filter@quad_filter
speller:
alphabet: "zscfwmldynjtpqgbxviu"
initials: "zscfwmldynjtpqgbx"
delimiter: " '"
algebra:
- xform/^([jqxy])u$/$1v
- xform/^zh/Z/
- xform/^sh/S/
- xform/^ch/C/
- xform/^z/F/
- xform/^s/W/
- xform/^c/M/
- xform/^h/N/
- xform/^r/T/
- xform/^k/P/
- xform/^([aoe])([iounr])/Q$1$2/
- xform/^([aoe])(ng?)?/Q$1$2/
- xform/iang/Z/
- xform/uang/Q/
- xform/ang/F/
- xform/ian/Q/
- xform/uan/M/
- xform/an/W/
- xform/uai/P/
- xform/ai/L/
- xform/iao/X/
- xform/ao/B/
- xform/ia/C/
- xform/ua/F/
- xform/a/C/
- xform/iong/B/
- xform/ong/T/
- xform/ou/X/
- xform/uo/Y/
- xform/o/M/
- xform/eng/S/
- xform/en/Z/
- xform/ei/P/
- xform/er/F/
- xform/ie/S/
- xform/ue/L/
- xform/e/N/
- xform/ing/Y/
- xform/in/G/
- xform/iu/T/
- xform/ui/G/
- xform/i/J/
- xform/un/P/
- xform/u/D/
- xform/v/M/
- xlit/ZSCFWMLDYNJTPQGBX/zscfwmldynjtpqgbx/
- derive/^([zscfwmldynjtpqgbx]{2})/$1v/
- derive/^([zscfwmldynjtpqgbx]{2})/$1i/
- derive/^([zscfwmldynjtpqgbx]{2})/$1u/
- derive/^([zscfwmldynjtpqgbx]{2}[viu])/$1v/
- derive/^([zscfwmldynjtpqgbx]{2}[viu])/$1i/
- derive/^([zscfwmldynjtpqgbx]{2}[viu])/$1u/
- derive/^([zscfwmldynjtpqgbx]{2}[viu]{2})/$1v/
- derive/^([zscfwmldynjtpqgbx]{2}[viu]{2})/$1i/
- derive/^([zscfwmldynjtpqgbx]{2}[viu]{2})/$1u/
- derive/^([zscfwmldynjtpqgbx]{2}[viu]{3})/$1v/
- derive/^([zscfwmldynjtpqgbx]{2}[viu]{3})/$1i/
- derive/^([zscfwmldynjtpqgbx]{2}[viu]{3})/$1u/
- derive/^([zscfwmldynjtpqgbx]{2}[viu]{4})/$1v/
- derive/^([zscfwmldynjtpqgbx]{2}[viu]{4})/$1i/
- derive/^([zscfwmldynjtpqgbx]{2}[viu]{4})/$1u/
translator:
dictionary: quad
prism: quad
enable_sentence: true
enable_user_dict: true
enable_encoder: true
enable_commit_history: true
enable_completion: true
db_class: tabledb
preedit_format:
- xform/([bdgly])b/$1ao/
- xform/([csz])b/$1hao/
- xform/([jx])b/$1iong/
- xform/fb/zao/
- xform/wb/sao/
# mnpqt + b
- xform/([bglty])c/$1a/
- xform/([csz])c/$1ha/
- xform/([jx])c/$1ia/
# dfmnpqw + c
- xform/([bdgl])d/$1u/
- xform/([csz])d/$1hu/
# fmnptw + d
- xform/([bdly])f/$1ang/
# cfgmnpqstwz + f
- xform/([bjlqxy])g/$1in/
- xform/([dg])g/$1ui/
- xform/([csz])g/$1hui/
- xform/fg/zui/
- xform/wg/sui/
# mnpt + g
- xform/([bdjlnpqxy])j/$1i/
- xform/([csz])j/$1hi/
- xform/fj/zi/
- xform/wj/si/
# mt + j
- xform/([bdgt])l/$1ai/
- xform/([csz])l/$1hai/
- xform/([jxy])l/$1ue/
- xform/fl/zai/
# lmnpqw + l
- xform/bm/bo/
- xform/([dg])m/$1uan/
- xform/([csz])m/$1huan/
# fjlmnpqtwxy + m
- xform/([dgly])n/$1e/
- xform/([csz])n/$1he/
- xform/fn/ze/
- xform/pn/ke/
- xform/qn/e/
- xform/wn/se/
# mnt + n
- xform/bp/bei/
- xform/([jxy])p/$1un/
# cdfglmnpqstwz + p
- xform/([bdjlmqtx])q/$1ian/
- xform/([csz])q/$1huang/
- xform/gq/guang/
# np + q
- xform/([csz])s/$1heng/
- xform/gs/geng/
- xform/([jx])s/$1ie/
# bdflmnpqtw + s
- xform/([gy])t/$1ong/
- xform/([cz])t/$1hong/
- xform/([qx])t/$1iu/
- xform/ft/zong/
- xform/pt/kong/
- xform/wt/song/
# dlmnt + t
- xform/([bdgly])w/$1an/
- xform/([csz])w/$1han/
- xform/qw/an/
# fmnptw + w
- xform/([bjx])x/$1iao/
- xform/([gy])x/$1ou/
- xform/([csz])x/$1hou/
- xform/wx/sou/
# dflmnpqt + x
- xform/([bjqxy])y/$1ing/
- xform/([csz])y/$1huo/
- xform/fy/zuo/
- xform/gy/guo/
- xform/wy/suo/
# dlmnpt + y
- xform/([dg])z/$1en/
- xform/([csz])z/$1hen/
- xform/([jlx])z/$1iang/
- xform/tz/ren/
# bfmnpqw + z
punctuator:
import_preset: default
key_binder:
import_preset: default
simplifier:
option_name: zh_simp_s2t
opencc_config: s2t.json
recodnizer:
import_preset: default
menu:
page_size: 9
style:
theme_name: quad