Set up rime-frost basic configuration

This commit is contained in:
2026-03-08 19:03:31 +08:00
commit 90bdf8464d
93 changed files with 2406514 additions and 0 deletions

18
lua/t9_preedit.lua Normal file
View File

@@ -0,0 +1,18 @@
-- 九宫格将输入框的数字转为对应的拼音或英文iRime 用Hamster 不需要。
-- 在 engine/filters 增加 - lua_filter@t9_preedit
--
-- 九宫格专用iRime 用,仓输入法不用
-- 拼写规则通过 xlit 转写: xlit/abcdefghijklmnopqrstuvwxyz/22233344455566677778889999/
-- 然后通过此 Lua 将输入框的数字转为对应的拼音或英文
local function t9_preedit(input, env)
for cand in input:iter() do
if (string.find(cand.text, "%w+") ~= nil) then
cand:get_genuine().preedit = cand.text
else
cand:get_genuine().preedit = cand.comment
end
yield(cand)
end
end
return t9_preedit