librime-lua
librime-lua copied to clipboard
Extending RIME with Lua scripts
大神,您好,很感谢您的开源代码,在使用过程中也是很流畅,只是有点小遗憾,没有9宫格(不知道是我没找对还是怎样),现在想实现9宫格的逻辑,但由于对C那块很不熟悉,不知道能否告知下底层是如何加载词库及如何查询,现在我是将9宫格的数字转成拼音,但却不知道在哪一环节把拼音拆解,9宫格转拼音就有很多种拼音组合了,每种组合去查询又可能都有比较多的结果,不知道这一步是如何快速的找到想要的结果
Currently, the lifetime of the lua state is not destroyed even all sessions are dead. This is because the Lua state is tied to the registration, not the real live...
@hcunhui 請教一下 我想改 disconnect 如下 ```c++ void disconnect(an t) { if (auto m = As(t)){ m->~Memory(); } } ``` 這樣可行嗎? 只有這樣才可在 Component.Translator 中使用字典的 translator 也可以清除 dict
有的时候只需要简单地查看前一两个候选,直接使用 Peek() 和 Next() 会比 iter() 方便一点。
添加常用的x时x分候选 添加ExtH/ExtI支持 PS:最新的Windows自带宋体已支持显示Unicode 15.1.0定义的CJK/CJK-A/CJK-B/CJK-C/CJK-D/CJK-E/CJK-F所有字符,详见 https://github.com/CNMan/UnicodeCJK-WuBi06/issues/17
内存安全检查
近期小狼毫加上了Windows Error Reporting,发现不少用户在`rime.dll`内有异常内存操作引发`WeaselServer.exe`崩溃,据有部分用户反馈,禁用部分lua脚本 后,或改用其他方案集(不一样的lua脚本使用)后明显减少崩溃的问题。 麻烦检查一下是否librime-lua中有部分内存操作未完整处理异常,谢谢 ~ @shewer @hchunhui
rime_api_console 下,log.info 失效 ```lua local function test_log(input) print('test_log') log.info('test_log') --> not work log.warning('test_log') --> work log.error('test_log') --> work for _ in input:iter() do _.comment = '*' yield(_) end end return...
參數已改成 path 了 .