Replies: 1 comment 1 reply
-
|
我的方案中是有寫 Lua 的,你可以參考一下結構: 但原理我也說不清楚,因為是叫 Ai 幫我弄的。我猜大概是 default.custom.yaml patch 的是全局的 default.yaml,主要影響方案列表、切換器、全局按鍵等;而 engine/processors 是具體輸入方案的配置,屬於某個 schema 的 engine。 所以把 lua_processor 寫在 default.custom.yaml 裡,即使部署後出現在 build/default.yaml,也不代表當前方案真的會載入它。Lua 這段應該寫到具體方案的 custom 文件裡,例如放到 double_pinyin_flypy.custom.yaml 中。 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Version: 小狼毫0.17.4 + 雾凇拼音
我编写了一个lua文件并且放入
{userconfig}/lua/下,然后在default.custom.yaml下添加重新部署后
build/default.yaml生成有对应的patch内容,但是没有生效(如果我乱填文件名,日志里也不会产生找不到module的error)。如果我在double_pinyin_flypy.custom.yaml(当前的schema方案)添加该patch,则能成功生效或者报错。
我想问一下这是本来就无法在default.custom.yaml下添加吗?
Beta Was this translation helpful? Give feedback.
All reactions