Librime
Rime Input Method Engine, the core library
Install / Use
/learn @rime/LibrimeREADME
<meta charset="UTF-8">
RIME: Rime Input Method Engine
Rime with your keystrokes.
Project home
License
Features
- A modular, extensible input method engine in cross-platform C++ code, built on top of open-source technologies
- Covering features found in a large variety of Chinese input methods, either shape-based or phonetic-based
- Built with native support for Traditional Chinese, conversion to Simplified Chinese and other regional standards via OpenCC
- Rime input schema, a DSL in YAML syntax for fast trying out innovative ideas of input method design
- Spelling Algebra, a mechanism to create variant spelling, especially useful for Chinese dialects
- Support for chord-typing with a generic Qwerty keyboard
Install
Follow the instructions to build librime on platforms other than Linux:
Build dependencies
- compiler with C++17 support
- cmake>=3.12
- libboost>=1.74
- libglog>=0.7 (optional)
- libleveldb
- libmarisa
- libopencc>=1.0.2
- libyaml-cpp>=0.5
- libgtest (optional)
Runtime dependencies
- libboost
- libglog (optional)
- libleveldb
- libmarisa
- libopencc
- libyaml-cpp
Build and install on Linux
make
sudo make install
Packaging status
Frontends
Official:
<!-- Sort in alphabetical order with :sort in vim -->Community:
- ARIF: frontend for Readline
- Hamster: frontend for iOS
- My RIME: frontend for web
- PIME: frontend for Windows
- Trime: frontend for Android
- XIME: frontend for macOS
- YuyanIme: frontend for Android
- coc-rime: frontend for Vim
- emacs-rime: frontend for Emacs
- fcitx-rime: Fcitx frontend for Linux
- fcitx5-android: frontend for Android
- fcitx5-macos: Fcitx5 frontend for macOS
- fcitx5-rime: Fcitx5 frontend for Linux
- fcitx5-ui.nvim: Fcitx5 frontend for Vim
- fcitx5.nvim: Fcitx5 frontend for Vim
- pyrime: frontend for Ptpython
- rabbit: frontend for Windows
- rime.nvim: frontend for Vim
- rl_custom_rime: frontend for Readline
- tmux-rime: frontend for Tmux
- zsh-rime: frontend for Zsh
Plugins
- librime-charcode (Deprecated) Module that deals with character encoding; depends on boost::locale and ICU libraries
- librime-legacy (Deprecated) Legacy module with GPL-licensed code
- librime-lua Lua scripting
- librime-octagram Language model
- librime-predict Predict next word
- librime-proto IPC using CapnProto
Related works
- plum: Rime configuration (recipe) installer
- combo-pinyin: an innovative chord-typing practice to input Pinyin
- rime-essay: the preset vocabulary
- SCU: Squirrel Configuration Utilities
Credits
We are grateful to the makers of the following open source libraries:
- Boost C++ Libraries (Boost Software License)
- google-glog (The 3-Clause BSD License)
- Google Test (The 3-Clause BSD License)
- LevelDB (The 3-Clause BSD License)
- marisa-trie (BSD 2-Clause License, LGPL 2.1)
- OpenCC (Apache License 2.0)
- yaml-cpp (MIT License)
Contributors
Related Skills
node-connect
352.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
111.1kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
352.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
352.0kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
