fix(lua): reduce_english_filter.lua 不再处理 custom_phrase.txt 的词句

This commit is contained in:
Dvel
2024-11-26 21:00:54 +08:00
parent b4fbfa441f
commit a37e5d08a1

View File

@@ -91,7 +91,7 @@ function M.func(input, env)
for cand in input:iter() do
index = index + 1
-- 找到要降低的英文词,加入 pending_cands
if cand.preedit:find(" ") or not cand.text:match("[a-zA-Z]") then
if cand.preedit:find(" ") or not cand.text:match("[a-zA-Z]") or cand.type == "user_table" then
yield(cand)
else
table.insert(pending_cands, cand)