banner
虫子游戈

虫子游戈

一个写故事的人类
mastodon
email

How to add specific traditional Chinese characters to the Rime input method candidates

I previously successfully implemented support for mixed input of simplified and traditional Chinese in Rime input method, but in practice, I found it only added trouble, as it disrupted the original familiar order, greatly increasing the time and effort cost of input. Thus, the input method reverted to a pure simplified version.

However, recently, due to work, I needed to input the specific traditional character "昇," which the simplified version of Rime cannot input directly—even adding "昇" to the custom word list does not work.

After researching for two nights, I finally found a solution with the help of Claude.

In fact, Claude provided several solutions, but after testing, only this one currently works.

This solution is based on a Lua script.

The first step is to create a new Lua script in User Folder/Lua, for example, namex.lua. The script content is as follows:

If you want to add more traditional characters or phrases, you can supplement them in the corresponding positions above.

Alternatively, you can use this simpler script:

The second step is to add a line in the rime.lua file:

The third step is to add in your your_input_scheme.custom.yaml file:

Done. Just redeploy.

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.