Skip to content

Commit

Permalink
fix: 修复「薄荷拼音-全拼输入」拆字引入错误 (Mintimate#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
YummyCocoa authored Mar 13, 2024
1 parent 41552f4 commit 683721e
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions rime_mint.schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ schema:
* Chewing - 新酷音
* opencc - 開放中文轉換
dependencies:
- chaizi # 参考 https://github.com/MaxChang3/rime-chaizi
- radical_pinyin_flypy # 参考 https://github.com/mirtlecn/rime-radical-pinyin
- wubi98_mint # 98五笔库 https://github.com/yanhuacuo/98wubi-tables
- stroke
- melt_eng # 英文方案
Expand Down Expand Up @@ -60,7 +60,7 @@ engine:
- ascii_segmentor # 標識西文段落
- matcher # 標識符合特定規則的段落,如網址、反查等
- affix_segmentor@wubi98_mint
- affix_segmentor@chaizi
- affix_segmentor@radical_reverse_lookup
- affix_segmentor@stroke
- abc_segmentor # 標識常規的文字段落
- punct_segmentor # 標識句讀段落
Expand All @@ -77,14 +77,15 @@ engine:
- table_translator@cn_en # 中英混合词汇
# - echo_translator # ※ 没有候选词,返回字符
- reverse_lookup_translator@wubi98_mint 
- reverse_lookup_translator@chaizi
- reverse_lookup_translator@radical_reverse_lookup
- reverse_lookup_translator@stroke
# - reverse_lookup_translator # 反查模块,多标签情况下去除
filters:
- lua_filter@corrector # 错音错字提示
- lua_filter@autocap_filter # 英文自动大写
- simplifier@emoji_suggestion # Emoji OpenCC
- simplifier@transcription_cc # 繁体&简体 OpenCC
- simplifier
- simplifier@emoji_suggestion
- simplifier@transcription_cc
- lua_filter@reduce_english_filter # 降低部分英语单词在候选项的位置
- uniquifier # 去重

Expand Down Expand Up @@ -284,19 +285,19 @@ stroke:
preedit_format:
- xlit/hspnz/一丨丿丶乙/

chaizi:
tag: chaizi
dictionary: chaizi
enable_completion: true
radical_reverse_lookup:
tag: radical_lookup
dictionary: radical_pinyin
enable_completion: false
enable_sentence: false
prefix: "uu"
preedit_format:
- xform/([nljqxy])v/$1ü/
suffix: " '"
comment_format:
- xform/([nljqxy])v/$1ü/
- erase/^.*$//
tips: 〔拆字〕

reverse_lookup:
tags: [wubi98_mint,stroke,chaizi]
tags: [wubi98_mint,stroke,radical_lookup]
overwrite_comment: true
dictionary: dicts/rime_ice.8105

Expand Down Expand Up @@ -327,6 +328,6 @@ recognizer:
punct: "^/([0-9]0?|[a-z]+)$"
wubi98_mint: "uw[a-z]*'?$"
stroke: "ui[a-z]*'?$"
chaizi: "uu[a-z]*'?$"
radical_lookup: "uu[a-z]*'?$"
rmb: "^R[0-9]+[.]?[0-9]*" # 响应 lua_translator@number_translator 脚本将自动获取第 2 个字符作为触发前缀
gregorian_to_lunar: "^N[0-9]{1,8}" # 响应 lua_translator@Chinese_lunar_calendar 公历转农历,输入 N20240115 得到「二〇二四年腊月初五」,脚本将自动获取第 2 个字符作为触发前缀

0 comments on commit 683721e

Please sign in to comment.