Open edward-martyr opened 3 years ago
in these samples, I suggest you to edit your dictionary to lower the uncommon word or use lua_filter to advance the frequent word.
A debug filter I have in hand should help you get started:
local function filter(input, env)
for cand in input:iter() do
cand:get_genuine().comment = string.format("%s | %2.2f | %d | %s", cand.type, cand.quality * 100, cand.start, cand.comment)
yield(cand)
end
end
I read https://github.com/hchunhui/librime-lua/pull/80, but was still unsure of how to associate this with a candidate in lua script.
Desired result:
I want to move the most frequent single characters ahead of less used words. For example, when I input
gaoyixie
, I would likeInstead of
when what I really want to input is
搞一些
, this hampers the input a lot.I'm very new to lua, but I reckon it should be the best way to implement this desired result. Thanks in advance, @TsinamLeung @hchunhui