Skip to main content
Arch Alternate Language Input Setup

Arch Alternate Language Input Setup

·3 mins·
Author
Gabriel Baltazart
Undergraduate Student at the University of Alberta
Table of Contents

Introduction
#

While many languages use the 26 letters found on most computer keyboards, languages like Chinese, Korean, Japanese, or Arabic require different input methods. On Windows the process of adding a new language is simple enough: go to settings, add a new language, and everything is set up automatically.

On Linux the setup requires a little more effort, however that is the tradeoff for having more control over your system. This guide was written for an Arch + Wayland + Gnome environment. I’ll be installing pinyin input as an example, however the main ideas are generally applicable for other versions.

Font Support
#

It is important to install fonts to have support for displaying your input language. In my case I installed the following fonts for Chinese

  • adobe-source-han-sans-cn-fonts
  • adobe-source-han-sans-tw-fonts

As a bonus you can also install fonts for other languages to prevent the characters from appearing as unknown Unicode characters when you encounter them on the online

  • adobe-source-han-sans-kr-fonts
  • adobe-source-han-sans-jp-fonts
  • adobe-source-han-serif-jp-fonts

A great resource for finding fonts is the Arch Linux Wiki localization pages

Note

While installing fonts you can also use this as a chance to update your emoji support. I installed noto fonts, however there are a lot of other choices that are also viable

On Linux fonts can be installed through the package manager similar to installing packages

sudo pacman -S adobe-source-han-sans-cn-fonts
Note

You may need to restart your session for the fonts to display properly across your system

Installing an input method
#

There are many different types of input method choices for Linux. A comprehensive list can be found at https://wiki.archlinux.org/title/Input_method. For my use case I chose Fcitx5.

Fcitx5 requires a few extra components to work properly. For my language choice I needed to install a dictionary

sudo pacman -S fcitx5-pinyin-zhwiki

Gnome also requires the installation of the Input Method Panel extension to display properly. This can either be done through the AUR package gnome-shell-extension-kimpanel-git or by installing the extension from extensions.gnome.org

Extention listing on extensions.gnome.org

Configuration
#

Once all the pacakges are installed the system, the last step is to choose the desired languages. This can be done from the command line. Alternatively, there is a convieneint GUI tool that works with Fcitx5. The GUI tool can be installed with

 sudo pacman -S fcitx5-configtool 

Input methods can either be added by moving items from the right column over to the left column, or using the ‘Select system keyboard layout’ option.

In this example configuration the english and french keyboards were added from system layouts, and pinyin was selected from the list on the right.

For those who are used to the keyboard shortcuts from windows, you can change the keyboard shortcuts in the Fcitx Configuration app. The main change I made was to change “Toggle Input Method” to Super + Space

And that concludes the guide, happy typing!