Re: Japanese keyboard auto-detection
Takuma Murakami wrote: I have one request on this feature. Could you change the line { 0x411, -1, jp,jp, NULL, NULL, Japanese}, to { 0x411, 7, jp,jp, NULL, NULL, Japanese}, in winconfig.c? It prevents JP layouts loaded for JP Windows with US keyboards. Part of the mississippi problem? I've commited the change. bye ago -- [EMAIL PROTECTED] http://www.gotti.org ICQ: 126018723
Re: Japanese keyboard auto-detection
Part of the mississippi problem? I've commited the change. Thank you for committing. I think this is not the essential source of the problem. Takuma Murakami ([EMAIL PROTECTED])
Re: Japanese keyboard auto-detection
Alexander, Thank you for supporting Japanese keyboards. It is really useful for us. I have one request on this feature. Could you change the line { 0x411, -1, jp,jp, NULL, NULL, Japanese}, to { 0x411, 7, jp,jp, NULL, NULL, Japanese}, in winconfig.c? It prevents JP layouts loaded for JP Windows with US keyboards. Thanks in advance. Takuma Murakami ([EMAIL PROTECTED])
Re: Japanese keyboard auto-detection
On Tue, 23 Sep 2003 11:45:18 +0900 Kensuke Matsuzaki [EMAIL PROTECTED] wrote: As far as I tested, when I press Eisu_toggle key, I receive WM_KEYDOWN VK_DBE_ALPHANUMRIC. But I never receive WM_KEYUP until I press Katakana key, even if I release Eisu_toggle key. Also if I release Katakana key, I never receive WM_KEYUP. Thanks to your observation I have noticed that I should separate the problems on Japanese keyboards. One is the odd window messages, the other is the XKB layout. I have no idea for the first one so I have worked on the Eisu key on XKB layouts. I have made an option 'eisu' for XKB. It makes the Eisu key act as Eisu_toggle when pressed without shift keys and as Caps_Lock when pressed with shift keys. I prefer it because it is consistent with the Windows behaviour as well as the physical imprints on Japanese keyboards. However, it might confuse other users, especially those come from UNIX. So it should be considered whether it suits the default of Japanese keyboards. The attached are 'eisu' XKB symbol file (should be placed in /etc/X11/xkb/symbols/ ) and the patch for /etc/X11/xkb/rules/xfree86 . After installing those, setxkbmap -v 10 jp -option eisu will bring out the eisu behaviour. I hope this eisu option be the default for Japanese keyboards in Cygwin if other Japanese users agree. Takuma Murakami ([EMAIL PROTECTED]) eisu Description: Binary data rules.xfree86.patch Description: Binary data
Re: Japanese keyboard auto-detection
On Tue, 23 Sep 2003, Kensuke Matsuzaki wrote: As far as I tested, when I press Eisu_toggle key, I receive WM_KEYDOWN VK_DBE_ALPHANUMRIC. But I never receive WM_KEYUP until I press Katakana key, even if I release Eisu_toggle key. Also if I release Katakana key, I never receive WM_KEYUP. I don't know why, and I can't find any documents in MSDN. I inserted following workaround into end of WM_KEYDOWN handler if (iScanCode == KEY_CapsLock) winSendKeyEvent (KEY_CapsLock, FALSE); then CapsLock work well. But perhaps it is not smart. Does anyone know good solution? I don't know the japanese keyboard system and can't test it. If the windows input driver does the same stupid remapping as with alt-gr, i think we should include this as a workaround. But I'm not sure if the patch will change the pc105 handling as well. This will require further investigation. bye ago -- [EMAIL PROTECTED] http://www.gotti.org ICQ: 126018723
Re: Japanese keyboard auto-detection
On Mon, 22 Sep 2003, Takuma Murakami wrote: -- snip -- (==) winConfigKeyboard - Layout: E0200411 (0411) (==) Using preset keyboard for Japanese (1041), type 7 (EE) No primary keyboard configured (==) Using compiletime defaults for keyboard Rules = xfree86 Model = jp106 Layout = jp106 Variant = (null) Options = (null) -- snip -- WinXP and Win2k both show the same log. I think it detects the Japanese keyboard but can't get the appropriate setting for it. What can I do to fix it? By the way, a typical difference between Japanese and English keymaps is symbols. In Japanese keyboards 'shift + 8' yields '(' while '*' in English ones. It seems the jp106 layout definition in the xkb sources is broken. Does setxkbmap -v 10 jp -model jp work for you? bye ago BTW: I'm forwarding this to the cygwin-xfree mailing list -- [EMAIL PROTECTED] http://www.gotti.org ICQ: 126018723
Re: Japanese keyboard auto-detection
On Mon, 22 Sep 2003 11:48:19 +0200 (MEST) Alexander Gottwald [EMAIL PROTECTED] wrote: It seems the jp106 layout definition in the xkb sources is broken. Does setxkbmap -v 10 jp -model jp work for you? It works well. I get the correct keyboard except the behaviour of Caps_Lock. At first I press Caps_Lock, it works correctly. But the second time I press it, it does not cancel the shift state. So once I press Caps_Lock accidentally, I can never get lower-case letters again. I think the reason of this behaviour is that in Japanese keyboards Caps_Lock is assigned to the combination of Shift + Eisu_toggle. However, when I change the definition in /usr/X11R6/lib/X11/xkb/symbols/jp from key CAPS { [ Caps_Lock,Eisu_toggle] }; to key CAPS { [ Eisu_toggle,Caps_Lock] }; I can't get the desired result. Pressing Eisu_toggle without Shift still works as Lock modifier. The best situation is it works as Caps_Lock only when pressed with shift keys, but I don't know whether the cascade of modifiers can be done. If not, I prefer it acts only as Eisu_toggle to prevent the accidental entry into Lock state. I have used my own .Xmodmap to achieve this. The attached is the patch for /usr/X11R6/lib/X11/xkb/symbols/jp to get the same effect. I'm not sure the topic is suitable for cygwin-xfree because it seems not specific to cygwin but for XFree86 itself. At least, the keyboard obtained by the setxkbmap is a big progress. Takuma Murakami ([EMAIL PROTECTED]) jp.patch Description: Binary data
Re: Japanese keyboard auto-detection
As far as I tested, when I press Eisu_toggle key, I receive WM_KEYDOWN VK_DBE_ALPHANUMRIC. But I never receive WM_KEYUP until I press Katakana key, even if I release Eisu_toggle key. Also if I release Katakana key, I never receive WM_KEYUP. I don't know why, and I can't find any documents in MSDN. I inserted following workaround into end of WM_KEYDOWN handler if (iScanCode == KEY_CapsLock) winSendKeyEvent (KEY_CapsLock, FALSE); then CapsLock work well. But perhaps it is not smart. Does anyone know good solution? Kensuke Matsuzaki