The Computer Oracle

How to type pinyin text with tone marks in Windows?

--------------------------------------------------
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------

Music by Eric Matyas
https://www.soundimage.org
Track title: Magic Ocean Looping

--

Chapters
00:00 How To Type Pinyin Text With Tone Marks In Windows?
00:27 Answer 1 Score 7
01:23 Answer 2 Score 5
01:50 Accepted Answer Score 4
02:27 Answer 4 Score 4
02:49 Answer 5 Score 2
03:11 Thank you

--

Full question
https://superuser.com/questions/27743/ho...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#windows #chinese #ime

#avk47



ANSWER 1

Score 7


May I suggest my own PinyinTones IME, which does exactly what the OP was looking for:

It's a Windows IME that outputs Pinyin with tone marks, rather than Chinese characters. Type 1, 2, 3, or 4 after each syllable to add a tone mark -- just as people have been entering Pinyin since the days of ASCII characters:

Pinyin IME to type Pinyin with tone marks into any Windows application

Key features:

  1. Uses the Text Services Framework, so it works everywhere that the Microsoft Pinyin IME works. Including desktop and Universal applications.

  2. Uses in-line text composition, just like the Microsoft IMEs. This means that it behaves well in TSF-aware applications -- for example, when inserting, text will reflow as you type.

  3. Automatically places tone marks on the correct vowel in a combination, according to the rules of Pinyin orthography. (e.g., hao3 becomes hǎo -- with the tone mark on the "a" rather than on the "o")




ANSWER 2

Score 5


You can use the Keyboard Layout Creator to create such a keyboard layout yourself. Off the top of my head I don't know a layout which enables you to type all the tones. As Bkkbrad mentioned, you can't type a macron on US International (which is what I'm using here). But modifying US International to add another dead key for macron shouldn't be too hard.




ACCEPTED ANSWER

Score 4


The U.S. international keyboard that comes with Windows makes typing some accents easy, but apparently not macrons (the bar over the "u" in "chū"). The Māori keyboard has support for those; maybe you can hot switch between the two? Someone claimed to have made a derivative of the international keyboard that permits typing the macrons as well as other accents easily, but I haven't tried it out.

You could try using a tone converter that takes in numeric-based tones and spits out accent-based tones.

Edit:

I found an explicitly pinyin keyboard layout that should do what you want.




ANSWER 4

Score 4


I've used a couple but in the end I went with QuickPinyin because it's the only one that didn't need to be installed. This is kind of cool because I can run from a USB stick on any PC, for example, the library computers which don't let me install software on them.




ANSWER 5

Score 2


I came across the same problem today while trying to set up my Windows installation. There is a much better solution under Linux using ibus. Namely, you can set the output to traditional, simplified, or pinyin. This way you can take advantage of the built in recognition algorithms - they place the tone mark on the correct vowel, etc. It would be great if someone has a similar solution for Windows.