MSKLC for Windows 10: Create a Custom Keyboard Layout That Supports Chinese IME and Spanish Combined Input

This question was originally posted by me on the Microsoft community at:

https://answers.microsoft.com/en-us/windows/forum/windows_10-other_settings/msklc-under-windows-10-create-custom-keyboard/8c5a7137-d575-4247-8ab3-b4dd1e5fb437?tm=1495318604424

In short: I created a custom keyboard layout with Microsoft Keyboard Layout Creator 1.4 on Windows 10, but it only works partially. He can not:

  • combine two keystrokes into one to type a "combination letter", for example "Β¨" + "u" = "ΓΌ". It doesn't have to exist in Chinese, but I want to achieve this.

  • enter Chinese pinyin and Chinese punctuation. In MS pinyin IME, I can press shift to switch between Chinese pinyin mode and English mode. In pinyin mode, I can convert letters to pinyin and thus get Chinese characters, but this is not in my layout. And if I press "," in Microsoft Pinyin in pinyin mode, it should give me "," (full length comma), but this layout cannot do that.

I am thinking of two ways to solve this problem:

  • Replace Microsoft Pinyin keyboard layout with my layout (replace the English part of MS Pinyin with my layout)

  • Copy the pinyin part of MS pinyin into my layout.

So how can I solve this?

+3


source to share


1 answer


I solved it.

For the first problem, you must define some "dead keys". Details are explained here:

http://www.angelfire.com/planet/linguisticsisfun/Creating_a_Keyboard_Using_MSKLC.pdf

For the second problem, basically you:

  • Create a keyboard layout.

  • Edit the file .klc

    with a text editor to change the VK code display. This is because most applications in Microsoft Windows, when you press hotkeys, detects VK code sent to the OS, not "key characters" (characters are output as you type into text software). Therefore, in order for the key characters of your keyboard layout to match their VK code, you must do it manually. MSKLC won't change this for you. Some details here:



http://www.sensefulsolutions.com/2010/08/how-to-fix-keyboard-shortcuts-in-klc-eg.html

  1. Install the layout.

  2. Open the registry editor, type HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layouts\

    , find the new keyboard layout at the bottom (mine with a name like a0000xxxx

    ). Copy the file name dll

    . This is a DLL file that contains new information about the keyboard layout.

  3. Go back to the fathers branch of the registry, find the language you want to apply this layout to, such as Chinese or Spanish. You will find several variations with names, but the descriptions are self-explanatory and can help you distinguish them.

  4. Simplified Chinese uses KBDUS.dll

    which means "keyboard layout for the American keyboard". This applies to MS Pinyin as well. Change this value to your copied DLL name so that it loads your DLL the next time the OS starts up.

  5. Restart.

Result:

  • I can type English and Chinese Pinyin with Microsoft Pinyin with my own keyboard layout and I can navigate next / previous page with ,

    and .

    .
  • With this keyboard layout can I type special Spanish characters, such as Γ―

    , Γ‘

    , Γ§

    , Γ±

    and €

    without having to switch to the Spanish keyboard.
  • Hotkeys in any software work as expected because now the VK code is mapped to the letters printed on the keys.
+2


source







All Articles