Skip to content
rimePublic

About

東風破 /plum/: Rime configuration manager and input schema repository

Resources

Stars

2.0k stars

Watchers

34 watching

Forks

Repository files navigation

東風破 /plum/

Rime configuration manager and input schema repository

Project home

rime.im

Introduction

/plum/ is a configuration manager for Rime input method engine.

/// 東風破 是 中州韻輸入法引擎 的配置管理工具。///

It's designed for Rime users to install and update the default configuration and a collection of data packages maintained by Rime Developers.

It also works perfectly well with personal configuration hosted on GitHub and input schema packages from third-party developers.

A Rime input schema (Rime 輸入方案) defines the rules of a specific "input method", or in technical terms how user input sequences are interpreted by the Rime input method engine. It consists of a configuration file named <schema_id>.schema.yaml, and usually an optional Rime dictionary (韻書) file named *.dict.yaml.

A package may contain one or several interrelated input schemata and their affiliated Rime dictionaries. A package is also good for publishing general configuration files and data files used by Rime.

In /plum/ terms, a re-usable piece of configuration is known as a recipe (配方), denoted by the "℞" symbol.

A data package itself can be a recipe, this is the common case. In the future, /plum/ will support more fine-grained recipes that allow you to select what to install from a package, or even take parameters like the target input schema to customize.

Packages

This is an index of the packages maintained by Rime Developers as separate projects.

These packages aim to offer a sensible default configuration for most users, and support various Chinese input methods including those based on modern dialects and historical Chinese phonology.

/// 配方一覽 ///

Essentials

  • ℞ prelude: 基礎配置 / the prelude package, providing Rime's default settings
  • ℞ essay: 八股文 / a shared vocabulary and language model

Phonetic-based input methods

Modern Standard Mandarin

  • ℞ luna-pinyin: 朙月拼音 / Pinyin input method for Traditional Chinese
  • ℞ terra-pinyin: 地球拼音 / School-taught Pinyin, with tone marks
  • ℞ bopomofo: 注音 / Zhuyin (aka. Bopomofo)
  • ℞ pinyin-simp: 袖珍簡化字拼音

Derivatives of Pinyin

  • ℞ double-pinyin: 雙拼 / Double Pinyin (ZiRanMa, ABC, flyPY, MSPY, PYJJ variants)
  • ℞ combo-pinyin: 宮保拼音 / Combo Pinyin, a chord-typing input method
  • ℞ stenotype: 打字速記法 / a stenographic system derived from ABC Easy Shorthand

Other modern varieties of Chinese

  • ℞ cantonese: 粵語拼音 / Cantonese
  • ℞ jyutping: 粵拼(無聲調) / Cantonese (without tones)
  • ℞ wugniu: 上海吳語 / Wu (Shanghainese)
  • ℞ soutzoe: 蘇州吳語 / Wu (Suzhounese)

Middle Chinese

  • ℞ middle-chinese: 中古漢語拼音 / Middle Chinese Romanization

Shape-based input methods

  • ℞ stroke: 五筆畫 / five strokes
  • ℞ cangjie: 倉頡輸入法 / Cangjie input method
  • ℞ quick: 速成 / Simplified Cangjie
  • ℞ wubi: 五筆字型
  • ℞ array: 行列輸入法
  • ℞ scj: 快速倉頡

Miscellaneous

  • ℞ emoji: 繪文字 / input emoji with English or Chinese Pinyin keywords
  • ℞ ipa: 國際音標 / International Phonetic Alphabet

Usage (/plum/ 2.0 -- rime-cli)

/plum/ 2.0 is powered by rime-cli (with the rime-plum Rust library) -- a single native tool integrating recipe catalog resolution, dependency planning, offline librime dictionary compilation, testing, and cross-platform frontend deployment.

/// 東風破² 由 rime-cli (rime-plum) 驅動, 無需 Rust 工具鏈, 即可從 GitHub Releases 一鍵安裝至 ~/.rime/bin 並自動配置 PATH. ///

macOS & Linux

curl -fsSL https://raw.githubusercontent.com/rime/plum/master/rime-install | bash

Pass extra arguments after -- to immediately invoke rime (or legacy /plum/ package names) right after installation:

# Install rime-cli and immediately open the interactive recipe menu
curl -fsSL https://raw.githubusercontent.com/rime/plum/master/rime-install | bash -s -- install --select --deploy --frontend auto

# Install rime-cli and deploy preset schemas
curl -fsSL https://raw.githubusercontent.com/rime/plum/master/rime-install | bash -s -- :preset

Linux note: The prebuilt Linux binary dynamically links against system librime. Install librime from your distribution package manager if not already present (e.g. sudo apt install librime1, sudo pacman -S librime, or sudo dnf install librime).

Quick start with rime

Once installed to ~/.rime/bin:

# Inspect workspace (~/.rime), staging paths, and auto-detected Rime frontends
rime env

# Browse recipes in the active catalog
rime list
rime list -l :preset

# Interactive multi-select menu (arrow keys, space to toggle, / to filter)
rime install --select --deploy --frontend auto

