Skip to contentSkip to conversation

Input issues - key down with no key up

DISCUSSION Norman Diamond 2 participants 3 messages Aug 23, 2003 – Aug 25, 2003

lore
Share & tools
lore
#0 lore raw

Although I cannot keep up with the list, I saw this. "Jamie Lokier" <[email protected]> asked John Bradford:

Quoted 2 lines

So do the Japanese keys fail to work in Windows, too, without a special driver?

I cannot answer for John Bradford's particularly odd keyboard, but can answer for ordinary Japanese PS/2 and Japanese USB keyboards.

If a Monopolysoft Windows system is running with a US-101 keyboard driver, then in principle the Japanese keys produce no input, they are ignored, they are no-ops. The US-101 driver can be combined with the US layout driver to match an actual US keyboard, or combined with a German layout driver to match an actual German keyboard, etc. If the US layout driver is used but the keyboard is actually Japanese then the hankaku/zenkaku key produces input of ` and ~ or something like that, because the US keyboard has that key in that place. If the German layout driver is used but the keyboard is actually Japanese then I don't know if something similar might happen.

For non-Japanese versions of Windows 95 or 98 or NT4, there are hacks, not supported by Microsoft, to combine the US-101 driver with the Japanese layout driver copied from the corresponding Japanese version of Windows 95 or 98 or NT4. In these cases the Japanese keys might or might not produce input, depending on other random software and settings.

For Japanese versions of Windows 95 or 98 or NT4, of course the Japanese keys do produce input. Of course the Japanese layout driver is involved. I don't recall if the lower-level keyboard driver has a name that distinguishes it from the US-101 driver, but the binaries are almost certainly different.

For Windows 2000 and XP, essentially the same drivers are available in both Japanese and non-Japanese versions of the OS, though Japanese Windows 2000 includes some extra compounding of hacks to work around one particular installation-time bug instead of fixing the installation-time bug. Anyway, the Japanese-106 keyboard driver is a competitor of the US-101 keyboard driver. If the US-101 keyboard driver is installed then the Japanese layout driver doesn't work even if it's selected, except in the case of the compounded hack just mentioned. If the Japanese-106 keyboard driver is installed then I think it's possible to install either the US-101 layout driver or Japanese-106 layout driver. When the Japanese-106 layout driver is running, of course the Japanese keys produce input. When the US-101 layout driver is running, the Japanese keys are no-ops, except that the hankaku/zenkaku key produces ` and ~ for same reason as earlier.

If a USB keyboard is used with an OS that has USB drivers (i.e. not NT4 or early 95) then I think the OS is smart enough to figure out the actual layout of the keyboard, at least sometimes. Then the Japanese keys might produce input even when the user expected them to be no-ops. But if the Japanese IME isn't running then I think the input will still turn into no-ops, just a bit later in the chain of events than they would otherwise.

If you consider the Japanese-106 driver to be more special than the US-101 driver, then the answer to your question is usually yes, but you need an attitude adjustment :-) If the US-101 driver can be hacked to work with a larger number of national or linguistic layouts than the Japanese-106 driver can, then the US-101 driver is the one that's special :-)

#1 lore raw
Quoted 5 lines · Norman Diamond

For Japanese versions of Windows 95 or 98 or NT4, of course the Japanese keys do produce input. Of course the Japanese layout driver is involved. I don't recall if the lower-level keyboard driver has a name that distinguishes it from the US-101 driver, but the binaries are almost certainly different.

Do you know what the Japanese keys do under Linux?

Thanks,
-- Jamie

#2 lore raw

"Jamie Lokier" <[email protected]> replied to me:

Quoted 5 lines
Quoted 5 lines

For Japanese versions of Windows 95 or 98 or NT4, of course the Japanese keys do produce input. Of course the Japanese layout driver is involved. I don't recall if the lower-level keyboard driver has a name that distinguishes it from the US-101 driver, but the binaries are almost certainly different.

[And for Japanese versions of Windows 2000 and Windows XP, of course the Japanese keys do produce input. Of course the Japanese layout driver is involved, but also the lower-level driver is named for the Japanese-106 keyboard.]

Quoted 1 line

Do you know what the Japanese keys do under Linux?

I don't recall them doing anything under Linux. I think I've read some people say that the Japanese keys yield spaces for them, which would not be too bad because three of those keys are next to the space bar anyway. But I think I get no input at all for them, which also isn't too bad (mostly -- but see below).

Of course the problem which is too bad is getting no input for the keys yen-sign or-bar and backslash underscore.

In 2.4, after the USB-to-emulated-PS/2 translation level in the driver was finally patched, I think that all of the Japanese keys were finally patched to yield the same as the PS/2 translations of the USB keys. The patch was different from the one which I sent which was ignored, for which the difference is OK (the effect is the same) but it really bugged me that it was ignored for months. Anyway, after the patch in 2.4, the potential of letting the Japanese keys do something in Linux depended only on the possibility of acting at the PS/2 layer or above.

In 2.6, I have a feeling that there might be one or two levels of breakage, as there has been for the yen-sign or-bar and backslash underscore keys. Sorry I neglected to test them two days ago. But for that matter, the test which I reported two days ago seems to have been ignored again. I can only volunteer about one day a week, but some people get paid to do this as their job, and I wonder why my report has been ignored.

Now, I think I've read that ATOK can run under Linux. Monopolysoft's IME is based on ATOK's IME so a lot of people are used to it. There are also other IMEs under development for Linux. For me and at least one other Usenetter in Japan, it is a nuisance that Shift+Space turns on the X-11 IME, because we often type it when we just want a space (if our thumb is still on the Shift key from typing the previous character). It really would be nice if we could configure the hankaku/zenkaku key to turn the IME on or off the way ATOK and Monopolysoft do, and then configure Shift+Space to just input a Space. But this would depend on making the Japanese keys do something in Linux. By the way the hankaku/zenkaku key is the one which isn't next to the space bar, it's in the position which yields ` and ~ on a US keyboard.

(As for why the hankaku/zenkaku key turns the IME on and off instead of switching between hankaku and zenkaku, the reason is yet another compound of hacks, but people are used to it now. Actually Alt+hankaku/zenkaku does still also turn the IME on and off as it always did. Except under Linux of course. I think it's still a no-op under Linux.)