Baike.dev
All toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
L

librime

> 编程语言
Open source

Rime Input Method Engine, the core library

4.5K stars0 likes0 views
WebsiteGitHub

About

Rime Input Method Engine, the core library

RIME: Rime Input Method Engine

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:

  • macOS
  • Windows

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:

  • ibus-rime: IBus frontend for Linux
  • Squirrel: frontend for macOS
  • Weasel: frontend for Windows

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

  • 佛振
  • 鄒旭
  • Weng Xuetian
  • Chongyu Zhu
  • Zhiwei Liu
  • BYVoid
  • 雪齋
  • 瑾昀
  • osfans
  • jakwings
  • Prcuvu
  • hchunhui
  • Qijia Liu
  • WhiredPlanck

GitHub Issues· 0 open

View all on GitHub

No open issues yet, or sync has not completed.

Highlights

  • •A modular, extensible input method engine in cross-platform C++ code,
  • •Covering features found in a large variety of Chinese input methods,
  • •Built with native support for Traditional Chinese, conversion to Simplified
  • •Rime input schema, a DSL in YAML syntax for fast trying out innovative ideas
  • •Spelling Algebra, a mechanism to create variant spelling, especially useful
  • •Support for chord-typing with a generic Qwerty keyboard
  • •compiler with C++17 support
  • •cmake>=3.12
  • •libboost>=1.74
  • •libglog>=0.7 (optional)

> Tags

C++

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言