RIME Input Method Engine (RIME)

Rime input method engine (RIME) is an excellent input method application, which can be run on a variety of platforms, e.g., Linux, MacOS, and Windows.

RIME does not come with a frontend. Therefore, RIME as well as its frontend (e.g., fcitx5 or ibus) can be installed together.

pacman -S librime fcitx5-im

Among the RIME solutions, wanxiang is a good choice. On ArchLinux, it can be easily installed by

yay -S rime-wanxiang-updater

After the installation, run rime-wanxiang-updater to update the data and complete the configuration.

Besides setting the environment variables (referred to hyprland), another configuration file for further customization ~/.local/share/fcitx5/rime/wanxiang.custom.yaml is necessary, e.g.,

patch:
  translator/enable_user_dict: true
  menu/page_size: 9
  key_binder/bindings:
    - { when: paging, accept: comma, send: Page_Up }
    - { when: has_menu, accept: period, send: Page_Down }
  switches:
    - name: ascii_mode
      states: [ 中文, 英文 ]
      reset: 0
    - name: ascii_punct
      states: [ 中标, 英标 ]
      reset: 0
    - name: full_shape
      states: [ 半角, 全角 ]
      reset: 0
    - options: [ s2s, s2t, s2hk, s2tw ]
      states: [ 简体, 通繁, 港繁, 臺繁 ]
      reset: 0
    - name: abbrev
      states: [ 简码关, 简码开 ]
      reset: 1
    - options: [comment_off, tone_hint, toneless_hint]
      states: [ 注释关, 有声调, 无声调 ]
      reset: 1