Comment #7 on issue 1403 by [email protected]: Unable to customize Kana Key Table
http://code.google.com/p/ibus/issues/detail?id=1403

Thanks for feedback.

1. My physical keyboard is "ru". This keyboard has the same layout for latin characters as the "us" keyboard and, as far as I know, scancodes are also the same. (It is not so for the "jp" keyboard - I suspect that some Japanese keyboard layout stuff if hardwired to ibus-anthy.)

2. I tried both variants - ibus keyboard layout and system keyboard layout. Even tried to modify kana_typing_rule_static in ibus-anthy/engine/tables.py by hand. By the way, "Use system keyboard layout" is much worse for kana input on 101-key-type keyboard. As for native ibus layout, the only problem is the need to switch to Romaji typing method each time I have to type the word containing "ろ" or "ー" symbol. In system keyboard layout there is a complete uncustomizable mess for kana input in ibus-anthy.

3. Yes

4. Yes. Even rebooted the computer.

It seems that Japanese layout is hardwired somewhere in ibus. The "`" symbol in Japanese keyboard is located on the same key as "゛" (濁点 - voiced consonant mark). It looks like that for this reason "`" and "@" symbols are treated in a very special way in ibus and thus are problematic to remap to anything else.

I'm new to Python and especially ibus, but things like
            if self.__typing_mode == jastring.TYPING_MODE_KANA:
                if keyval == keysyms._0 and state == modifier.SHIFT_MASK:
                    keyval = keysyms.asciitilde
in ibus-anthy/engine/engine.py look very layout-dependent for me.

I'll try to find time to read and understand ibus and ibus-anthy code - may be I'll be able to write more useful comments on this issue.


--
You received this message because you are subscribed to the Google
Groups "ibus-devel" group.
iBus project web page: http://code.google.com/p/ibus/
iBus dev group: http://groups.google.com/group/ibus-devel?hl=en

回复