librime

rimeBSD-3-Clause活跃维护

Rime 输入法的核心引擎库,用 C++ 实现,为各平台输入法前端提供输入处理、候选词生成和词典管理等底层能力。

Rime Input Method Engine, the core library

1.17.0发布于 2026-06-06 03:33 UTC4,712star +1 / 7 天750fork同步于 2026-11-10 17:38 UTC

怎么上手

由 README 提炼,执行前请确认
make
sudo make install
硬件要求按 README 说明

README 未说明硬件要求,仅列出 C++17 编译器、cmake>=3.12 及 boost、leveldb、marisa、opencc、yaml-cpp 等依赖库

下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

由 README 自动翻译提炼

跨平台 C++ 输入法引擎核心库,为各类中文输入方案提供统一底层

Rime 输入法的核心引擎库,用 C++ 实现,为各平台输入法前端提供输入处理、候选词生成和词典管理等底层能力。

核心能力

  • 模块化可扩展的跨平台 C++ 输入法引擎
  • 支持形码与音码等多种中文输入方案
  • 内置繁体中文及经 OpenCC 转换简体等标准
  • 用 YAML 语法的 Rime 输入方案 DSL 快速试验设计
  • 提供 Spelling Algebra 生成变体拼写,适合方言

容易踩的坑

这是核心库,需搭配 ibus-rime、Squirrel、Weasel 等前端才能实际使用;构建依赖 cmake>=3.12、libboost>=1.74、libopencc>=1.0.2 等版本要求;macOS 与 Windows 需按 README-mac.md、README-windows.md 单独构建

内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README

最近发版

5 个版本1.17.0
  1. latestNightly Buildpre-release2026-11-09 · 2026-11-09 13:30 UTC

    这个版本没有写更新说明。

  2. 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

  3. 1.16.1librime 1.16.12026-01-20 · 2026-01-20 00:43 UTC
    查看更新说明

    Bug Fixes

    • navigator: 插入輸入碼再向右移動 (居戎氏)

    Builds

    Chores

    Commits

    • 58e51c5: fix(SwitcherSettings):load schema list when default.custom.yaml is absent (#1126) (fxliang) #1126
  4. 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
  5. 1.15.0librime 1.15.02025-11-24 · 2025-11-24 09:50 UTC
    查看更新说明

    Features

    • clear composition with a abortcomposition notification (#1054) #1054 (fxliang)

    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

    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

    Chores

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    RIME: Rime Input Method Engine

    Build status GitHub release License

    Rime with your keystrokes.

    Project home

    rime.im

    License

    The 3-Clause BSD 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

    Packaging status

    Frontends

    Official:

    Community:

    Plugins

    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:

    Contributors