New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a way to set hiragana as default? #381

Closed
GAumala opened this Issue Aug 27, 2016 · 3 comments

Comments

Projects
None yet
3 participants
@GAumala

GAumala commented Aug 27, 2016

I'm using Mozc 2.17.2240.102 in Arch Linux with the GNOME desktop environment. Everytime I switch to Mozc it starts in input mode "Direct Input" which doesn't write any hiragana. I have to manually set input mode to hiragana to start writing every time. Is it possible to change the default input mode?

@yukawa

This comment has been minimized.

Member

yukawa commented Aug 28, 2016

Is it possible to change the default input mode?

Technically, yes, it's possible. You can do that by modifying the source code and rebuild the binaries by yourself. All you need to do is to replace const bool kActivatedOnLaunch = false; with const bool kActivatedOnLaunch = true; in src/unix/ibus/property_handler.cc then rebuild the ibus-mozc binary.

// Some users expect that Mozc is turned off by default on IBus 1.5.0 and later.
// https://code.google.com/p/mozc/issues/detail?id=201
// On IBus 1.4.x, IBus expects that an IME should always be turned on and
// IME on/off keys are handled by IBus itself rather than each IME.
#if IBUS_CHECK_VERSION(1, 5, 0)
const bool kActivatedOnLaunch = false;
#else
const bool kActivatedOnLaunch = true;
#endif  // IBus>=1.5.0

More background can be found in #201.

@yukawa yukawa closed this Aug 28, 2016

@GAumala

This comment has been minimized.

GAumala commented Aug 28, 2016

That worked for me! Thank you very much for your hard work.

@tvdstaaij

This comment has been minimized.

tvdstaaij commented Sep 2, 2016

I just created a customizepkg customization to install mozc-ut (which provides the ibus version by default) with this source modification. See this gist. Might be useful to other Arch Linux users who install mozc from the AUR.

hnakamur added a commit to hnakamur/mozc-deb that referenced this issue Mar 24, 2018

Activate mozc on launch even for IBus>=1.5.0
Because I want hiragana mode on launch.
google/mozc#381

hnakamur added a commit to hnakamur/mozc-deb that referenced this issue Mar 24, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment