Fcitx5

Fcitx5 is an input method framework with a lightweight core, offering additional language support via addons. It is the successor to Fcitx.

Installation

Install the fcitx5 package.

fcitx5-im group provides fcitx5 ontology, #Configuration tool, and necessary #Input method module.

Note: fcitx5 has only a basic framework, it just gives English support. If you want to input other languages, such as Chinese or Japanese, you need an Input Method Engine (IME).

Chinese

Japanese

  • fcitx5-anthy, a popular Japanese input engine. However, it is not actively developed anymore.
  • , a Japanese Kana Kanji input engine, based on .
  • fcitx5-mozc, based on Mozc, the Open Source Edition of Google Japanese Input.
  • , a Japanese Kana Kanji input engine, based on .

Other languages

  • , for typing Korean hangul, based on libhangul.
  • , for typing Vietnamese characters.
  • or , for typing other miscellaneous languages — use the latter for typing IPA (X-SAMPA).

Input method module

To get a better experience, you should install the following modules as per your needs. Without them, the input method may still work on most applications but you might experience input method hang up, preview window screen location error, or no preview error.

  • For Qt programs, install .
  • For GTK programs, install .
  • For Qt4 programs, install fcitx5-qt4-gitAUR.
  • For Qt5 programs, install .
  • For Qt6 programs, install .
  • For date and time support, install .

Usage

Integration

Edit and add the following lines:

GTK_IM_MODULE=fcitx
QT_IM_MODULE=fcitx
XMODIFIERS=@im=fcitx

Desktop Environment Autostart

If you want Fcitx5 to autostart when you start your desktop, see Fcitx#Desktop Environment Autostart.

Tip: To see if Fcitx5 is working correctly, open an application and press Ctrl+Space to switch between input methods (when configured), and input some words.

Configuration

Configuration tool

The configuration file of fcitx5 is located at . Although you can use a text editor to edit the configuration file, you might find a GUI configuration tool much more convenient, so install the package.

Disable overriding XKB settings

By default Fcitx5 overrides X keyboard settings. (The ones you can set with setxkbmap command or graphical tools provided by desktop environments.) If you don't want that, run and uncheck Addons → XCB → Allow Overriding System XKB Settings.

Themes

The number of default themes is limited, you can find more themes on GitHub.

  • :Fcitx5 theme to match the KDE Breeze style.
  • Nord Color Themes.
  • : This theme gives a feeling like Microsoft PinYin. Its official repository is located at GitHub: Fcitx5-Material-Color. Its README.md file shows some beautiful configurations of one-line mode.
  • : Solarized color theme for Fcitx5.

Troubleshooting

Diagnose problems

If you have problems using fcitx5, eg. if fails to work in all applications, then the first thing you should try is to diagnose using fcitx5-diagnose. The output of fcitx5-diagnose should contain clues for the most common problems.

The newest WPS cannot use fcitx5

See WPS Office#Fcitx5 cannot input Chinese.

Fcitx5 has position errors in JetBrains IDEs

The root cause is the JBR come from IDE is not sure fully. To solve this problem, need:

1. Download this jbr and extract it: https://github.com/RikudouPatrickstar/JetBrainsRuntime-for-Linux-x64/releases 2. Change IDE's JBR according https://intellij-support.jetbrains.com/hc/en-us/articles/206544879-Selecting-the-JDK-version-the-IDE-will-run-under

Emoji show abnormally in the candidate box

1. Confirm you have a font with emoji support installed. (Such as noto-fonts-emoji)

2. Set the system font as for Simplified Chinese, for example.

3. Use this command to restart Fcitx5:

# kill `ps -A | grep fcitx5 | awk '{print $1}'` && fcitx5 &

Tips and tricks

How to view the Unicode encoding of selected characters

  • If you want to view the Unicode encoding of the selected text in a text editor, then directly select the text, and then use the shortcut keys to view the encoding of the selected text.
  • If you want to view the Unicode encoding of some text in a non-editable area (such as this wiki), you need to first copy the text to the clipboard, then click on any editable area (such as the search box), and then use the shortcut keys to view the encoding of the text in the clipboard.

Input special character

In general, for some simple symbols, such as , , á, , etc., you can enter them through Configuring compose key, but for more special symbols, such as , , , etc., you Either customize , or use Fcitx5's Unicode function to achieve.

Take as an example:

Position the cursor in any input box, and then press Ctrl + Alt + Shift + U, and then enter , you will see a variety of , other special characters are similar here.

Switching Halfwidth / Fullwidth Punctuation

For fcitx5-chinese-addons, fullwidth punctuation is used by default, one may use to switch between halfwidth and fullwidth punctuation.

This article is issued from Archlinux. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.