-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
新改的 英打模式 #4
Comments
string.find_words 修改 增加 func 可以 加載 yiald 增加 查詢效率 local function translator(inpet,seg,env)
input:find_words(
function(elm)
log.info("--- in tran yield loop -elm:" .. elm )
if flag and context.input ~= elm then
yield( Candidate("pre_english", seg.start,seg._end , context.input , "[english]"))
end
flag=false
yield( Candidate("english", seg.start,seg._end, elm, "[english]") )
end
)
|
|
誤触 |
我已經做好了 , english_dict.lua english_init.lua 應該可以利用 打 teg 的segment 也還算簡單 |
rime-engilsh(https://github.com/shewer/rime-english)
lua_processor
Tab 更新 cand.text to context.text
會補上空白 或 , 字符
lua segment 打上 english tag
The text was updated successfully, but these errors were encountered: