I have followed this wiki guide: https://wiki.archlinux.org/title/Localization/Japanese#Japanese_Input, picking Fcitx5 and Mozc, but I still don’t have a functioning setup after spending 3 evenings on it.

I have the IME selector in the top bar where I can select Mozc and the Mozc menus display just fine.


(Gnome doesn’t let me screenshot this menu, for some reason)

  1. But as you can see, the IME name is replaced by a white rectangle, I guess it should be a Japanese character.
  2. When I try typing with Mozc activated, the popup does appear and the output text is written in Japanese characters, which means I have correctly installed the Japanese font, but the popup contains white rectangles instead of Japanese characters.

I think this means that Gnome doesn’t find the Japanese font, but I couldn’t find in the guide how to tell Gnome to use it.

Can anyone give me a hint?

よろしくお願いします

Edit: For some reason fcitx5-config-qt, which is the UI to control the IME, started saying it could not find shared library libKF6WindowSystem.so.6 and refused to open, even though it did open before. So I had to install the related package kwindowsystem and the UI works again now.

Edit2:

By re-reading, I understood that Gnome already comes the IMF ibus installed. So I decided to remove everything I did for the IMF fcitx5 and just install the package ibus-mozc.

After that, I was able to set Japanese (Mozc) in Gnome Settings > Keyboard > Input Sources > Add Input Source > Japanese > Japanese (Mozc) > Add.

I am back to the point where I can select Mozc in the top bar, just a bit of a different style from fcitx5, and the Hiragana symbol in the bar still looks like a white rectangle.

Now, there’s progress in the candidate pop-up that does display Japanese characters. Except it is white on white and basically unreadable unless the item is selected.

This issue is mentioned here: https://wiki.archlinux.org/title/Mozc#Suggestion_window_is_blindingly_white_in_dark_mode, but the fix mentioned to set up an env var to fall back to the default ibus popup just turns my suggestions into white blocks.

The config entry to do the same documented here https://github.com/google/mozc/blob/master/docs/configurations.md#ibus-candidate-window has the same result.

I think I have to solve at least one of these issues:

  1. Have the Mozc candidate popup correctly render with white text on dark background.
  2. Have the default ibus popup correctly use the Japanese font I have installed.

One would be preferred as Mozc popup is supposed to be more helpful.

  • Jumuta
    link
    fedilink
    English
    arrow-up
    3
    ·
    edit-2
    5 days ago

    do you have cjk (chinese japanese korean) fonts?

    e.g. pacman -S noto-fonts-cjk on arch

    edit: I’m dumb and didn’t fully read the post, what cjk font do you have installed?

    also are you sure it’s installed system wide, not just as a user font?

    • oce 🐆@jlai.luOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      edit-2
      3 days ago

      I have installed one of the font package recommended in the wiki guide otf-ipa using yay.

      ❯ yay -Q | rg otf-ipa
      otf-ipafont 003.03-8
      
      ❯ locale -a
      C
      C.utf8
      en_US.utf8
      fr_FR.utf8
      ja_JP.utf8
      POSIX
      

      I think this installs system-wide, is there a way to check if it is the case?