23

Every time I restart my computer and want to type in Japanese, pressing Super+Space is not enough, I also have to select Hiragana in Mozc's menu:

Ubuntu Mozc IBus direct input hiragana

It gets me everytime. It is a bit like if your car's brake acted as an accelerator the first time you use it each day. Everyday the first time you brake you have to remember to push a lever. In other words: Incredibly annoying and a sure way to get accidents.

Apparently noone is motivated to fix the underlying problem, and there were talks that IBus would be replaced with Fcitx in 2015.10 (it did not).

Meanwhile, is there a quick way to fix this problem to avoid having to click that every time?

  • 4
    Same problem here after upgrade to 16.04. It works previously on 14.04. – bagustris May 23 '16 at 11:36
  • 2
    Not a solution, but I edited the keyboard shortcuts so that I now press super+space and then use alt+` to switch to hiragana input. This is under Tools->Properties and then "Customize" the keyboard map. – computermacgyver Jul 21 '16 at 20:07
  • @computermacgyver that workaround could be a partial solution and it adds value to this topic. Could you post that as answer? Mention that it is just a workaround. – user.dz Feb 2 '17 at 10:38
  • Looks like same unresolved question here askubuntu.com/questions/561486 – user.dz Feb 2 '17 at 10:40
  • @user.dz: They are very similar indeed, but that question asks for a shortcut, while I ask for a way to just make it start that way. – Nicolas Raoul Feb 9 '17 at 1:10
2

This is not an answer for the question but a work around for the problem.

If you have no problem to switch input method into fcitx

sudo apt install fcitx-mozc

Then it works almost the same as ibus-mozc and it remembers the choice of Hiragana/Katakana/Direct and etc.

1

Briefly skimming over this link, I think the general gist is that this isn't going to get "fixed?"

Anyway, I have a workaround. (At least on kde and xfce4.)

  • Run ibus-pref.
  • Go to Input Method, and hit the Preferences for Mozc.
  • Click on Customize... for Keymap style.
  • Hit Edit in the lower left corner and make a New Entry
  • This new entry should be for "Direct Input" and the action should be Activate IME.
  • As for the Key, be sure to pick something not frequently used by a lot of other applications.
  • You can also add another entry for Deactivate IME.

Restart after this. Or maybe just logout is enough? I do know that I only noticed this working after I did a restart, though.

  • Could you please detail how it works after you reboot? You just press the chosen key, and immediately you can start typing in Hiragana? – Nicolas Raoul Feb 24 '17 at 2:54
  • You may still have to use the super+space to switch. The system tray should tell you which input method you're on. You can also try qtconfig-qt4, go to Interface > Default Input Method, switch to ibus (found it here). After you're on the Mozc Input, you should just be able to press your selected key. (e.g. I chose insert for both table entries) – calculuswhiz Feb 24 '17 at 3:30
  • So the procedure is the following, right? : 1) Log in. 2) Press super+space. 3) Press the chosen key. 4) Type in hiragana. It does not fix the problem but it saves a few seconds at each login. It does not save the time lost during the "start typing おはよう - realize that ohayou came out - remember about this bug" sequence though. – Nicolas Raoul Feb 24 '17 at 3:45
0
  1. You can modifying the source code and rebuild
sudo apt install build-essential devscripts -y
sudo apt build-dep ibus-mozc -y
apt source ibus-mozc

2.cd ~
then find property_handler.cc
replace

  #if IBUS_CHECK_VERSION(1, 5, 0)
  const bool kActivatedOnLaunch = false;

with

  #if IBUS_CHECK_VERSION(1, 5, 0)
  const bool kActivatedOnLaunch = true;

or ! (this is another method. choose one) find commands.proto
replace

  enum CompositionMode {
  DIRECT = 0;
  HIRAGANA = 1;

with

  enum CompositionMode {
  HIRAGANA = 0;
  DIRECT = 1;
  1. build it
cd mozc*
dpkg-buildpackage -us -uc -b

4.sudo dpkg -i ibus-mozc*.deb (dfsg version)
5.reboot

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.