refactor: 用 speller/initials 代替 auto_commit_single_punct.lua

This commit is contained in:
Dvel
2024-02-24 19:47:54 +08:00
parent fbef83c8b8
commit 8fc6a6e875
9 changed files with 15 additions and 143 deletions

View File

@@ -6,7 +6,7 @@
schema:
schema_id: rime_ice
name: 雾凇拼音
version: "2024-02-23"
version: "2024-02-24"
author:
- Dvel
description: |
@@ -43,7 +43,6 @@ engine:
processors:
- lua_processor@select_character # 以词定字
- ascii_composer
- lua_processor@auto_commit_single_punct # 让写在 alphabet 中的某标点自动上屏
- recognizer
- key_binder
- speller
@@ -105,12 +104,6 @@ long_word_filter:
idx: 4
# 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)
@@ -410,6 +403,8 @@ key_binder:
speller:
# 如果不想让什么标点直接上屏,可以加在 alphabet或者编辑标点符号为两个及以上的映射
alphabet: zyxwvutsrqponmlkjihgfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA`
# initials 定义仅作为始码的按键,排除 ` 让单个的 ` 可以直接上屏
initials: zyxwvutsrqponmlkjihgfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA
delimiter: " '" # 第一位<空格>是拼音之间的分隔符;第二位<'>表示可以手动输入单引号来分割拼音。
algebra:
### 模糊音