What packages should I install to be able to write Japanese from KDE 6 and have good integration with it?

I’m a bit lost as to what fcitx5 packages I should install in order to be able to type in Japanese from KDE 6, having a good integration with it, due to the large amount of packages available in both the Arch and AUR repositories.

Can anyone please tell me which packages I should install and from which repositories to have the best possible Japanese language typing integration in KDE 6?

You’ll have to do some reading regarding this: https://wiki.archlinux.org/title/Fcitx5#Integration

As far as packages are concerned, the below command should cover it.

sudo pacman -S fcitx5 fcitx5-mozc fcitx5-qt fcitx5-gtk fcitx5-configtool noto-fonts-cjk

After this, you’ll need to set up the environment variables so that fcitx5 works correctly with KDE 6. Add the following lines to your /etc/environment file:

GTK_IM_MODULE=fcitx
QT_IM_MODULE=fcitx

Based on: https://wiki.archlinux.org/title/Fcitx5#IM_modules

It’s possible that adding the following line as well may help:

XMODIFIERS=@im=fcitx

Based on: https://wiki.archlinux.org/title/Fcitx5#XIM

Then, set fcitx5 to start automatically by adding it to your autostart applications in KDE System Settings.

Finally, log out and log back in (or restart your system).

Read through the wiki link for any further configuration you may need. Everything is there, I believe.

OK, I have managed to install and configure it by installing the following packages:

For KDE:

  • extra/fcitx5 5.1.10-1 (8.3 MiB 17.3 MiB) [fcitx5-im]
    Next generation of fcitx
  • extra/fcitx5-qt 5.1.6-4 (463.5 KiB 1.8 MiB) [fcitx5-im]
    Fcitx5 Qt Library (Qt5 & Qt6 integrations)
  • extra/fcitx5-mozc 2.26.4632.102.g4d2e3bd-2 (15.2 MiB 29.4 MiB)
    Fcitx5 Module of A Japanese Input Method for Chromium OS, Windows, Mac and Linux (the Open Source Edition of Google Japanese Input)
  • extra/fcitx5-breeze 3.0.0-1 (10.5 KiB 49.0 KiB)
    Fcitx5 theme to match KDE’s Breeze style.
  • extra/fcitx5-configtool 5.1.6-1 (513.1 KiB 1.8 MiB) [fcitx5-im]
    Configuration Tool for Fcitx5

After installing it, you have to start fcitx5 if it doesn’t start by itself, go to System Settings–>Keyboard–>Virtual Keyboard and select Fcitx 5 Wayland Launcher:

Then go to System Settings–>Input Method On and click on Add Input Method. Select Mozc and add it.

Then select Mozc, select the configuration and select Language: Japanese and Layout: Japanese

With this you’re done, now you just have to change the keyboard in KDE when you want to use Japanese:

image


For GNOME:

  • extra/fcitx5 5.1.10-1 (8.3 MiB 17.3 MiB) [fcitx5-im]
    Next generation of fcitx
  • extra/fcitx5-mozc 2.26.4632.102.g4d2e3bd-2 (15.2 MiB 29.4 MiB)
    Fcitx5 Module of A Japanese Input Method for Chromium OS, Windows, Mac and Linux (the Open Source Edition of Google Japanese Input)
  • extra/fcitx5-configtool 5.1.6-1 (513.1 KiB 1.8 MiB) [fcitx5-im]
    Configuration Tool for Fcitx5
  • extra/fcitx5-gtk 5.1.3-1 (81.8 KiB 367.6 KiB) [fcitx5-im]
    Fcitx5 gtk im module and glib based dbus client library

-Input Method Panel shell extension
Input Method Panel using KDE’s kimpanel protocol for Gnome-Shell

Once everything is installed, go to the fcitx5 configuration option and add Mozc:

image

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.