mirror of
https://github.com/iDvel/rime-ice.git
synced 2026-02-02 00:07:34 +00:00
refactor: 用 speller/initials 代替 auto_commit_single_punct.lua
This commit is contained in:
@@ -54,7 +54,6 @@ engine:
|
||||
processors:
|
||||
- lua_processor@select_character # 以词定字
|
||||
- ascii_composer
|
||||
- lua_processor@auto_commit_single_punct # 让写在 alphabet 中的某标点自动上屏
|
||||
- recognizer
|
||||
- key_binder
|
||||
- speller
|
||||
@@ -106,12 +105,6 @@ date_translator:
|
||||
lunar: lunar # 农历: 二〇二三年冬月二十 癸卯年(兔)冬月二十
|
||||
|
||||
|
||||
# Lua 配置:直接上屏单个字符
|
||||
# lua_filter@search@radical_pinyin 辅码的引导符在 key_binder/search 定义,目前为 `(反引号)。
|
||||
# ` 只在中间时起辅码查询作用,但是输入单个 ` 时仍然需要按空格选择,这个 Lua 让单个的 ` 直接上屏。
|
||||
auto_commit_single_punct: "`;"
|
||||
|
||||
|
||||
# Lua 配置:为 corrector 格式化 comment,占位符为 {comment}
|
||||
# 默认 "{comment}" 输入 hun dun 时会在「馄饨」旁边生成 hún tun 的 comment
|
||||
# 例如左右加个括号 "({comment})" 就会变成 (hún tun)
|
||||
@@ -312,6 +305,8 @@ key_binder:
|
||||
speller:
|
||||
# 如果不想让什么标点直接上屏,可以加在 alphabet,或者编辑标点符号为两个及以上的映射
|
||||
alphabet: zyxwvutsrqponmlkjihgfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA;`
|
||||
# initials 定义仅作为始码的按键,排除 ` ; 让单个的 ` ; 可以直接上屏
|
||||
initials: zyxwvutsrqponmlkjihgfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA
|
||||
delimiter: " '" # 第一位<空格>是拼音之间的分隔符;第二位<'>表示可以手动输入单引号来分割拼音。
|
||||
algebra:
|
||||
- erase/^xx$/
|
||||
|
||||
Reference in New Issue
Block a user