这是核心库,需搭配 ibus-rime、Squirrel、Weasel 等前端才能实际使用;构建依赖 cmake>=3.12、libboost>=1.74、libopencc>=1.0.2 等版本要求;macOS 与 Windows 需按 README-mac.md、README-windows.md 单独构建
make
sudo make install 硬件要求按 README 说明
README 未说明硬件要求,仅列出 C++17 编译器、cmake>=3.12 及 boost、leveldb、marisa、opencc、yaml-cpp 等依赖库
跨平台 C++ 输入法引擎核心库,为各类中文输入方案提供统一底层
Rime 输入法的核心引擎库,用 C++ 实现,为各平台输入法前端提供输入处理、候选词生成和词典管理等底层能力。
核心能力
- 模块化可扩展的跨平台 C++ 输入法引擎
- 支持形码与音码等多种中文输入方案
- 内置繁体中文及经 OpenCC 转换简体等标准
- 用 YAML 语法的 Rime 输入方案 DSL 快速试验设计
- 提供 Spelling Algebra 生成变体拼写,适合方言
容易踩的坑
内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README
- latestNightly Buildpre-release2026-11-09 · 2026-11-09 13:30 UTC
这个版本没有写更新说明。
- 1.17.0librime 1.17.0最新正式版2026-06-06 · 2026-06-06 03:33 UTC
Features
- syllabifier: trim leading delimiters (#1147) #1147 (ksqsf)
- navigator: 允許跳轉到分隔符之前 (#1142) #1142 (ksqsf)
- poet: make multiple sentences #1164 (ksqsf)
- script_translator: allow multiple sentence candidates #1164 (ksqsf)
Bug Fixes
- script_translator: excluded words cause crashes (#1152) #1152 (ksqsf)
- navigator: forward/rewind 步長視未選定編碼分節數而定 (居戎氏)
- build: commit ci should also build with plugins (#1160) #1160 (ksqsf)
- punctuator: space after digit separators shouldn't be translated #1167 (ksqsf)
- charset_filter: 不過濾漢字以外的符號 (居戎氏)
Chores
- release: 1.17.0 :tada: (居戎氏)
- 1.16.1librime 1.16.12026-01-20 · 2026-01-20 00:43 UTC
查看更新说明
Bug Fixes
- navigator: 插入輸入碼再向右移動 (居戎氏)
Builds
- bump_version.sh: use git-cliff (居戎氏)
Chores
- include for std::{max,min} (居戎氏)
- clangd lsp integration (#1125) #1125 (morse.hsiao)
- release: 1.16.1 :tada: (居戎氏)
Commits
- 58e51c5: fix(SwitcherSettings):load schema list when default.custom.yaml is absent (#1126) (fxliang) #1126
- 1.16.0librime 1.16.02026-01-06 · 2026-01-06 15:56 UTC
查看更新说明
Features
- tool: rime_api_console with input feature histories switched by Up/Down #1099 (fxliang)
- tool: rime_api_console with autosuggestions feature like zsh-autosuggestions #1099 (fxliang)
- tool: deduplicate input history and limit its total length #1099 (fxliang)
- dictionary: 全碼長度積分 (居戎氏)
- config: 自動引用 default:/{navigator,selector} (居戎氏)
- navigator: 右方向鍵默認爲 forward 動作 (居戎氏)
- navigator: add no looping navigation actions (fxliang)
- script_translator: 首選爲糾錯則啓動造句 (居戎氏)
- calculus: 拼寫運算增設容錯規則 (居戎氏)
Bug Fixes
- chord_composer: do not consume orphan key release events (居戎氏)
- syllabifier: 歧義切分路徑懲罰誤傷其他切分路徑 (居戎氏)
- script_translator: 用戶詞糾錯則取消優先權 (居戎氏)
- dict: 禁用歧義切分路徑懲罰 (居戎氏)
Chores
Commits
- 2350b77: hide candidate in librime (MokapSing) #1115
- 1.15.0librime 1.15.02025-11-24 · 2025-11-24 09:50 UTC
查看更新说明
Features
Bug Fixes
- composition: skip phony segments in GetScriptText (#1051) #1051 (pfeiwu)
- engine: clear formatters and post processors (居戎氏)
- vocabulary: Homophones sorting should be stable (#1079) #1079 (ksqsf)
- navigation actions should trigger
update_notifier#1046 (everyx) - charset_filter: Support Ext J (#1098) #1098 (ksqsf)
- simplifier: Lazily initialize Opencc (#1101) #1101 (ksqsf)
Documentation
- README: add Readline frontend [skip ci] #1048 (CismonX)
- sort the community section #1055 (Bambooin)
- polish build guide section #1055 (Bambooin)
Builds
- plugins: make it faster when rebuild lib with plugins changed #1071 (fxliang)
- tools: fix format specifies type error on arm32 (#1089) #1089 (Panda527)
Continuous Integration
- temporarily disable test for mingw-w64 due to msys2 glog package issue #1065 (WhiredPlanck)
- macos-13: use system llvm #1072 (fxliang)
- upgrade the github action to v5 (#1073) #1073 (Bambooin)
- use macos-15-intel for retired macos-13 (#1080) #1080 (Bambooin)
Chores
- add packaging status badge #1053 (Bambooin)
- upgrade marisa to 0.3.1 #1065 (WhiredPlanck)
- upgrade opencc to 1.1.9 #1065 (WhiredPlanck)
- dep: update yaml-cpp (居戎氏)
- upgrade boost to 1.89.0 (#1085) #1085 ([Chen Linxuan](https://github.com/rime/librime/commit/bb8677dc62cd427a707aba9
用户点评
登录用户的真实使用记录,可按版本和硬件筛选共 0 条
还没有人点评。第一个说出真实体验的人最有价值。
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:
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
- rime.vim: frontend for Vim and Neovim
- 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)