Input Chinese pinyin with tones on Linux with fcitx

The goal is to type pinyin with tone marks directly from the Linux input method:

nǐ hǎo

The schema I used is rime-lumen-pinyin. I also keep a double-pinyin Flypy schema enabled for normal Chinese input.

This note assumes fcitx is already installed. ibus or fcitx5 should be similar, but the paths and frontend name may differ.

Install Rime, the input method engine:

yay -S fcitx-rime

Install Plum to configure Rime.

git clone https://github.com/rime/plum.git plum.git
cd plum.git
make

Because this setup uses fcitx, run Plum with the fcitx-rime frontend:

rime_frontend=fcitx-rime bash rime-install
bash rime-install double-pinyin

Copy the pinyin schema from the GitHub repository into:

~/.config/fcitx/rime/

Then edit:

~/.config/fcitx/rime/default.custom.yaml
patch:
  schema_list:
    - schema: double_pinyin_flypy
    - schema: lumen_pinyi

Restart the input system. Switch to Rime, then right-click the input method menu and deploy the configuration.

Use the Rime configuration shortcut to adjust options such as simplified Chinese output:

Ctrl + `

Related Posts

How to configure the DEFT Pro trackball on Linux

This is my Xorg configuration for the Elecom DEFT Pro trackball on Manjaro. Create this configuration file: /usr/share/X11/xorg.conf.d/99-trackball.confThe important part is `ButtonMap

read more

Use Pocket (read it later) on KOReader

Pocket does not integrate with KOReader directly, but news2reader can expose Pocket articles as an OPDS catalog. Useful links:[MobileRea

read more