mirror of
https://github.com/iDvel/rime-ice.git
synced 2026-04-25 03:24:41 +00:00
fix(lua): reduce_english_filter.lua 不再处理 custom_phrase.txt 的词句
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user