feat: corrector.lua 支持 comment 格式化配置 close #598

This commit is contained in:
Dvel
2024-01-03 23:27:55 +08:00
parent c1a8a814e3
commit bccc7809ea
8 changed files with 153 additions and 104 deletions

View File

@@ -98,6 +98,12 @@ date_translator:
lunar: lunar # 癸卯年(兔)冬月廿一 二〇二四年冬月廿一
# Lua 配置:为 corrector 格式化 comment占位符为 {comment}
# 默认 "{comment}" 输入 hun dun 时会在「馄饨」旁边生成 hún tun 的 comment
# 例如左右加个括号 "({comment})" 就会变成 (hún tun)
corrector: "{comment}"
# Lua 配置: 降低部分英语单词在候选项的位置。
# 详细介绍 https://dvel.me/posts/make-rime-en-better/#短单词置顶的问题
# 正常情况: 输入 rug 得到 「1.rug 2.如果 …… 」