Fcitx Anthy doesn't work

Hello.
To input Japanese, I installed as follows and edited the /etc/environment file.
$ sudo dnf install fcitx-anthy fcitx-configtool fcitx-gtk2 fcitx-gtk3 fcitx-qt5 kcm-fcitx
$ sudo nano /etc/environment
export QT_IM_MODULE=fcitx
export XMODIFIERS="@im=fcitx"
But fcitx-anthy doesn’t work.
If you know how to solve the problem, please give me a professor.
OpenMandriva Lx version:4.1

Hello @pure and welcome to OpenMandriva and our forum.

Do you feel up to filing a bug report on this. That would be best way to get attention of developers and translation team and hopefully getting a few folks to look in to this issue.

Alternatively you could go on #openmandriva @ Freenode on IRC. You will need to be patient as we are a small group but eventually we’ll get you in touch with a developer or someone knowledgeable on this type of issue.

I am thinking of submitting a bug report on this issue.
And I can wait patiently to solve this problem.

OK. This issue most likely will require patience to get resolved.

Don’t hesitate to ask here or on IRC if you need any help with bug report or anything regarding OM.

Hello.
“Anthy” is not displayed in the input method settings.
“Anthy” is not displayed in “Input Method Settings” in the KDE system settings.

You may need to modify the fcitx-autostart.desktop file settings slightly.
My skills are not enough to solve this problem.

[usuha@strawberry ~]$ cat ~/.config/autostart/fcitx-autostart.desktop
[Desktop Entry]
Name=Fcitx
Name[ca]=Fcitx
Name[da]=Fcitx
Name[de]=Fcitx
Name[es]=Fcitx
Name[ja]=Fcitx
Name[ko]=Fcitx
Name[ru]=Fcitx
Name[zh_CN]=Fcitx
Name[zh_TW]=Fcitx
GenericName=Input Method
GenericName[ca]=Mètode d’entrada
GenericName[da]=Inputmetode
GenericName[de]=Eingabemethode
GenericName[es]=Método de entrada
GenericName[ja]=入力メソッド
GenericName[ko]=입력기
GenericName[ru]=Метод ввода
GenericName[zh_CN]=输入法
GenericName[zh_TW]=輸入法
Comment=Start Input Method
Comment[ca]=Inicia el mètode d’entrada
Comment[da]=Start inputmetode
Comment[de]=Eingabemethode starten
Comment[ja]=入力メソッドを開始
Comment[ko]=입력기 시작
Comment[ru]=Запустить метод ввода
Comment[zh_CN]=启动输入法
Comment[zh_TW]=啓動輸入法
Exec=fcitx-autostart
Icon=fcitx
Terminal=false
Type=Application
Categories=System;Utility;
StartupNotify=false
NoDisplay=true
X-GNOME-Autostart-Phase=Applications
X-GNOME-AutoRestart=false
X-GNOME-Autostart-Notify=false
X-KDE-autostart-after=panel
X-KDE-StartupNotify=false
[usuha@strawberry ~]$

Thank you.

@pure Thank you very much for the information, I’m daily using anthy on Rome (the coming OM 5) at the moment and was using OM 4.3 a few months ago. I can confirm you don’t need to edit anything in /etc/environment

If you are still with us, here are a few additional hints to activate fctix (version 4)

Step 1: Install the required packages

Basically you need :

  • kcm-fcitx if you are on KDE + fcitx-qt5 (especially if you want to use qt apps in Gnome)
  • fcitx-gtk* variants for the non QT apps
  • fcitx-anthy input method for the Japanese keyboard (or another variant for Chinese or Korean)

At your time, there were probably some dependencies issues remaining, to be able to write Japanese kanjis make sure the following packages are also installed as well:

  • anthy (the package containing the binary)
  • locales-ja (recommended)
  • locales-extra-charsets (you need more than the basics)
  • dbus-daemon (to -auto- restart fcitx)

Step 2: Activate the input

To be able to use the input method in different situations,
you just need to do the setup by yourself following the official guideline here:
https://fcitx-im.org/wiki/Configure_(Other)

Basically adding the following line at the end of your .bash_profile is enough.
Yes, .bash_profile, not .bashrc or a custom file in /etc/environment/

export INPUT_METHOD=fcitx
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS=@im=fcitx

Step 3: Autostart

Still following the same guideline, copy the reference .desktop file to your use folder :

cp /usr/share/applications/fcitx.desktop ~/.config/autostart/fcitx.desktop

Here is an exemple of the one I’m using :

[Desktop Entry]
Name=Fcitx
Name[ca]=Fcitx
Name[da]=Fcitx
Name[de]=Fcitx
Name[es]=Fcitx
Name[ja]=Fcitx
Name[ko]=Fcitx
Name[ru]=Fcitx
Name[zh_CN]=Fcitx
Name[zh_TW]=Fcitx
GenericName=Input Method
GenericName[ca]=Mètode d'entrada
GenericName[da]=Inputmetode
GenericName[de]=Eingabemethode
GenericName[es]=Método de entrada
GenericName[ja]=入力メソッド
GenericName[ko]=입력기
GenericName[ru]=Метод ввода
GenericName[zh_CN]=输入法
GenericName[zh_TW]=輸入法
Comment=Start Input Method
Comment[ca]=Inicia el mètode d'entrada
Comment[da]=Start inputmetode
Comment[de]=Eingabemethode starten
Comment[ja]=入力メソッドを開始
Comment[ko]=입력기 시작
Comment[ru]=Запустить метод ввода
Comment[zh_CN]=启动输入法
Comment[zh_TW]=啓動輸入法
Exec=fcitx-autostart
Icon=fcitx
Terminal=false
Type=Application
Categories=System;Utility;
StartupNotify=false
X-GNOME-AutoRestart=false
X-GNOME-Autostart-Notify=false
X-KDE-autostart-after=panel
X-KDE-StartupNotify=false

Restart your computer and it should work :sunglasses:

TroubleShootings

If fcitx appears in the system tray but disappears after a few seconds, or doesn’t show up,
in ~/.config/autostart/fcitx.desktop as you probably figure it out by yourself, try to use fcitx-autostart instead of fctix for the [exec] param. The script will add a 2sec delay and check as well for exising instances before launching.

If you can’t activate the input in some gtk apps for example, you might need to tune a bit some environment variables as described here :
https://fcitx-im.org/wiki/Input_method_related_environment_variables

In my case I had to manually activate the input module in gtk with the following commands:

sudo gtk-query-immodules-2.0 --update-cache
sudo gtk-query-immodules-3.0-64 --update-cache

Anyway your bash_profile should be enough, no need to mess with /etc/ :slight_smile:

Cheers & Peace

1 Like

Thank you @peter-power-594
I copied your how-to in Resources.

1 Like