How to type non latin 「CJK」 characters on Linux

Tags: linux japanese tutorial video

『ON XUBUNTU』

➖ enter root environment ➖
  • sudo -i
➖ install package manager ➖
  • apt update
  • apt install synaptic
➖ search and mark for installation ➖
  • fcitx-mozc (japanese)
  • fcitx-sunpinyin (chinese)
  • fcitx-hangul (korean)

optionally, search for fonts i.e.: japanese, chinese, korean, cjk fonts

➖ initialize fcitx ➖
  • open fcitx
➖ configure fcitx ➖
  • open fcitx configuration
  • add input method using the “+” icon
  • uncheck “show only current language”
  • select mozc, sunpinyin or hangul
  • configure a shortcut to trigger the IM on the “Global Config” tab

enjoy it (๑˘︶˘๑)

『COMMAND LINE ONE SHOT』 (for japanese)

  • sudo apt update && sudo apt install fcitx-mozc -y

to set fcitx as default input method we need to set the Pluggable Authentication Modules.

create the file .pam_environment on your home and append these lines:

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

single commmand:

  • echo -e "GTK_IM_MODULE=fcitx\nQT_IM_MODULE=fcitx\nXMODIFIERS=@im=fcitx" >> ~/.pam_environment
➖ autostart at every login ➖

For Xubuntu / XFCE4

  • just go on the Settings > Session and Startup > Application Autostart > + Add >
Name: fcitx
Command: /usr/bin/fcitx

For other distributions

  • Same concept but the location of the autostart configuration really varies from distribution to distribution…

note:

it doesn't seem to work with multiple latin and non latin im, just 1 at a time.


『ON ARCH LINUX』

In addition to fcitx also install:

  • fcitx-gtk2
  • fcitx-gtk3
  • fcitx-qt5

or just install the group: fcitx-im.


avatar

Francesco Yoshi Gobbo | HomePage
self-taught freelancer.
Nov 29, 2019



© 2019 Francesco Yoshi Gobbo - P.IVA / VAT: IT-01572520052