fix(lua): corrector.lua now clears specific cand.comment

This commit is contained in:
mirtlecn
2024-04-16 15:12:00 +08:00
committed by mirtlecn
parent dc4f52d4d0
commit 62f3e107a0
8 changed files with 29 additions and 5 deletions

View File

@@ -293,6 +293,9 @@ translator:
spelling_hints: 8 # corrector.lua :为了让错音错字提示的 Lua 同时适配全拼双拼,将拼音显示在 comment 中
always_show_comments: true # corrector.lua Rime 默认在 preedit 等于 comment 时取消显示 comment这里强制一直显示供 corrector.lua 做判断用。
initial_quality: 1.2 # 拼音的权重应该比英文大
comment_format: # 标记拼音注释,供 corrector.lua 做判断用
- xform/^//
- xform/$//
preedit_format: # preedit_format 影响到输入框的显示和“Shift+回车”上屏的字符
- xform/([jqxy])v/$1u/ # 显示为 ju qu xu yu
# - xform/([nl])v/$1ü/ # 显示为 nü lü