Skip to content

Commit 90a3745

Browse files
committed
feat: 单字优先时,可开启自动顶屏上字(小鹤音形效果)
1 parent baf5c1f commit 90a3745

9 files changed

Lines changed: 51259 additions & 9253 deletions

cn_dicts/flyhe_chars.dict.yaml

Lines changed: 51041 additions & 9152 deletions
Large diffs are not rendered by default.

flyhe_fast.schema.yaml

Lines changed: 70 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,8 @@ punctuator:
151151
")": [")", )]
152152
"[": ['[', 「, 【, 〔, [, 〚, 〘]
153153
"]": [']', 」, 】, 〕, ], 〛, 〙]
154-
"{": [, 〖, {]
155-
"}": [, 〗, }]
154+
"{": ['{', 〖, 『, {]
155+
"}": ['}', 〗, 』, }]
156156
"#": "#"
157157
"=": "="
158158
'\': ['、', '、', '\', '\', '\r', '\n', '\t']
@@ -203,8 +203,74 @@ speller:
203203

204204
algebra_common:
205205
## 字表编码到输入码的转换规则
206-
- xform/^([a-z])([a-z])$/$1$2/ # Flypy: AB
207-
- xform/^([jy])u/$1v/
206+
- xform/^(.*)ā(.*)$/$1a$2/
207+
- xform/^(.*)á(.*)$/$1a$2/
208+
- xform/^(.*)ǎ(.*)$/$1a$2/
209+
- xform/^(.*)à(.*)$/$1a$2/
210+
- xform/^(.*)ō(.*)$/$1o$2/
211+
- xform/^(.*)ó(.*)$/$1o$2/
212+
- xform/^(.*)ǒ(.*)$/$1o$2/
213+
- xform/^(.*)ò(.*)$/$1o$2/
214+
- xform/^(.*)ē(.*)$/$1e$2/
215+
- xform/^(.*)é(.*)$/$1e$2/
216+
- xform/^(.*)ě(.*)$/$1e$2/
217+
- xform/^(.*)è(.*)$/$1e$2/
218+
- xform/^(.*)ī(.*)$/$1i$2/
219+
- xform/^(.*)í(.*)$/$1i$2/
220+
- xform/^(.*)ǐ(.*)$/$1i$2/
221+
- xform/^(.*)ì(.*)$/$1i$2/
222+
- xform/^(.*)ū(.*)$/$1u$2/
223+
- xform/^(.*)ú(.*)$/$1u$2/
224+
- xform/^(.*)ǔ(.*)$/$1u$2/
225+
- xform/^(.*)ù(.*)$/$1u$2/
226+
- xform/^(.*)ǖ(.*)$/$1v$2/
227+
- xform/^(.*)ǘ(.*)$/$1v$2/
228+
- xform/^(.*)ǚ(.*)$/$1v$2/
229+
- xform/^(.*)ǜ(.*)$/$1v$2/
230+
- xform/^(.*)ü(.*)$/$1v$2/
231+
- xform/^(.*)ń(.*)$/$1n$2/
232+
- xform/^(.*)ň(.*)$/$1n$2/
233+
- xform/^(.*)ǹ(.*)$/$1n$2/
234+
- xform/^ḿ$/m/
235+
- xform/^m̀$/m/
236+
- derive/^ng$/eng/
237+
- xform/^n$/en/
238+
- xform/^m$/om/
239+
- derive/^([jy])u$/$1v/
240+
- derive/^(e)([in])$/$1$2/
241+
- derive/^(a)([ion])$/$1$2/
242+
# - xform/^([aoe])(ng)?$/$1$1$2/
243+
# - derive/^([aoe])([ioun])$/$1$1$2/
244+
- xform/^([aoe])$/$1$1/
245+
- xform/^(a)(ng)$/$1$1$2/
246+
- xform/^zh(.*)/Ⓥ$1/
247+
- xform/^ch(.*)/Ⓘ$1/
248+
- xform/^sh(.*)/Ⓤ$1/
249+
- xform/(.)iu$/$1Ⓠ/
250+
- xform/(.)ei$/$1Ⓦ/
251+
- xform/(.)uan$/$1Ⓡ/
252+
- xform/(.)[uv]e$/$1Ⓣ/
253+
- xform/(.)un$/$1Ⓨ/
254+
- xform/(.)uo$/$1Ⓞ/
255+
- xform/(.)ie$/$1Ⓟ/
256+
- xform/(.)i?ong$/$1Ⓢ/
257+
- xform/(.)ing$/$1Ⓚ/
258+
- xform/(.)uai$/$1Ⓚ/
259+
- xform/(.)ai$/$1Ⓓ/
260+
- xform/(.)en$/$1Ⓕ/
261+
- xform/(.)eng$/$1Ⓖ/
262+
- xform/(.)[iu]ang$/$1Ⓛ/
263+
- xform/(.)ang$/$1Ⓗ/
264+
- xform/(.)ian$/$1Ⓜ/
265+
- xform/(.)an$/$1Ⓙ/
266+
- xform/(.)ou$/$1Ⓩ/
267+
- xform/(.)[iu]a$/$1Ⓧ/
268+
- xform/(.)iao$/$1Ⓝ/
269+
- xform/(.)ao$/$1Ⓒ/
270+
- xform/(.)ui$/$1Ⓥ/
271+
- xform/(.)in$/$1Ⓑ/
272+
- xlit/ⓆⓌⓇⓉⓎⓊⒾⓄⓅⓈⒹⒻⒼⒽⒿⓀⓁⓏⓍⒸⓋⒷⓃⓂ/qwrtyuiopsdfghjklzxcvbnm/
273+
- xform/^(..)$/$1/
208274
- fuzz/^([a-z]).$/$1/
209275
# - abbrev/^([a-z]).$/$1/
210276

