$ show Mintimate/oh-my-rime
This repository is a comprehensive configuration package for the Rime input method engine, providing a curated set of input schemas, dictionaries, Lua scripts, and OpenCC conversion data. It is not a standalone application but a template package that users copy or integrate into their Rime setup (on Windows, macOS, Linux, Android, iOS). The project offers multiple Chinese input methods including full pinyin, various double pinyin layouts, Wubi 86/98, stroke, and T9, along with extensive English and emoji support. Its key value lies in the integration of high-quality dictionaries (rime-ice, Wanxiang, rime-frost) and advanced Lua extensions that add features like date/time, lunar calendar, calculator, unicode translation, automatic capitalization, and corrector filters. The configuration follows the Rime convention of custom.yaml overrides, allowing users to upgrade without losing personalizations. While the core is a set of configuration files, the Lua scripts and OpenCC data are reusable assets demonstrating strong craftsmanship.
The LLM identified 5 files worth highlighting for reuse:
A self-contained Lua filter that automatically capitalizes the first letter of English words when the input is in English mode. It can be reused in any Rime schema that needs English auto-capitalization, with minimal adaptation (just require and add to schema's filter list). Demonstrates clean Lua pattern matching and integration with Rime's filter API.
A Lua translator that converts numeric input (e.g., '12345') into Chinese uppercase financial amount (e.g., 'ๅฃนไธ่ดฐไปๅไฝฐ่ๆพไผๅๆด'). It is fully parameterized and can be dropped into any Rime schema by adding a translator entry. Demonstrates non-obvious handling of Chinese number grammar and edge cases (zero, decimal, large numbers).
A minimal Lua script that throttles garbage collection to avoid lag during fast typing. It can be reused in any Rime deployment or even in other Lua-embedded applications. Shows a practical optimization pattern for real-time systems.
A large OpenCC-style phrase-to-emoji mapping file (e.g., 'ๅพฎ็ฌ' โ '๐'). It can be used independently as a conversion table for any Chinese text processing system that supports OpenCC format. The curation covers common internet slang, technical terms, and everyday phrases, making it broadly reusable.
An advanced Lua translator that turns a typed expression (e.g., '1+2*3') into the result, supporting parentheses, trigonometric functions, modulo, and even custom functions like solving quadratic equations or 24-point game. It is far more sophisticated than typical Rime calculator scripts and demonstrates non-obvious Lua pattern matching and expression evaluation. It is self-contained and can be added to any Rime schema.