refactor: pin_cand_filter.lua 匹配逻辑改为无空格的 cand.preedit #586

This commit is contained in:
Dvel
2024-02-02 22:50:12 +08:00
parent 78ee352b4d
commit 188a1112d0
9 changed files with 157 additions and 291 deletions

View File

@@ -86,3 +86,15 @@ is_in_user_dict = require("is_in_user_dict")
-- get_record_filername() 函数中仅支持了 Windows、macOS、Linux
cold_word_drop_processor = require("cold_word_drop.processor")
cold_word_drop_filter = require("cold_word_drop.filter")
-- 临时用的
function debug_checker(input, env)
for cand in input:iter() do
yield(ShadowCandidate(
cand,
cand.type,
cand.text,
env.engine.context.input .. " - " .. env.engine.context:get_preedit().text .. " - " .. cand.preedit
))
end
end