I have the following input methods set up on Ubuntu 20 LTS: English (US), English (Dvorak), Chinese (Intelligent Pinyin), Chinese (hanyu pinyin (m17n)).
I would like to type pinyin with all its available tone marks with the Compose Key, without using the specific input method
hanyu pinyin (m17n). Only some of the possible tone marks seem to work with the compose key, and good documentation on this is hard to find or doesn't exist.
Pinyin Tone Marks
In the following examples, replace
x with any of the base characters:
- The 1st tone is the
- The 2nd tone is the
- The 3rd tone is the
caronis different from
- The 4th tone is the
Actually, it's more complicated than that, because there's one more "base chracter":
ü, so in pinyin these sounds are also available:
ǜ. These can be combined with adding more modifiers to the compose key,
ǘ can be produced with
When trying all combinations, some of them work, some don't:
1st tone, ¯, macron, supports all but ǖ ā: compose - a ē: compose - e ī: compose - i ō: compose - o ū: compose - u ǖ: ? 2nd tone, ´, acute, supports all á: compose ' a é: compose ' e í: compose ' i ó: compose ' o ú: compose ' u ǘ: compose ' " u 3rd tone, ˇ, caron, only supports e ǎ: ? ě: compose < e ǐ: ? ǒ: ? ǔ: ? ǚ: ? 4th tone, `, grave, supports all à: compose ` a è: compose ` e ì: compose ` i ò: compose ` o ù: compose ` u ǜ: compose ` " u
- Should this actually work? Should I file a bug report? If so; where's the source repo? Who maintains the compose key?
- Is it possible to type all pinyin tone marks with the Compose Key? The missing combinations are:
- Is it possible to add custom key sequences to the compose key (with a specific dotfile in my homedir for example)? This answer doesn't seem to work since Ubuntu 19: https://askubuntu.com/a/71335/872681
What I do not want:
- Yet another input method for just the pinyin marks, as described in the Hanyu Pinyin input in this answer: https://askubuntu.com/a/728506/872681
(I've got this working, it's just not as comfortable as using the compose key.)
- Use any form of online editor such as: https://www.pinyin-editor.com
- Use a point-and-click application like the Character Map.