Hanja IME

From Han Wiki

Revision as of 21:48, 9 January 2021 by Mhan (talk | contribs) (→‎Resources: clayjar github)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Zhengma Input Method (鄭碼輸入法, 정마수입법)

Windows 10

  • Last tested on Windows 10 (Version 20H2, Build 29042.685) (2021-01-09)

I was introduced to Zhengma IME through a fellow friend, Münchner on Discord. Zhengma IME used to be available on Windows until Microsoft removed it due to a patient dispute, and resources around it seem very limited. As of 2021, the instruction available elsewhere on the Internet for Windows 10 seemed virtually non-existent in English. Zhengma dictionary file from my own GitHub (clayjar/rime-zhengma) is one of the ones that seemed to have been optimized for the Classical Chinese characters, or hanja, and that's why it's used here. You can find other ones like Openvingen/rime-zhengma if you intend to use it for the Simplified Chinese characters.

한자를 입력하는 여러가지 방법이 있는 것으로 알고 있습니다. 예를 들어 창힐수입법(倉頡輸入法) 혹은 속성수입법(速成輸入法)이 있지만 잘 알려지지 않은 정마수입법(鄭碼輸入法)도 있습니다. 한자를 빠르게 그리고 제일 효과적으로 입력할 수 있는 방법은 개인적으로 정마수입법이라고 생각됩니다. 그 이유는 소리음으로 타자를 치는 것이 아니라 한자의 구조를 따라 치는 방법이기 때문입니다. 보통 소리음으로 치는 것에 익숙하신 분들은 한자를 직접 쓰는 방법을 잃어버리게 되있지만 한자 구조로 타자를 칠경우 항상 머리속에 새긴는 역활을 하기 때문에 한자 쓰는 방법또한 머리속에 유지가 되는 유익한 점이 있습니다. 획순으로 입력하는 방법도 있지만 글자의 구조를 따라 쓰는 것보다 더 많은 키를 눌러야 하는 단점이 있습니다. Windows 7까지는 기본으로 들어가 있었지만 어떤 특허관련으로 Windows 8 부터는 빠지게 되었다고 합니다. 여기 중국어를 위해 만들어진 RIME IME 를 기반으로 장마수입법 설치 방법을 기록합니다. 현제 사용법으로 여기 영어로 있습니다. 나중에 기회가 되면 한글로도 준비해 보겠습니다.

Installation of RIME IME

  1. Install RIME IME from Click on the blue button to download. (v0.14.3.0 as of 2021/01/09)


  2. Click "I agree"


  3. Click "Install" if you're okay with the path


  4. First box is to choose either Simplified (top) or Traditional Chinese (bottom), the second box is whether you want to accept default folder for the custom method files (left) or choose your own path (right). Click on 安裝 (install).


  5. You will receive a confirmation box like this. It just says "Weasle has been installed," although you will still have to wait a little after clicking OK.


  6. The final dialog box looks like this.


Check if your RIME IME works properly

  1. When you click on your IME/keyboard icon, you should see Chinese (Simplified, China)/Weasle listed.


    Press Shift+Left Alt or Windows+Space to switch to that IME.


    If you want to temporarily disable Chinese IME, just press Ctrl-Space to toggle instead of switching over to English IME.


    You can also press Ctrl+Left Shift to toggle between English and Chinese.

  2. Using the default method, which is pin-yin, you should be able to type 中國 by pressing zhguo and spacebar.

    :ClipCapIt-210109-162057.PNG :ClipCapIt-210109-162143.PNG

    If you had chosen Simplified Chinese, it will look like this


Install files necessary for Zhengma IME

  1. In this example, we'll use the one prepared for the Traditional Chinese script (by Gong Mu). If you want to use one prepared for Simplified, you're advised to use OpenVingen's version. NOTE: The key bindings are slightly different between the two -- one was optimized for the Traditional script, and the other for the Simplified.

  2. Right click on Taskbar IME icon that has the character 中

    and you'll get a menu with the following

    Input method setting (S)
    Manage user dictionary (D)
    User data sychronization (N)
    Open [user] custom data folder (C)
    Open program foler (P)
    Open documentation (H)
    Go to forum (J)
    Check for an update (U)
    Refresh/Reload (R)
    Quit from algorithm service ?? (Q)

    Choose SETTINGS (S) from the menu.

  3. Click on Import more input methods.. button at the bottom left


  4. Enter "clayjar/rime-zhengma" and press enter.


    Press Enter once more and then type "exit" Enter to exit from console.

  5. On the same dialog box you can uncheck most of the boxes of methods, and check 安静郑码. Click on 中 two times in a row. If you have more than one methods available you can switch by using Ctrl+grave combination.

  6. You're all set to use Zhengma now!


  • Last tested on OS X 11.1 (2021-01-09)
  • Contributed by Münchner/Discord


  1. Install RIME IME from Click on the blue button to download.
  2. Right click and open the file in your downloads directory titled "Squirrel.pkg"
  3. If prompted with this message click "Open"
  4. In the installer, click "Continue"
  5. On the "Installation Type" page click "Install" if you are happy with the location it will install. If not, select "Change Install Location" and choose where you want it installed
  6. The Installer will prompt you to enter your password to install the program, do so.
  7. When complete you will be met with this screen on the Installer window.
  8. Go to System Preferences > Keyboard > Input Sources > Chinese, Simplified and add "Squirrel" to the input methods list

Adding Zhengma

  1. Download the necessary ZhengMa files from
  2. Select Squirrel from the drop down input method menu and click on Settings… after doing this you should be located in the directory ~/Library/Rime/
  3. Once in this directory put all downloaded *.yaml files from the ZhengMa download in this folder
  4. Create a file named exactly "default.custom.yaml" with the following contents
    - schema: zhengma
  5. Select Squirrel in your input method menu and select "Deploy"
  6. You're all set to use Zhengma now!