Skip to content

Commit 46347cc

Browse files
committed
fix: 修复全拼内五笔反查
格式化代码以修复全拼内的五笔反查失败问题。 resolve: #135
1 parent a3c3413 commit 46347cc

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

rime_mint.schema.yaml

+14-3
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ schema:
1616
* Chewing - 新酷音
1717
* opencc - 開放中文轉換
1818
dependencies:
19-
- radical_pinyin_flypy # 参考 https://github.com/mirtlecn/rime-radical-pinyin
2019
- radical_pinyin # 参考 https://github.com/mirtlecn/rime-radical-pinyin
2120
- wubi98_mint # 98五笔库 https://github.com/yanhuacuo/98wubi-tables
2221
- stroke
2322
- melt_eng # 英文方案
23+
2424
switches:
2525
- name: ascii_mode
2626
reset: 0
@@ -37,6 +37,7 @@ switches:
3737
- name: ascii_punct
3838
states: [ "。," , ".," ]
3939
reset: 0
40+
4041
engine:
4142
processors:
4243
- lua_processor@*select_character
@@ -66,8 +67,8 @@ engine:
6667
- lua_translator@*chineseLunarCalendar_translator # 农历
6768
- table_translator@melt_eng # 英文输入(作为子翻译器,优先级需要比原生的低)
6869
- table_translator@cn_en # 中英混合词汇
69-
- reverse_lookup_translator@wubi98_mint 
7070
- reverse_lookup_translator@radical_reverse_lookup
71+
- reverse_lookup_translator@wubi98_mint
7172
- reverse_lookup_translator@stroke
7273
- lua_translator@*force_gc
7374
# - reverse_lookup_translator # 反查模块,多标签情况下去除
@@ -81,6 +82,7 @@ engine:
8182
- lua_filter@*reduce_english_filter # 降低部分英语单词在候选项的位置
8283
- uniquifier # 去重
8384

85+
8486
# 简繁切换
8587
transcription_cc:
8688
option_name: transcription
@@ -121,7 +123,6 @@ reduce_english_filter:
121123
mode: all # all | none | custom | 『留白』
122124
idx: 2 # 降低到第 idx 个位置
123125
# 自定义的单词列表,示例列表没有降低部分常用单词,如 and cat mail Mac but bad shit ……
124-
125126
words: [aid, ann,
126127
bail, bait, bam, band, bans, bat, bay, bend, bent, benz, bib, bid, bien, biz, boc, bop, bos, bud, buf,
127128
cab, cad, cain, cam, cans, cap, cas, cef, chad, chan, chap, chef, cher, chew, chic, chin, chip, chit, coup, cum, cunt, cur,
@@ -140,6 +141,8 @@ reduce_english_filter:
140141
tad, tail, taj, tar, tax, tec, ted, tel, ter, tex, tic, tied, tier, ties, tim, tin, tit, tour, tout, tum,
141142
wag, wand, womens, wap, wax, weir, won,
142143
yan, yen]
144+
145+
143146
# 中国农历配置
144147
chineseLunarCalendar_translator: lunar
145148

@@ -286,6 +289,7 @@ wubi98_mint:
286289
enable_completion: true
287290
prefix: "Uw"
288291
tips: 〔五笔〕
292+
289293
stroke:
290294
tag: stroke
291295
dictionary: stroke
@@ -294,6 +298,7 @@ stroke:
294298
tips: 〔笔画〕
295299
preedit_format:
296300
- xlit/hspnz/一丨丿丶乙/
301+
297302
radical_reverse_lookup:
298303
tag: radical_lookup
299304
dictionary: radical_pinyin
@@ -303,10 +308,12 @@ radical_reverse_lookup:
303308
# comment_format:
304309
# - erase/^.*$// # 删除注释
305310
tips: 〔拆字〕
311+
306312
reverse_lookup:
307313
tags: [wubi98_mint,stroke,radical_lookup]
308314
overwrite_comment: true
309315
dictionary: dicts/rime_ice.8105
316+
310317
punctuator:
311318
import_preset: symbols
312319
# 定义部分半角字符
@@ -327,6 +334,8 @@ punctuator:
327334
"$": ["¥", "$", "€", "£", "¢", "¤"]
328335
"<": ["《", "〈", "«", "<"]
329336
">": ["》", "〉", "»", ">"]
337+
338+
# 反查映射
330339
recognizer:
331340
import_preset: default
332341
patterns:
@@ -374,5 +383,7 @@ key_binder:
374383
- { when: always, accept: Control+Shift+5, toggle: extended_charset }
375384
- { when: always, accept: Shift+space, toggle: full_shape }
376385
- { when: always, accept: Control+period, toggle: ascii_punct }
386+
377387
menu:
388+
# 候选词个数
378389
page_size: 6

0 commit comments

Comments
 (0)