pinyin-tones (MacOS only)
Easily type pinyin with tone marks on MacOS.
For example, replaces "ni3" with "nว".
installation
-
Download the PinyinTones.plist file to your computer.
-
Open System Preferences
-
In System Preferences, open Keyboard
-
Under Keyboard, navigate to Text
-
Click and drag the PinyinTones.plist file into the Text pane (where it says "Replace" "With")
-
Wait a moment, then you should see all the replacements loaded in, you're done!
uninstall
Under System Preferences>Keyboard>Text, simply select all the pinyin substitutions and press the "-" button to delete them.
how it works
The main.py script generates a Text Substitutions.plist using a complete list of pinyin from http://www.quickmandarin.com/chinesepinyintable/.
run
requires python 3
python3 main.py > PinyinTones.plist