User Tools

Site Tools


pinyin_keyboard

Mac OS X Pinyin Keyboard

Entering Pinyin tone marks in Mac OS X is a little challenging. There are some ways to do so, most notably using the built-in “ABC Extended” keyboard layout, but the key combinations are not very intuitive. Hence I created my own layout that uses simple CTRL key shortcuts for entering the tones, for example:

  • Press CTRL-1, then any vowel for tone 1 marks: ā, ē
  • Press CTRL-2, then any vowel for tone 2 marks: á, é
  • Press CTRL-3, then any vowel for tone 2 marks: ǎ, ě
  • Press CTRL-4, then any vower for tone 4 marks: à, è
  • Press CTRL-5, then v to enter ü

To use the Pinyin keyboard layout, first download gb-pinyin-20191204.zip and unzip it. Then copy the keyboard layout to the appropriate location:

cp -R GB-Pinyin.bundle ~/Library/Keyboard\ Layouts

Next, go to System Preferences | Keyboard | Input Sources, click the + sign, scroll to the bottom of the languages list, select Others, then select GB-Pinyin on the right, and finally click the Add button.

Enjoy!

pinyin_keyboard.txt · Last modified: 2019/12/03 20:20 by georgi