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 + `