Magic equation

Ctrl C + Ctrl V = Japanese science

Emulating US keyboard layout on JIS

One of the problems I have with laptops sold here is that their keyboard layout is mostly JIS instead of the general US layout on which I feel more comfortable typing.

The JIS layout has an unreasonably bigger return key and a smaller delete key. In my theory the layout has non-negligible effects on people’s thought processes, which should explain their unwillingness to admit mistakes. My other complaint is that people try to hit too hard on the big enter key. A typical Japanese office situation.

Nonetheless, It’s not an issue when you buy a MacBook since US and other keyboard options are available on each model. When you find a good deal on MacBooks at computer shops or even online retailers, however, they don’t usually offer language (or any) options. Should I pay more for the US keyboard?

That’s why I needed to “emulate” US layout on my MacBook with JIS keyboard. My preferences are:

  • The enter should be placed at the position of ]む
  • The fat enter should function as \, backslash
  • The \ on the top should be replaced with delete which makes two delete keys in a row.

(Note: thess remaps might not be sufficient other than for Dvorak input source.)

Here’s how I did it:

  1. Download and install KeyRemap4MacBook.
  2. Edit its setting file “private.xml” as follows:

        <?xml version="1.0"?>
        <root>
            <item>
                <name>Emulate US enter and delete on JP layout</name>
                <identifier>private.change_backslash_to_delete</identifier>
                <autogen>__KeyToKey__ KeyCode::JIS_YEN, KeyCode::DELETE</autogen>
                <autogen>__KeyToKey__ KeyCode::RETURN, KeyCode::BACKSLASH</autogen>
                <autogen>__KeyToKey__ KeyCode::JIS_BRACKET_RIGHT, KeyCode::RETURN</autogen>
            </item>
        </root>
    
  3. System’s “Key Repeat” settings are now overridden by KeyRemap4MacBook so they might need to be configured as well. My settings for the first two properties are:

    • Delay Until Repeat: 275ms
    • Key Repeat: 33ms

(Tested on Mac OS X 10.9.1)

doshiomonai:

Homeless.

Then we drove away from the scene.

doshiomonai:

Homeless.

Then we drove away from the scene.

doshiomonai:

Protesting against pachinko.

Wait wait wait wait.

doshiomonai:

Protesting against pachinko.

Wait wait wait wait.
doshiomonai:

Bar base made with books at the Daikanyama T-Site coffee lounge. If you don’t really sell books, you might as well use them as furniture.

Unacceptable.

doshiomonai:

Bar base made with books at the Daikanyama T-Site coffee lounge. If you don’t really sell books, you might as well use them as furniture.

Unacceptable.