Skip to content

Instantly share code, notes, and snippets.

@ivan
Created December 10, 2018 22:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ivan/7f7f7db64f0f55893b51f7d660500746 to your computer and use it in GitHub Desktop.
Save ivan/7f7f7db64f0f55893b51f7d660500746 to your computer and use it in GitHub Desktop.
ibus-mozc: Activate IME to use Hiragana input by default
From 31d9e4db4ba96e5c9e2c4922be22b7a07da19100 Mon Sep 17 00:00:00 2001
From: Ivan Kozik <ivan@ludios.org>
Date: Sat, 3 Mar 2018 11:30:13 +0000
Subject: [PATCH] Activate IME to use Hiragana input by default
---
src/unix/ibus/property_handler.cc | 10 ++--------
1 file changed, 2 insertions(+), 8 deletions(-)
diff --git a/src/unix/ibus/property_handler.cc b/src/unix/ibus/property_handler.cc
index e852b3bd..e28239a8 100644
--- a/src/unix/ibus/property_handler.cc
+++ b/src/unix/ibus/property_handler.cc
@@ -75,15 +75,9 @@ bool GetDisabled(IBusEngine *engine) {
return disabled;
}
-// Some users expect that Mozc is turned off by default on IBus 1.5.0 and later.
-// https://github.com/google/mozc/issues/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
+// Always activate IME to use Hiragana mode by default:
+// https://github.com/google/mozc/issues/381#issuecomment-242965044
const bool kActivatedOnLaunch = true;
-#endif // IBus>=1.5.0
} // namespace
--
2.11.0
@ivan
Copy link
Author

ivan commented Dec 10, 2018

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