Bug 47292

Summary: The default input mode of m17n module should be configurable
Product: UIM Reporter: JR <zorael>
Component: IM: Other IMsAssignee: uim-bugs
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium CC: zorael
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: patch showing a simple one line change to make m17n methods default to "on" upon being switched to

Description JR 2012-03-13 15:42:53 UTC
Created attachment 58400 [details] [review]
patch showing a simple one line change to make m17n methods default to "on" upon being switched to

Currently the m17n module doesn't have any configurable options, with no section in the preferences tools. In a sense this has its roots in bug 686.

m17n itself seems to only offer a limited degree of customization via its m17n-im-config tool, so at first glance there isn't much for uim-m17n to configure -- but the basic key shortcut to enable the mode is missing.

Upon changing to an m17n input mode via the global 'Input method switching' shortcut, or by selecting it on one of the toolbars, it will start in its off/direct state. Since an 'enable' key shortcut isn't available, the only remaining way to activate it is to have the toolbar running and use its drop-down menu, everytime.

Please see this screencast attached to bug 25695. It illustrates how you must use the toolbar every time you switch to m17n, to set it "on".
>https://bugs.freedesktop.org/attachment.cgi?id=58320

I suggest to change uim-m17n to default to enabled; then you could switch to the input method with the global input method switching shortcut and use it right away, instead of having to use the mouse. This would only be a a one line change, in scm/m17nlib.scm:47. Please see the attached patch.

The "real" solution would be to improve uim-m17n overall. Add an m17n section to the preferences and make the default on/off setting configurable there, and while at it, also add a key shortcut to toggle it. Sadly I don't know how to follow code execution to the extent where I can see what path the code takes when you use a key shortcut, such as when changing input mode in Anthy, so without considerable guidance I can't help implement such for m17n. Furthermore, I don't know Scheme.
Comment 1 Muneyuki Noguchi 2012-03-16 03:56:12 UTC
Could you try f801ec470573 or later?

You can change the default input mode of m17n module
in "m17nlib" section in uim-pref after f801ec470573.
The default mode remains off
because the current default mode is off
and I think that some users may want the default mode to be off.

FYI, you can enable the mode with shift+space.
You can set the key shortcut to enable the mode of m17n module
in "Global key bindings 1" -> "[Global] on" and "[Global] off"
in uim-pref.
Comment 2 Muneyuki Noguchi 2012-03-17 07:07:45 UTC
Sorry, I forgot to add m17nlib-custom.scm to scm/Makefile.am. As of f801ec470573, m17nlib-custom.scm, required to configure m17n module with uim-pref, wasn't installed by "make install".

Could you try 1c93c5a3b0df or later?
http://code.google.com/p/uim/source/detail?r=1c93c5a3b0df72c5e0742c6ddb747109f98e5516
Comment 3 JR 2012-03-19 15:04:10 UTC
I just built 7dbeadc5 (Mar 19) and the new options makes it much easier to use.

Many thanks!
Comment 4 Muneyuki Noguchi 2012-03-20 03:17:45 UTC
Marked this bug as FIXED.

As for bug #25695, I will apply my patch below (not in the repository yet) before 1.8.0-beta, which I think will be released on 25th March, unless you oppose my patch:
https://bugs.freedesktop.org/show_bug.cgi?id=25695#c4

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.