Shewer Lu
Shewer Lu
## Pull request 改善 librime-lua中使用 Memory 類別時,sync user_data 異常 須要手動釋放 user_dict https://github.com/hchunhui/librime-lua/issues/335 #### Issue tracker Fixes will automatically close the related issue Fixes # #### Feature Describe feature of pull...
## Pull request to support librime-lua api (Component.Translator ) loading configuration form other schema file ex: Component.Translator(env.engine, Schema('cangjie5'), 'translator', 'table_translator') #### Issue tracker Fixes will automatically close the related issue...
新增訪問 options , properties api https://github.com/rime/librime/commit/a4f24fd705e78ccaf7d1fa65f36c31341ecab180 ```lua -- vars_get & vars_set context.options = { a=true, b=true} context.properties = {a='a', b='b' } local tab = context:get_options() -- key: string value: bool...
@hcunhui 請教一下 我想改 disconnect 如下 ```c++ void disconnect(an t) { if (auto m = As(t)){ m->~Memory(); } } ``` 這樣可行嗎? 只有這樣才可在 Component.Translator 中使用字典的 translator 也可以清除 dict
參數已改成 path 了 .
update from librime context.h ``` commit 8b7f6b746b4f7790ade50f60c5d4b89488bc8f9d Author: 居戎氏 Date: Sat Mar 2 11:42:50 2024 +0800 fix(context): tag selected segment after editing call Context::BeginEditing when input is edited after selection....
Schema('') == Schema('.default') ```lua -- 取得 default.yaml:/schema_list 所有 schema_id local schema= Schema('') local size = schema.config:get_list('schema_list').size local schemas_id={} for i = 0, size-1 do local path = ("schema_list/@%d/schema"):format(i) table.insert(schema_id ,...