- Install and Configure Rime for iBus
- Install and Configure Pinyin for iBus
- Install and Configure Google Pinyin for iBus
- Install and Configure Rime for Fcitx
- Install and Configure Google Pinyin for Fcitx
- Remove Google Pinyin for Fcitx and Restore Rime for iBus
- Switch Between iBus and Fcitx
- Issues
Install and Configure Rime[1][2] for iBus
$sudo apt-get update $sudo apt-get install ibus-rime
After installation, add Rime to iBus:
- Reboot or logout then login again.
- “Settings” → “Region & Language” → Add an input source by searching “rime” and select “Others” → “Chinese(Rime)” or “Chinese(Taiwan)” → “Chinese(Rime)”.
More Rime settings[3], use the accelerator: [Ctrl] + [`]
- Punctuation: “中/半/。”→”.,→。,”
- Input Method: “朙月拼音.臺灣正體” (space to input)、”朙月拼音” (space to input)、”朙月拼音.語句流” (space to select and need extra enter to input)
To accelerate keyboard layout switching in iBus:
$sudo gsettings set org.freedesktop.ibus.general switcher-delay-time -1
It is a known issue since GNOME 3.28 to 3.34 (Ubuntu 18.04, 18.10, 19.10)[4][5][6].
To customize displayed candidates, look for “page_size: 5” in “~/.config/ibus/rime/build/default.yaml”. Only 1 to 9 is allowed. MUST have a space between the colon and the number.
If the “~/.config/ibus/rime/build/luna_pinyin.schema.yaml ” exists, the “page_size” setting would overwrite the defaul in luna pinyin(朙月拼音). Edit the “luna_pinyin.schema.yaml” instead.
On 2020/6/23, iBus has no problems with OneNote but the input and candidates are both invisible in GoogleDoc.
Install and Configure Pinyin[7] for iBus
- Search for “ibus pinyin” in “Ubuntu Software”.
- Install the one from the developer: “ubuntu-bionic-updates-main”.
- Reboot or logout then login again.
- “Settings” → “Region & Language” → Add an input source by searching “pinyin” and select “Others” → “Chinese(Intelligent Pinyin)”.
More Pinyin settings, select and click on the gear icon:

- If both Rime and Pinyin are installed, use [Super] + [Space] and hold for a half-second will display a list of all available input sources. Or it would switch between the selected Chinese input method and English immediately.
- Once installed, it cannot be removed by “Ubuntu Software”. It could be removed from the “Input Sources” list in “Settings”.
- It is based on libpinyin which uses a more advanced algorithm (2-gram vs libgooglepinyin’s unigram) and supports more features[8] than Google Pinyin.
Install and Configure Google Pinyin for iBus[9]
The latest update is 2013/10/18 as checked on 2020/4/23. “ibus-googlepinyin” is not found using the apt-get command.
It is suggested to use the variation.[10] Both are based on libgooglepinyin.
Install and Configure Rime for Fcitx[11]
$sudo apt-get update $sudo apt-get install fcitx fcitx-rime
After installation, change the input method:[13]
- Run the command: $im-config. If it is not available, run “$sudo apt-get install im-config” to install.
- Select “fcitx” as the “user configuration”.
- Reboot.
- “Settings” → “Region & Language” → “Manage Installed Languages”.
- “Fcitx” should be selected in the “Keyboard input method system”.
- Click on Fcitx’s icon on top, “Configure” → “+” in the “Input Method” tab → Disable “Only Show Current Language” → Add an input method by searching “rime” and select “Rime”.
- Make sure the accelerator in the “Trigger Input Method” in the “Global Config” tab is assigned. It must be different from the “Switch to next input source” in the GNOME Control Center (“Settings” → “Devices” → “Keyboard”) which is used by IBus.
To customize displayed candidates, look for “page_size: 5” in “~/.config/fcitx/rime/build/default.yaml”. Only 1 to 9 is allowed. MUST have a space between the colon and the number.
If the “~/.config/fcitx/rime/build/luna_pinyin.schema.yaml ” exists, the “page_size” setting would overwrite the defaul in luna pinyin(朙月拼音). Edit the “luna_pinyin.schema.yaml” instead.
Restart Fcitx to apply.
To change the background color of the candidate area, open the “Input Method Configuration” dialog in step 6. In the “Appearance” tab, enable the “Show Advanced Options” and manually set the “Skin Name” to ‘dark’. Selecting “skin/dark/fcitx_skin.conf” in the “Skin” list doesn’t work.
On 2020/6/23, Fcitx has no problems with GoogleDoc but sometimes a double entry in OneNote or crash.
Install and Configure Google Pinyin for Fcitx
The latest update is 2020/3/23 as checked on 2020/4/23. To use it, I also need to switch from iBus to Fcitx[12] input method framework.
$sudo apt-get update $sudo apt-get install fcitx fcitx-googlepinyin
After installation, change the input method:[13]
- Run the command: $im-config. If it is not available, run “$sudo apt-get install im-config” to install.
- Select “fcitx” as the “user configuration”.
- Reboot.
- “Settings” → “Region & Language” → “Manage Installed Languages”.
- “Fcitx” should be selected in the “Keyboard input method system”.
- Click on Fcitx’s icon on top, “Configure” → “+” in the “Input Method” tab → Disable “Only Show Current Language” → Add an input method by searching “google” and select “Google Pinyin”.
- Make sure the accelerator in the “Trigger Input Method” in the “Global Config” tab is assigned. It must be different from the “Switch to next input source” in the GNOME Control Center (“Settings” → “Devices” → “Keyboard”).

To switch between the default Simplified Chinese and Traditional Chinese, use [Ctrl] + [Shift] +[F]. It can be configured in the “Simplified Chinese to Traditional Chinese” in the “Addon” tab in Fcitx:[14]

Remove Google Pinyin for Fcitx and Restore Rime for iBus
$sudo apt-get remove fcitx fcitx-googlepinyin $sudo apt-get autoremove $sudo apt-get install ibus ibus-rime
After installation, restore Rime for iBus:
- Reboot or logout then login again.
- “Settings” → “Region & Language” → “Manage Installed Languages”.
- “iBus” should be selected in the “Keyboard input method system”.
- Reboot. Logout then login again won’t be able to use Rime to input Chinese.
If the GNOME Control Center is lost, reinstall by:[15]
$sudo apt-get update $sudo apt-get install gnome-control-center
- If Ubuntu use Unity instead of GNOME, install “unity-control-center” instead.[16]
- While removing “im-config”, “gnome-control-center” is removed, too.
Switch Between iBus and Fcitx
To switch among different input method framework, use im-config.
- Run the command: $im-config. If it is not available, run “$sudo apt-get install im-config” to install.
- Select “fcitx” or “iBus” as the “user configuration”.
- Reboot.
Issues
Cannot Switch Back to Chinese from English Mode in Rime
While using Rime with Fcitx, I notice it was in English mode with unknown accelerator. I cannot use [Shift] to switch back to Chinese mode.
The only solution is to hit the [F4] for [方案選單]. Use [2. 西/半/漢/。]→[2. 西文→中文] to switch to Chinese mode.
Reference
- RIME | 中州韻輸入法引擎:下載及安裝
- GitHub: RIME: RimeWithIBus
- GitHub: RIME: CustomizationGuide
- GNOME: Delay on keyboard layout switching
- AskUbuntu: iBus on busy system
- LaunchPad: Delay before you can type after switching input source
- GitHube: libpinyin: ibus-libpinyin
- Google Code: libgooglepinyin
- Ubuntu: ibus-googlepinyin package
- AskUbuntu: How can I find ibus-googlepinyin?
- Ubuntu: fcitx-googlepinyin package
- Fcitx
- ubuntu安装Google输入法
- Ubuntu 修改 谷歌输入法 简繁体切换的快捷键
- AskUbuntu: Restore Missing “Settings” (gnome-control-center) Icon in Ubuntu 18.04
- AskUbuntu: Missing System Settings after removing some packages
3 thoughts on “Install and Use Chinese Input in Ubuntu”