Rime Dictionary Management and Its Automation

This article is transcribed by 简悦 SimpRead, original address utgd.net

The best input methods are “Lawyer Zhang’s input method,” “Doctor Li’s input method,” or “Editor Wang’s input method.” A reasonable framework and vocabulary allow the input method to become an extension of the fingers and even the brain.

Note: Before using the automated tools provided in this article, please ensure Python 3 is installed on your computer. Additionally, before using the LaunchBar version actions, please change the dictionary paths in default.py and remove.py to your actual paths. For the Keyboard Maestro version, modify the paths in the Macro. Update 20230802: Considering that Rime cannot add multi-line phrases, I wrote an auxiliary solution published in [the 37th issue of the UNTAG membership column]

My reasons for using Rime have already been written in “Why I still insist on using Rime input method in 2022” and “Why I still insist on using Rime input method in 2022”. If you are really interested, you can read the previous article.

Various dictionary files in Rime

Apple’s native input method still contains typos to this day

Phrase Input language

The format of Rime’s custom dictionary and text replacement is similar

The input of the txt (lower) version dictionary is more straightforward, no need to double vowel letters

Data in text replacements can be exported

grep string ~/Desktop/Text\ Substitutions.plist


Getting semi-finished data via command line

Phrase Input language

Organizing dictionary data with BBEdit

Phrase Input language

Redeploy Rime

Note: Before using the automation actions, please change the entry file addresses in the scripts or Macros to your actual storage locations. Also, for easier maintenance, I only provide txt version actions.

Capture “FFmpeg”

Type out Osprey

Manually add “T-shirt”

LaunchBar and Keyboard Maestro version actions can both search and delete words

Can check recently added entries even when no input is made

rsync -av /Users/apple/Library/Rime/ /Users/apple/Documents/Rime/ --delete


Rime’s user data size is very compact