# Install & deploy preset or individual schemas (with space-separated params)
rime install :preset --deploy --frontend auto
rime install prelude luna-pinyin :octagram schema=luna_pinyin variant=hans --deploy --frontend auto

# Preview execution plan without modifying files
rime install --dry-run :preset

Live official catalog (catalog.toml)

This repository ships catalog.toml as the upstream official recipe catalog for /plum/ 2.0. rime-cli works offline-first with a built-in snapshot; to follow upstream catalog updates from rime/plum, add the following to ~/.rime/config.toml:

catalogs = ["rime/plum"]

[profile.default]
frontend = "auto"

You can also reference sub-recipes directly from this repository, e.g. rime install rime/plum:extra --deploy.

Updating rime-cli & Legacy /plum/ v1 compatibility

Re-run the one-liner (or bash rime-install plum / bash rime-install --update) at any time to update rime-cli to the latest GitHub Release.

Existing rime-install invocations and environment variables remain supported:

  • Legacy arguments (:preset, :extra, :all, --select, luna-pinyin, user/repo@branch) are automatically translated to rime install --deploy (honoring rime_dir, rime_frontend, and no_update=1).
  • Legacy v1-only syntax (*-packages.conf, direct URLs, or double-colon YAML recipe options like emoji:customize:schema=luna_pinyin) automatically falls back to the preserved scripts/install-packages.sh.
  • Set plum_legacy=1 (Unix) or set use_plum_v1=1 (Windows) to explicitly invoke the legacy v1 scripts.

Windows

Option 1: PowerShell one-liner (Recommended)

Run in PowerShell to download the latest rime.exe + rime.dll into %USERPROFILE%\.rime\bin and add it to your User PATH (no Git Bash or 7-Zip required for .zip releases; falls back to tar.exe / 7z automatically if only .7z is present):

irm https://raw.githubusercontent.com/rime/plum/master/rime-install.ps1 | iex

/// Windows 用家在 PowerShell 執行以上命令即可一鍵安裝 rime 至 %USERPROFILE%\.rime\bin, 隨後運行 rime install --select --deploy --frontend auto 選擇並部署輸入方案. ///

Option 2: Weasel / rime-install-bootstrap.bat

For Weasel 0.11+ ("輸入法設定 / 獲取更多輸入方案") or the standalone bootstrap bundle:

  • rime-install-bootstrap.bat continues to fetch rime-install.bat and rime-install-config.bat and create a desktop shortcut.
  • Running rime-install.bat now installs/updates rime.exe to %USERPROFILE%\.rime\bin and adds it to PATH immediately in the open prompt.
  • Passing recipe arguments (rime-install :preset, rime-install --select, rime-install luna-pinyin) delegates to rime.exe install --deploy using rime_dir from rime-install-config.bat.
  • Dragging a local .zip package onto the shortcut, passing *-packages.bat, or setting set use_plum_v1=1 continues to work via the preserved legacy batch fallback.

Environment variable overrides

All installer scripts (rime-install, rime-install.ps1, rime-install.bat) recognize:

  • RIME_CLI_REPO: GitHub release repository (default: lotem/rime-cli)
  • RIME_CLI_VERSION: Release tag or latest (default: latest)
  • RIME_WORKSPACE: Workspace root (default: ~/.rime)
  • RIME_BIN_DIR: Install directory for rime and bundled libraries (default: <RIME_WORKSPACE>/bin)
  • RIME_NO_MODIFY_PATH=1: Skip modifying shell rc / Windows User PATH

Install as shared data

The Makefile builds and installs Rime data as a software on Unix systems.

For downstream packagers for the package management systems of the OS, it's recommend to create separate packages for the /plum/ configuration manager (possibly named rime-plum or rime-install) and the data package(s) (possibly named rime-data, or rime-data-* if separated into many) created by the make targets.

Build dependencies

  • git
  • librime>=1.3 (for rime_deployer)

Run-time dependencies

  • librime>=1.3
  • opencc>=1.0.2

Build and install

The default make target uses git command to download the latest packages from GitHub.

make
sudo make install

You can optionally build the by default enabled input schemas to binaries. This saves user's time building those files on first startup.

make preset-bin

License

Code in the rime/plum repository is licensed under LGPLv3. Please refer to the LICENSE file in the project root directory.

Note that make targets provided by the Makefile may include files downloaded by the configuration manager. Individual packages can be released under different licenses. Please refer to their respective LICENSE files. The license compatible with all the maintained packages is GPLv3.

Credits

We are grateful to the makers of the following open source projects:

Also to the inventors of the following input methods:

  • Cangjie / 倉頡輸入法 by 朱邦復
  • Array input method / 行列輸入法 by 廖明德
  • Wubi / 五筆字型 by 王永民
  • Scj / 快速倉頡 by 麥志洪
  • Middle Chinese Romanization / 中古漢語拼音 by 古韻

Contributors

This software is a result of collective effort. It was set up by the following people by contributing files, patches and pull-requests. See also the contributors page for a list of open-source collaborators.

About

東風破 /plum/: Rime configuration manager and input schema repository

Resources

Stars

2.0k stars

Watchers

34 watching

Forks

Releases

Packages

Used by

Contributors

Languages