Input Chinese pinyin with tones on Linux with fcitx

The aim is to type pinyin with tones directly like typing Chinese:

nǐ hǎo!

rime-lumen-pinyin

I also installed a double pinyin flypy to type Chinese.

Assume you alrady have fcitx on your system. Ibus or fcitx-5 should be similar.

Install Rime. This is the input method.

yain fcitx-rime

Install Plum to configure Rime.

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

As we use fcitx here, we need to run:

rime_frontend=fcitx-rime bash rime-install

bash rime-install double-pinyin

For the pinyin github I copeid the file to My home/.config/fcitx/rime/.

My home/.config/fcitx/rime/default.custom.yaml

patch:
  schema_list:
    - schema: double_pinyin_flypy
    - schema: lumen_pinyi

Restart the input system. Switch to Rime, right click to deploy.

Ctrl + ` to configure the Rime input method, e.g. to use simplified Chinese instead of traditional one.