Thanks to librime-lua, users can extend RIME functions with Lua scripts.
This repository contains some (currently only one) Lua scripts that I wrote or modified for RIME and RIME_JD:
A yong-style number typing experience in RIME. Triggered via = by default.
- Download and put the
xnumber.luascript intoRIME_USER_DATA/lua/folder. - Modify (or create if not existing)
RIME_USER_DATA/rime.luaby adding one line:number_translator = require("numberx"). - Modify your schema (like
xkjd6.schema.yaml) by adding an item like- lua_translator@number_translatorunder theengine/translatorssection. Attention: Since this script use=as default trigger key, you should check if it conflicts with your schema. - Re-deploy RIME and enjoy.