shewer / librime-lua-script

57 stars 6 forks source link

请教下如何把英文输入的中文释义改成简体显示?谢谢! #9

Closed zhuangzhemin closed 2 years ago

zhuangzhemin commented 2 years ago

请教下如何把英文输入的中文释义改成简体显示?谢谢!

我把lua/english/english_tran.lua中的

T._eng_dict=T._eng_dict or English_dict("english_tw.txt")

改成

T._eng_dict=T._eng_dict or English_dict("english.txt")

修改后,英文输入就没有来自词典的候选词了。

simplifier/opencc_config不管是用s2t还是t2s都是一样的报错。

Rime Log文件内容如下:

Log line format: [IWEF]mmdd hh:mm:ss.uuuuuu threadid file:line] msg
E0318 11:40:19.968613 13968 lua_gears.cc:15] LuaTranslation::Next error(2): D:\Home\Rime\lua\tools/english_dict.lua:297: attempt to index a nil value (field '_dict_tree')
E0318 11:40:33.641566 13968 lua_gears.cc:15] LuaTranslation::Next error(2): D:\Home\Rime\lua\tools/english_dict.lua:297: attempt to index a nil value (field '_dict_tree')
E0318 11:40:33.773300 13968 lua_gears.cc:15] LuaTranslation::Next error(2): D:\Home\Rime\lua\tools/english_dict.lua:297: attempt to index a nil value (field '_dict_tree')
shewer commented 2 years ago

把字典檔 english.txt copy to lua/tools 下

zhuangzhemin commented 2 years ago

把字典檔 english.txt copy to lua/tools 下

感谢答复!这样确实就可以了。