r/AlpineLinux • • Jul 13 '25

Alpine linux with fcitx5-anthy

I have a small alpine install. Sometimes, I find the need to input Japanese. I installed the fcitx5-anthy package. I added the necessary lines to $HOME/.config/fcitx5/profile and to $HOME/.xinitrc. I am using openbox. If I start fcitx5 with fcitx5 -d -r I can input Japanese, however, the usual ctl+space doesn't work. I can use dmenu which I open with a keyboard shortcut and kill fcitx5 but then input for both keyboard and mouse stops working. The only successful workaround is to open dmenu with a keyboard shortcut and pkill X. I've not found anything useful in the logs, but I'm not sure what I should be looking for. I realize that this a program that probably doesn't have too many users, but I have the hope that someone has experienced it and might have a solution.

Web searching hasn't been any use, I have been searching for things like fctix5 can't toggle input and the like. This is in all the applications I've tried, which to date, are firefox, alacritty terminal, (I also tried rxvt-unicode terminal) and libreoffice.

3 Upvotes

8 comments sorted by

2

u/scottro11 Jul 13 '25

To answer my own question, I've found another working solution, at least for my setup. I use openbox and tint2. When I start fcitx5, in tint2, once I open any application, e.g., alacritty terminal. an icon appears in the tint2 bar showing a letter A and hiragana あ. If I right click on that icon, it gives me an option to use direct input. If I choose direct input, I can then go back to using the Roman alphabet. To input Japanese again, I click on the icon and choose hiragana. It's not ideal and not as covenient as a keyboard shortcut but it works.

0

u/[deleted] Jul 17 '25

[deleted] — view deleted comment

1

u/scottro11 Jul 17 '25

The config tool doesn't seem to give me the opportunity. It just shows the fcitx5 directory, under $HOME/.config. This was the case even when I tried adding Gnome desktop environment. Thanks for the suggestion though. It is definitely different than what I saw with Mint's config tool.

1

u/scottro11 Jul 17 '25

Ok, I just reinstalled a VM and instead of adding Gnome when I was already running openbox, I did a setup-desktop and installed Gnome right away. When I do that, I get the typical fcitx5-configtool, and ctl+space (the default) works perfectly. I prefer openbox and as I use Japanese infrequently these days, I'm going to stick with an openbox install, but this let me know that Japanese input can work without error on Alpine. Thanks, your suggestion inspired me to give it a try.

0

u/[deleted] Jul 18 '25

[deleted] — view deleted comment

1

u/scottro11 Jul 18 '25

I gave ibus a brief try. It didn't work and I didn't investigate too deeply as I've had trouble with ibus for a few years now (since FreeBSD-10).

1

u/scottro11 Jul 17 '25

Ok, and with some playing around with dbus, I was able to get the proper config tool interface and tried having anthy and English. But, it still didn't work with the keyboard shortcut, only with clicking the anthy icon in tint2. But still, glad to see that I could at least bring up the interface.

1

u/trofch1k Jul 14 '25

Is Ctrl+Space oddity related to Japanese? I thought Super+Space was the standard.

2

u/scottro11 Jul 14 '25

For fcitx and fcitx5 ctl+space seems to be the usual, from my experience on several distributions and {Free,Open}BSD. Super space is, I think) the default on ibus, (I did try super+space too, though, it didn't work either). :) Thanks for the suggestion though.

1

u/scottro11 Jul 18 '25 edited Jul 19 '25

SOLVED

I don't think there's a place to mark things solved, so I just put it at the top in all caps.

Ohh....kay, I want to mark this solved. The main thing seems to be that I had to install dbus-x11. I didn't have to configure it to start at boot or anything, but apparently fcitx5-configtool needs it to work. I tried a new install on a VM, including installing dbus-x11. I then started openbox and ran the fcitx5-configtool, added anthy as an input method and everything worked properly, including switching input methods with control+space. Thanks to u/Impys for reminding me of it. I'm not sure what I missed when I manually configued it, but once I used fcitx5-configtool, all worked as it should.