flypy_chord_rule.yaml

Lines changed: 38 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,73 +1,80 @@
11
---
22

33
patch:
4-
# speller:
5-
# algebra:
64
## 左右飞键音码规则
7-
- derive/^(j)n/$1c/correction
8-
- derive/^([jyn])t/$1d/ # t --> d
9-
- derive/^([jmn])p/$1e/ # p --> e
10-
- derive/^([djlnx])q/$1f/ # q --> f
11-
- derive/^p([okibnmuhj])/e$1/
12-
- derive/^q([pkibnmsxyl])/f$1/
5+
- derive/^(j)n/$1c/
6+
- derive/^([jy])t/$1d/ # t --> d
7+
- derive/^(j)p/$1e/ # p --> e
8+
- derive/^([jlx])q/$1f/ # q --> f
9+
- derive/^p([okbmuhj])/e$1/
10+
- derive/^q([pkibmsxyl])/f$1/
1311
- derive/^qt/fd/
1412
- derive/^qu/fe/
15-
- derive/^qr/fo/correction
16-
- derive/^ko/kr/
17-
- derive/^([jki])y/$1w/ # [jki]y --> [jki]w
13+
- derive/^([jk])y/$1w/ # [jki]y --> [jki]w
1814
- derive/^y([ikb])/w$1/ # y[ikb] --> w[ikb]
1915
- derive/^yh/wn/
2016
- derive/^yj/wm/
2117
- derive/^hj/aj/
22-
- derive/^hy/hw/correction
23-
- derive/^uj/ur/
24-
- derive/^uy/uw/correction # uy --> uw
25-
- derive/^vx/ux/ # vx --> ux
2618
- derive/^vs/us/ # vs --> us
27-
- derive/^vd/ud/ # vd --> ud
2819
- derive/^vf/vn/ # vf --> vn
29-
- derive/^vg/vk/ # vg --> vk
3020
- derive/^vr/vm/ # vr --> vm
3121
- derive/^rv/rl/ # rv --> rl
3222
- derive/^rz/rm/ # rz --> rm
3323
- derive/^rf/rn/ # rf --> rn
3424
- derive/^rg/rb/ # rg --> rb
3525
- derive/^tg/rb/ # tg --> rb
3626
- derive/^tk/rk/ # tk --> rk
37-
- derive/^te/df/ # te --> df
38-
- derive/^tw/dw/ # tw --> dw
39-
- derive/^tv/dl/correction # tv --> dl
27+
- derive/^tv/dl/ # tv --> dl
4028
- derive/^gr/gm/ # gr --> gm
4129
- derive/^gf/gn/ # gf --> gn
42-
- derive/^gy/gk/ # gy --> gk
4330
- derive/^g([wv])/gi/ # g[wv] --> gi
4431
- derive/^xt/xo/
4532
- derive/^xs/xh/
4633
- derive/^nh/nx/
47-
- derive/^nu/nv/correction
4834
- derive/^nj/xj/
49-
- derive/^no/nr/correction
50-
- derive/^lo/ng/correction
51-
- derive/^lp/nl/correction
52-
- derive/^ly/nw/
53-
- derive/^lm/nz/
54-
- derive/^li/lx/correction
5535
- derive/^jm/jz/
5636
- derive/^jb/ja/
5737
- derive/^za/zl/
5838
- derive/^ze/zn/
5939
- derive/^zr/zm/
6040
- derive/^z([ws])/zk/
61-
- derive/^i([kl])/ix/
6241
- derive/^mh/mx/
6342
- derive/^mb/ms/
64-
- derive/^mk/me/correction
6543
- derive/^mo/mr/
6644
- derive/^mu/mv/
6745
- derive/^sz/sl/
6846
- derive/^bw/bs/
69-
- derive/^b([fgnm])/s$1/
47+
- derive/^b([nm])/s$1/
7048
- derive/^cs/ck/
7149
- derive/^ce/cn/
7250
- derive/^cr/cm/
7351
- derive/^c([dz])/cl/
52+
53+
# 以下为 纠错规则(权重低)
54+
- derive/^qr/fo/correction
55+
- derive/^qn/fn/correction
56+
- derive/^ko/kr/correction
57+
- derive/^hy/hw/correction
58+
- derive/^uj/ur/correction
59+
- derive/^uy/uw/correction # uy --> uw
60+
- derive/^vx/ux/correction # vx --> ux
61+
- derive/^vd/ud/correction # vd --> ud
62+
- derive/^vg/vk/correction # vg --> vk
63+
- derive/^te/df/correction # te --> df
64+
- derive/^tw/dw/correction # tw --> dw
65+
- derive/^gy/gk/correction # gy --> gk
66+
- derive/^nu/nv/correction
67+
- derive/^no/nr/correction
68+
- derive/^lo/ng/correction
69+
- derive/^lp/nl/correction
70+
- derive/^ly/nw/correction
71+
- derive/^lm/nz/correction
72+
- derive/^li/lx/correction
73+
- derive/^mk/me/correction
74+
- derive/^nt/nd/correction
75+
- derive/^iy/iw/correction
76+
- derive/^i([kl])/ix/correction
77+
- derive/^([mn])p/$1e/correction
78+
- derive/^([dn])q/$1f/correction
79+
- derive/^p([in])/e$1/correction
80+
- derive/^b([fg])/s$1/correction

