Using Rime data on Debian ========================= Install and select Rime ----------------------- Install the frontend for your input framework: ibus-rime for IBus, or fcitx5-rime for Fcitx 5. Enable Rime in that framework's input method settings. Selecting the Rime engine and selecting a schema inside Rime are separate steps. A schema defines a typing method, such as Pinyin or Cangjie. The librime-data metapackage depends on the shared configuration and vocabulary and recommends the six schema packages used by the default menu: Schema ID Debian package luna_pinyin rime-data-luna-pinyin bopomofo rime-data-bopomofo cangjie5 rime-data-cangjie5 quick5 rime-data-quick5 stroke rime-data-stroke terra_pinyin rime-data-terra-pinyin With the usual APT settings, installing a frontend also installs these recommended packages. A new user can use this default selection without creating default.custom.yaml. If you use --no-install-recommends, install the schema packages you want explicitly. For example, as root: apt install --no-install-recommends ibus-rime rime-data-quick5 Use fcitx5-rime instead of ibus-rime if you use Fcitx 5. Configure the schema list as described below if you only install part of the default collection. Find your user directory ----------------------- IBus: ~/.config/ibus/rime Fcitx 5: ~/.local/share/fcitx5/rime For Fcitx 5, a nonempty FCITX_DATA_HOME changes this to $FCITX_DATA_HOME/rime. Otherwise, a nonempty XDG_DATA_HOME changes it to $XDG_DATA_HOME/fcitx5/rime. The Rime configuration page in Fcitx 5 has a "User data dir" action to open the directory. IBus Rime currently uses the path shown above even if XDG_CONFIG_HOME is set. Changes below are made as your normal user in the directory for the frontend you use. Create the directory if necessary. Keep customizations in *.custom.yaml; files in /usr/share/rime-data are managed by packages, and files in the user build/ directory are generated during deployment. IBus and Fcitx 5 use separate user directories, including separate learned dictionaries. Choose schemas -------------- Installing a schema package makes its files available. To enable a schema outside the default menu, add its ID to schema_list in default.custom.yaml. To choose an explicit menu, for example only Pinyin and Quick, use: patch: schema_list: - schema: luna_pinyin - schema: quick5 Install both corresponding packages first. This replaces the entire schema list. If you already have a schema_list, add or remove entries in that existing list instead of replacing it with this example. Keep your other settings. To keep the default menu and append a non-default schema, first install its package, for example rime-data-double-pinyin, then use: patch: "schema_list/+": - schema: double_pinyin If default.custom.yaml already has a patch mapping, add this setting inside that mapping; do not add a second patch key. Use this append form when you have not also overridden schema_list. With an explicit schema_list, add the new entry directly to that list instead. Append does not remove duplicates: do not add a schema which is already present. Quick (quick5) is already in the default menu. Deploy and start typing ----------------------- After installing schema data or changing a custom file, choose Deploy from the Rime menu in Fcitx 5, or the Deploy (部署) action in IBus Rime. Deployment applies the configuration and prepares any data needed by your customization. Wait for it to finish, then focus a text field with Rime active and press F4 or Ctrl+grave (Ctrl+`) to select a schema. These shortcuts can be customized. Package installation does not edit your schema_list or user dictionaries. If an existing custom list omits Quick, installing rime-data-quick5 alone does not add it: add quick5 to that list and deploy again. No root command is needed to deploy your personal configuration. Further customization examples are available in the upstream guide: https://github.com/rime/home/wiki/CustomizationGuide