fix: corrector.lua 不再处理其他类型的 comment; fix #461
This commit is contained in:
parent
f535fd31cb
commit
6a1c50649f
@ -87,9 +87,7 @@ local function corrector(input)
|
|||||||
local c = corrections[cand.comment]
|
local c = corrections[cand.comment]
|
||||||
if c and cand.text == c.text then
|
if c and cand.text == c.text then
|
||||||
cand:get_genuine().comment = c.comment
|
cand:get_genuine().comment = c.comment
|
||||||
elseif cand.type == "reverse_lookup" or cand.type == "unicode" then
|
elseif cand.type == "user_phrase" or cand.type == "phrase" or cand.type == "sentence" then
|
||||||
-- 不处理反查和 Unicode 的 comment
|
|
||||||
else
|
|
||||||
cand:get_genuine().comment = ""
|
cand:get_genuine().comment = ""
|
||||||
end
|
end
|
||||||
yield(cand)
|
yield(cand)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user