I’ve been struggling with Chinese character input, and am almost there (I think), but could really use some help. I can’t figure out how to get a dropdown selection menu with possible characters from pinyin input.
I’m using plasma and nixos unstable. This is the stanza I added to my configuration.nix based on the wiki:
In the plasma configuration I chose fcitx5 wayland in Virtual Keyboard, and I added the Chinese keyboard in Input Method.
I can switch between the two, and in English Shft-Ctl-H gives me popup autocompletions, but when I switch to the Chinese keyboard it doesn’t give any options. When doing Shft-Ctl-H I do see a brief popup window mentioning something about spell (?) but it disappears too fast for me to read it. The popup doesn’t appear when invoking Shft-Ctl-H when using the English keyboard, so I’m guessing I need to install some other package.
From your use of fcitx5-rime, I guess you would like to use the Rime Input Method Engine. It provides multiple flow-based input schema, including Pinyin and Bopomofo. Still, it would be helpful if you elaborate your expected setup.
I’m personally using the Chewing Input Method for Bopomofo input, using the Fcitx5 input method framework and fcitx5-chewing. I’m not familiar with the word hint functionality of Fcitx5. Do you have any successful experience making Fcitx5 word hint work to together with Rime on other platforms?
Pinyin entry would be much easier for me. According to the website “Ctl-" should give me a dropdown to select a character based on the pinyin I type. (That's what happens in English anyway with the hint-mode turned on without pressing "ctl-” so I thought it just looked different.) I wanted the Rime Engine because I understood it was the way to get the traditional characters instead of the simplified ones.
I have tried with ibus. When I select Ibus as virtual keyboard in kde I get the error message:
Please unset QT_IM_MODULE and GTK_IM_MODULE environment variables and 'ibus-daemon --panel disable' should be executed as a child process of ibus-ui-gtk3 component.
For clarity, this is what I have now:
i18n.inputMethod = {
enable = true;
type = "ibus";
ibus.engines = with pkgs.ibus-engines; [
mozc
table-chinese
rime
pinyin
];
};
I’m unclear how to add the input method in plasma itself. If I try to add it in the ibus preferences (from the toolbar icon), nothing related to Chinese comes up. Should I add a Chinese keyboard in system configuration?
Huh. Last time I used it was on Debian xfce actually, I just installed ibus-mozc there and it worked. I tried installing ibus-engines.mozc and some Japanese fonts on NixOS Plasma to try, I manually ran the application IBus Preferences from the Start menu and it returns an error, but the input method switcher is activated correctly, but on Debian it works much better. I don’t know if I need more packages or what, but the core functionality is there. Give it a try
BTW, have you installed kimpanel? It’s a necessity when using Fcitx5 on GNOME, but probably not on KDE. (GNOME chose to integrate with IBus only. Don’t know what they were thinking when making such a design decision.)