Type chinese PinYin with tones
I am trying to write chinese characters and pinyin with indicated tones.
Setting up chinese Characters with pinyin input was failry easy. Just adding Chinese as a language and then Chinese - Simplified for the Keyboard Input.
But now I would also like to write the pinyin with tones to make Flashcards in Anki.
How can I enable this Input?
Have you tried the pinyin-editor on chinesisch-lernen.org?
http://www.chinesisch-lernen.org/werkzeuge/pinyin-editor.html
The input yan1
will automatically be changed to yān
and similarly for the other tones.
You can also enter several words in one go to get a whole paragraph in pinyin.
On the downside, the editor only works in that browser window. So you will have to type it there, then copy it and insert it where you want it. And, obviously, you will have to be connected to the internet.
I found three alternatives to this issue, personally I recommend the first one:
-
If you are using ibus:
$ sudo apt-get install ibus-m17n
And then select the "input method": Chinese – hanyu pinyin (m17n). Then you can write the vowel and the proper tone after it, so it gets converted:
a3 -> ǎ
. If using scim: then you can select zh-pinyin as the input to convert pinyin tone numbers to accents: https://eastasiastudent.net/china/mandarin/input-pinyin-tone-marks-ubuntu/
-
If you need something quickly: use the Character map:
$ /usr/bin/charmap
After opening it, select the Latin charmap, there you will have all the possible pinyin tones for each vocal (from 1 to 4)
There are 3 ways to do it.
-
By using a Compose key (AltGr), without need of changing English as the input language.
AltGr + _ + [a] = ā AltGr + ' + [a] = á AltGr + c + [a] = ǎ AltGr + ` + [a] = à
In order to activate the Compose key, go to: Gnome Tweak Tool (Tweaks) -> Keyboard and Mouse -> Compose Key -> Right Alt.
-
By using numbers as the tones:
[a] + 1 = ā [a] + 2 = á [a] + 3 = ǎ [a] + 4 = à
Go to: Language Support -> Install/Remove Languages... -> Chinese Simplified -> Tick and Apply.
After successful installation: Settings -> Region & Language -> Plus button
-> Chinese (China) -> Chinese (hanyu pinyin (m17n)).
-
With the suggestions commonly known from web translators.
Follow the same steps, as described in the point 2). In the end choose:
-> Chinese (China) -> Chinese (Intelligent Pinyin).
State for Ubuntu 18.04.4