Installing the Chinese version of the Linux system may not be a good choice, so I chose English during installation. However, the Chinese input method is something I must use.
The main content of this article includes:
- Enabling the built-in Chinese input method in Ubuntu
- Installing and configuring the Rime input method
Enabling the built-in Chinese input method in Ubuntu#
If Chinese is not selected as the system language, the Chinese option in the input method is partially missing.
First, run
sudo apt-get install ibus-pinyin
Then restart the system. After completion, go to
Settings -> Region & Language -> Input Sources
Select
"+" -> Chinese -> Chinese (Intelligent Pinyin)
Installing and configuring the Rime input method#
First, go to the Rime official website: https://rime.im/
Click on "Install on Linux" and find "ibus-rime". Click to view and go to the Github repository page.
Only need to run
sudo apt-get install ibus-rime
After restarting, enter
ibus-setup
Click on "Input Method" -> "ADD" -> "Chinese"
Find Rime and click "Add".
Basic configuration of Rime
1. Set the output language to Simplified Chinese#
Focus on any input field and press "F4" to bring up the "Schema Menu"
Select "Simplified Chinese"
2. Change the number of candidate words to 9 (you can change more if you want)#
cd ~
cat .config/ibus/rime/default.custom.yaml EOF
patch:
"menu/page_size": 9
EOF
3. Adjust the candidate window to display horizontally#
cd ~
cat .config/ibus/rime/ibus_rime.yaml EOF
style:
horizontal: true
EOF
After adjusting, you can click on the upper right corner to deploy and wait for the reload. If it fails and you are sure the previous steps are correct, you can try restarting the computer.