forked from gaboolic/rime-shuangpin-fuzhuma
-
Notifications
You must be signed in to change notification settings - Fork 0
/
flypy_flypy.schema.yaml
executable file
·274 lines (253 loc) · 11.7 KB
/
flypy_flypy.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
# Rime schema
# encoding: utf-8
# https://github.com/gaboolic/rime-shuangpin-fuzhuma
schema:
schema_id: flypy_flypy
name: 鹤形+小鹤双拼
version: "2024-04-24"
author:
- Functoreality
- Dvel
- gaboolic (裁缝)
description: |
小鹤双拼+辅助码 只支持8000字左右 https://github.com/gaboolic/rime-shuangpin-fuzhuma
dependencies:
- reverse_moqima
- radical_flypy
- stroke
- zrlf
- emoji
- easy_en
- jp_sela
__include: moqi.yaml:/switches_engine
__include: moqi.yaml:/phrase # 置顶
__include: moqi.yaml:/reverse #反查配置
__include: moqi.yaml:/opencc_config # 拆分 英汉互译 火星文
__include: moqi.yaml:/punctuator # 标点
__include: moqi.yaml:/guide # 引导前缀配置
speller:
max_code_length: 5
# table_translator翻译器,支持自动上屏。例如 “zmhu”可以自动上屏“怎么回事”
auto_select: true
auto_select_pattern: ^[a-z]+/|^[a-df-zA-DF-Z]\w{3}|^e\w{4}
# 如果不想让什么标点直接上屏,可以加在 alphabet,或者编辑标点符号为两个及以上的映射
alphabet: zyxwvutsrqponmlkjihgfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA[/|
# initials 定义仅作为始码的按键,排除 ` 让单个的 ` 可以直接上屏
initials: zyxwvutsrqponmlkjihgfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA
# 第一位<空格>是拼音之间的分隔符;第二位<'>表示可以手动输入单引号来分割拼音。
delimiter: " '"
## speller 未允许 aj 表示 an
algebra:
# 这一段是为了支持加载全拼词库
# - xform/^([aoe])$/$1$1/
# - xform/^(ang)$/ah/
# - xform/^([^\[]*)iu$/$1Q/
# - xform/^([^\[]*)ei$/$1W/
# - xform/uan$/R/
# - xform/^([^\[]*)[uv]e$/$1T/
# - xform/^([^\[]*)un$/$1Y/
# - xform/^sh([^\[]+)/U$1/
# - xform/^ch([^\[]+)/I$1/
# - xform/^zh([^\[]+)/V$1/
# - xform/^([^\[]*)uo$/$1O/
# - xform/^([^\[]*)ie$/$1P/
# - xform/i?ong$/S/
# - xform/ing$|uai$/K/
# - xform/^([^\[]+)ai$/$1D/
# - xform/^([^\[]+)en$/$1F/
# - xform/^([^\[]+)eng$/$1G/
# - xform/[iu]ang$/L/
# - xform/(.)ang$/$1H/
# - xform/^([^\[]*)ian$/$1M/
# - xform/^([^\[]+)an$/$1J/
# - xform/^([^\[]+)ou$/$1Z/
# - xform/^([^\[]*)[iu]a$/$1X/
# - xform/^([^\[]*)iao$/$1N/
# - xform/^([^\[]+)ao$/$1C/
# - xform/^([^\[]*)ui$/$1V/
# - xform/^([^\[]*)in$/$1B/
# - xlit/QWRTYUIOPSDFGHJKLZXCVBNM/qwrtyuiopsdfghjklzxcvbnm/
# 模糊音 可选择性开启
# - derive/^z([a-z])/v$1/
# - derive/^c([a-z])/i$1/
# - derive/^s([a-z])/u$1/
# - derive/^v([a-z])/z$1/
# - derive/^i([a-z])/c$1/
# - derive/^u([a-z])/s$1/
# - derive/^([jqxy])u/$1v/ # 开启jv=ju的模式
- derive|^(.+)[[](\w)(\w)$|$1| # 纯双拼的情况
- derive|^(.+)[[](\w)(\w)$|$1$2| # 双拼+一位辅助码的情况
- derive|^(.+)[[](\w)(\w)$|$1[$2| # 双拼+[一位辅助码的情况
- abbrev|^(.+)[[](\w)(\w)$|$1$2$3| # 双拼+2位辅助码的情况,abbrev类型不可以整句内输入2位辅助码,必须加o或/
- derive|^(.+)[[](\w)(\w)$|$1$2$3o| # 整句模式下,输入syffo 出单字 增强单字性能
- derive|^(.+)[[](\w)(\w)$|$1$2$3/| # 整句模式下,输入syff/ 出单字 增强单字性能
# - derive/[[]// ## 取消注释后:直接引导2位辅助码;否则只能引导1位辅助码或者2位辅助码加/
## 飞键 可选择性开启
- derive/^([y])j/$1f/
- derive/^qx/qw/
- derive/^xq/xo/
- derive/^qq/qo/
- derive/^ww/wi/
- derive/^y([a-df-qs-z])/e$1/ # y -> e互击
- derive/^j([a-twyz])/f$1/ # j -> f互击
# - derive/^jn/jv/
# - derive/^mn/mv/
# - derive/^jm/jz/
- derive/^([y])h/$1g/
# - derive/^([rgv])f/$1m/
- derive/^([rgv])c/$1n/
user_dict_set:
dictionary: flypy_flypy.extended
initial_quality: 0
enable_completion: false
enable_sentence: false
## 默认为不超过 2 个字的候选项显示输入码;将 2 改为 0 可关闭编码提示,
## 改为 1 则是只显示单字的输入码,依此类推。
spelling_hints: 1
comment_format:
- "xform/(^|[ '])[^[]+[[]/$1/" ## 编码提示只显示辅助码部分
enable_user_dict: true # 是否开启自动调频
user_dict: user_ff.custom.dict
db_class: tabledb
# 自定义词典加词(ac引导)
add_user_dict:
tag: add_user_dict
dictionary: flypy_flypy.extended
initial_quality: -1
user_dict: user_ff.custom.dict
# ↓ 用户词典格式,tabledb(文本) 或 userdb (二进制)。
db_class: tabledb
enable_charset_filter: false
enable_completion: true
enable_encoder: true
enable_sentence: true
enable_user_dict: true
encode_commit_history: false
preedit_format:
comment_format:
- "xform/(^|[ '])[^[]+[[]/$1/" ## 编码提示只显示辅助码部分
prefix: "ac"
tips: "〔自造词〕"
translator:
dictionary: flypy_flypy.extended
initial_quality: 10000
enable_completion: false
## 默认为不超过 2 个字的候选项显示输入码;将 2 改为 0 可关闭编码提示,
## 改为 1 则是只显示单字的输入码,依此类推。
spelling_hints: 1
comment_format:
- "xform/(^|[ '])[^[]+[[]/$1/" ## 编码提示只显示辅助码部分
enable_user_dict: false # 是否开启自动调频
preedit_format:
# 复制用户输入, 一份转大写保持原样, 一份由正则转为全拼显示
# - xform/(^.*$)/\U$1\E\t => $1 <=/
# # 小鹤双拼转全拼, 忽略辅码
# - xform/([ '][aoe])(\w)\w{0,2}/$1$2/
# - xform/([ ']\w)([aeiou])\w{0,2}/$1$2/
# - xform/([ '][bpmfdtnljqx])n\w{0,2}/$1iao/
# - xform/([ ']\w)g\w{0,2}/$1eng/
# - xform/([ ']\w)q\w{0,2}/$1iu/
# - xform/([ ']\w)w\w{0,2}/$1ei/
# - xform/([ '][dtnlgkhjqxyvuirzcs])r\w{0,2}/$1uan/
# - xform/([ ']\w)t\w{0,2}/$1ve/
# - xform/([ ']\w)y\w{0,2}/$1un/
# - xform/([ '][dtnlgkhvuirzcs])o\w{0,2}/$1uo/
# - xform/([ ']\w)p\w{0,2}/$1ie/
# - xform/([ '][jqx])s\w{0,2}/$1iong/
# - xform/([ ']\w)s\w{0,2}/$1ong/
# - xform/([ ']\w)d\w{0,2}/$1ai/
# - xform/([ ']\w)f\w{0,2}/$1en/
# - xform/([ ']\w)h\w{0,2}/$1ang/
# - xform/([ ']\w)j\w{0,2}/$1an/
# - xform/([ '][gkhvuirzcs])k\w{0,2}/$1uai/
# - xform/([ ']\w)k\w{0,2}/$1ing/
# - xform/([ '][jqxnl])l\w{0,2}/$1iang/
# - xform/([ ']\w)l\w{0,2}/$1uang/
# - xform/([ ']\w)z\w{0,2}/$1ou/
# - xform/([ '][gkhvuirzcs])x\w{0,2}/$1ua/
# - xform/([ ']\w)x\w{0,2}/$1ia/
# - xform/([ ']\w)c\w{0,2}/$1ao/
# - xform/([ '][dtgkhvuirzcs])v\w{0,2}/$1ui/
# - xform/([ ']\w)b\w{0,2}/$1in/
# - xform/([ ']\w)m\w{0,2}/$1ian/
# - "xform/(^|[ '])v/$1zh/"
# - "xform/(^|[ '])i/$1ch/"
# - "xform/(^|[ '])u/$1sh/"
# - xform/([ '][jqxy])v\w{0,2}/$1u/
# - xform/([ '][nl])v\w{0,2}/$1ü/
# # 双拼编码大写转回小写
# - xform/(^[^a-z=<>]*)/\L$1\E/
# - xform/=> */[/
# - xform/ *<=/]/
reverse_lookup:
tags: [ reverse_moqima,radical_flypy,reverse_stroke,reverse_zrlf,reverse_cj]
overwrite_comment: true
dictionary: flypy_flypy.extended # 提示码词表
# 快捷键
key_binder:
import_preset: default
bindings:
#- { when: composing, accept: Tab, send: '[' } ## 取消注释后:tab引导辅助码
- { when: composing, accept: Control+m, send: Return }
- { when: composing, accept: Control+w, send: Control+BackSpace }
- { when: has_menu, accept: semicolon, send: 2 }
# - { when: has_menu, accept: slash, send: 3 } # 用/进行选3
- { when: composing, accept: Control+i, send: Shift+Right }
- { when: composing, accept: Control+o, send: Shift+Left }
- { when: has_menu, accept: "Control+e", toggle: chinese_english }
- { match: "[a-z]{1,3}", accept: Tab, send_sequence: "/1" }
- { match: "[a-z]{1,3}", accept: "/", send_sequence: "/1" }
- { match: "[a-z]{1,3}", accept: ".", send_sequence: "/1" }
# - { when: composing, match: "[a-z]{2}", accept: Tab, send: '|' }
## 启用光标回退至特定音节后、补充辅助码的功能。补充完辅助码后,可以再按一次tab回到整句检查
- { when: composing, accept: Control+1, send_sequence: '{Home}{Shift+Right}[' }
- { when: composing, accept: Control+2, send_sequence: '{Home}{Shift+Right}{Shift+Right}[' }
- { when: composing, accept: Control+3, send_sequence: '{Home}{Shift+Right}{Shift+Right}{Shift+Right}[' }
- { when: composing, accept: Control+4, send_sequence: '{Home}{Shift+Right}{Shift+Right}{Shift+Right}{Shift+Right}[' }
- { when: composing, accept: Control+5, send_sequence: '{Home}{Shift+Right}{Shift+Right}{Shift+Right}{Shift+Right}{Shift+Right}[' }
- { when: composing, accept: Control+6, send_sequence: '{Home}{Shift+Right}{Shift+Right}{Shift+Right}{Shift+Right}{Shift+Right}{Shift+Right}[' }
- { when: composing, accept: Control+7, send_sequence: '{Home}{Shift+Right}{Shift+Right}{Shift+Right}{Shift+Right}{Shift+Right}{Shift+Right}{Shift+Right}[' }
# 大写辅助码加到整句第一个音节,例如iuyyfw默认是楚云飞,按下shift+u (iuu yy fw)变成出运费
- { when: has_menu, accept: Shift+A, send_sequence: "{Shift+Right}a{Shift+Right}" }
- { when: has_menu, accept: Shift+B, send_sequence: "{Shift+Right}b{Shift+Right}" }
- { when: has_menu, accept: Shift+C, send_sequence: "{Shift+Right}c{Shift+Right}" }
- { when: has_menu, accept: Shift+D, send_sequence: "{Shift+Right}d{Shift+Right}" }
- { when: has_menu, accept: Shift+E, send_sequence: "{Shift+Right}e{Shift+Right}" }
- { when: has_menu, accept: Shift+F, send_sequence: "{Shift+Right}f{Shift+Right}" }
- { when: has_menu, accept: Shift+G, send_sequence: "{Shift+Right}g{Shift+Right}" }
- { when: has_menu, accept: Shift+H, send_sequence: "{Shift+Right}h{Shift+Right}" }
- { when: has_menu, accept: Shift+I, send_sequence: "{Shift+Right}i{Shift+Right}" }
- { when: has_menu, accept: Shift+J, send_sequence: "{Shift+Right}j{Shift+Right}" }
- { when: has_menu, accept: Shift+K, send_sequence: "{Shift+Right}k{Shift+Right}" }
- { when: has_menu, accept: Shift+L, send_sequence: "{Shift+Right}l{Shift+Right}" }
- { when: has_menu, accept: Shift+M, send_sequence: "{Shift+Right}m{Shift+Right}" }
- { when: has_menu, accept: Shift+N, send_sequence: "{Shift+Right}n{Shift+Right}" }
- { when: has_menu, accept: Shift+O, send_sequence: "{Shift+Right}o{Shift+Right}" }
- { when: has_menu, accept: Shift+P, send_sequence: "{Shift+Right}p{Shift+Right}" }
- { when: has_menu, accept: Shift+Q, send_sequence: "{Shift+Right}q{Shift+Right}" }
- { when: has_menu, accept: Shift+R, send_sequence: "{Shift+Right}r{Shift+Right}" }
- { when: has_menu, accept: Shift+S, send_sequence: "{Shift+Right}s{Shift+Right}" }
- { when: has_menu, accept: Shift+T, send_sequence: "{Shift+Right}t{Shift+Right}" }
- { when: has_menu, accept: Shift+U, send_sequence: "{Shift+Right}u{Shift+Right}" }
- { when: has_menu, accept: Shift+V, send_sequence: "{Shift+Right}v{Shift+Right}" }
- { when: has_menu, accept: Shift+W, send_sequence: "{Shift+Right}w{Shift+Right}" }
- { when: has_menu, accept: Shift+X, send_sequence: "{Shift+Right}x{Shift+Right}" }
- { when: has_menu, accept: Shift+Y, send_sequence: "{Shift+Right}y{Shift+Right}" }
- { when: has_menu, accept: Shift+Z, send_sequence: "{Shift+Right}z{Shift+Right}" }
# 启用語言模型
#__include: moqi:/octagram/enable_for_sentence
custom_phrase_mqzg:
dictionary: ""
user_dict: custom_phrase/custom_phrase_xhzg
db_class: stabledb
enable_sentence: false
enable_completion: false
initial_quality: -1 #本表词和系统词重码居后
# 3码出简让全 如果不需要,可以删掉。有错码,反馈给我
custom_phrase_3_code:
dictionary: ""
user_dict: custom_phrase/custom_phrase_cjrq_for_xh
db_class: stabledb
enable_sentence: false
enable_completion: false
initial_quality: 100000 #本表词和系统词重码居后