flypy_xhfast.custom.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,8 @@ patch:
131131
- "@139.com"
132132

133133
speller/+:
134-
auto_select_phrase: true # 二字词组加辅码唯一时则自动上屏
134+
auto_select_char: true # 单字全码唯一时则自动顶屏(包括直接辅码)
135+
auto_select_phrase: true # 词组加间接辅码唯一时则自动上屏
135136
enable_fuzz_algebra: true # 是否开启简拼功能(候选字词含有中英数混杂项)
136137
algebra/+:
137138
# - derive|/|| # 取消注释,直接辅码(新手不推荐)
@@ -162,7 +163,7 @@ patch:
162163

163164
radical_reverse_lookup/+: # 部件组字反查拼音
164165
overwrite_comment: false
165-
dictionary: kMandarin # 可自行更换反查词典
166+
dictionary: flyhe_fast # 可自行更换反查词典
166167

167168
pin_word: # 词条置顶配置
168169
word_quality: 1000

flypy_xhfast.schema.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ engine:
3838
- lua_processor@*pin_word*processor
3939
- lua_processor@*shortcut*processor
4040
- lua_processor@*pair_punct*processor
41+
- lua_processor@*cand_selector*processor
4142
- lua_processor@*chinese_number*processor
4243
- lua_processor@*flypy_switcher*processor
4344
- lua_processor@*cold_word_drop*processor
@@ -246,7 +247,7 @@ radical_lookup:
246247

247248
# 部件拆字滤镜
248249
radical_reverse_lookup:
249-
dictionary: kMandarin
250+
dictionary: flyhe_fast # kMandarin
250251
tags: [abc, radical_lookup]
251252
overwrite_comment: false
252253
comment_format:

0 commit comments

Comments
 (0)