What I’ve got is a document in Microsoft Word that contains Pinyin words with tone numbers, for example:
Hi everyone.
大家好.
da4jia1 hao3.
So I want to highlight the WHOLE DOCUMENT, click a button, and see this:
Hi everyone.
大家好.
dàjiā hǎo.
In other words, it ignores everything without a number, and converts everything with a number to pinyin tones (I know that could convert things I don’t want converted but I’m willing to deal with that).
I’ve already got (as seen in the sidebar under Links > Resources – Pinyin):
- Convert: zhong1wen2 -> zhōngwén – but you’ve got to copy/paste stuff from the document and the worst thing is that you loose all your paragraph returns.
- Type pīnyīn with tone marks – but you’ve got to type in the numbers, it doesn’t convert numbers that are already there (I used this to create the above dàjiā hǎo)
- FireFox Extension: zhong1 -> zhōng converter – I need it everywhere (especially MS Word)
Anyone have any suggestions?
By the way, has anyone done an analysis of the Zhonglish in this clip yet? If so, great! That’ll save me the trouble. If not, please do! I’d rather read it than write it.
Perhaps this macro is what you’re looking for: http://goo.gl/kLAV
Here is a very quick and dirty macro hack for OpenOffice.org: http://www.cs.elte.hu/~klao/pinyin/
Unfortunately, I don’t have microsoft word. But it shouldn’t be much harder to create something similar for it.
If you have openoffice and wont to try it out, download the pinyin_test.odt and open it. (It will complain that there are macros in the document, but that’s the point, isn’t it? :))
Then, Tools -> Macros -> Run Macro… -> chose pinyin_test.odt -> Standard -> Pinyin -> Run.
If you like it, you can in macro organizer drag the macro from this document to “My Macros -> Standard” and it will be available to you in every document.
Haven’t tested it, but I just happened to stumble upon: http://www.pinyinjoe.com/pinyin/pinyin_macro.htm
Give it a try
This site still requires cut/paste, but keeps your paragraph marks. http://www.chineselearnonline.com/pinyin-conversion-tool
“Plug-ins” for MS Word are a fairly small niche market, but maybe you can find a tech student who would want to do this.
I have used Pinyin Joe’s macro (that 林 and Max suggested above) on a textbook project and it worked like a charm.
If you don’t care whether the pinyin with tone marks is above or below the characters, just select the character and highlight it / them, and then select “format; asian layout; phonetic guide” you’ll then see the characters and pinyin. As far as I know it’s only on top.
You can go to
http://newton.uor.edu/Departments&Programs/AsianStudiesDept/Language/chinese_write.htm
for more detailed information. You need to have asian languages enabled in windows for example!
Have you tried using the phonetic guide within Word itself? If you have the characters typed into your Word doc you dont need to type the pinyin at all. The following is copied from MS Word help.
Add phonetic guides to text
The feature described in this Help topic is only available if support for an East Asian language is enabled through Microsoft Office Language Settings.
Note To use phonetic guides with Simplified Chinese text, you must use the Simplified Chinese IME 98 or IME 2000. To use tone marks with Simplified Chinese text, you must use the Simplified Chinese IME 2000.
Select the text to which you want to add phonetic guides.
On the Format menu, point to Asian Layout, and then click Phonetic Guide.
In the Ruby text box, enter the phonetic guides that you want to apply to the selected text.
Do any of the following:
To change the font or font size, select the option you want in the Font or Size box.
To change the alignment, select the option you want in the Alignment box.
To change the offset from the base text, select the distance you want in the Offset box.
Reference to Tones un typing Pinyin:
Came across this on a search for a Mac solution (OS X)
http://www.macupdate.com/info.php/id/21836/qim
I have not tried it out yet but it seems promising for us that choose to “pass Windows!”
MIKE
First of all, thanks very much to gweipo and Amanda for showing me that built in Asian Phonetic guide (Format > Asian Layout > Phonetic Guide). That is very cool. Unfortunately it’s only a Hanzi > Pinyin converter, and I’ve already got the pinyin with the tone marks in the document. But I’d seen that before and always wondered how they did that. Thanks!
That brings me to Pinyin Joe’s plugin: it’s great. I’ll be adding it to my resources link on the side. Thanks so much everyone.
Sorry i can;t help you out on this one. WOW! i never knew about some of these tools before. I have been stupidly cutting and pasting individually from Wenlin for the past while.
Cheers for the resources
大家好,
I came across your blog recently. I’m Chinese but immigrated to a different country when I was young so I’ve never had the chance to learn Chinese. I have always had a communication barrier with my parents. It’s improved quite a bit though, but I’m thinking of learning to type. I’ve just read your post on How to Type PinYin with tone markers and will hopefully soon be able to write emails to my family in China.
Thanks so much for the insightful posts.
🙂
Pingback: The Big Bang Theory: Sheldon’s Chinese | Sinosplice
This is the best one that I’ve come across by far…
http://pinyinput.sourceforge.net/
Pinyin Joes Macro works wonderfully both in Word and in Excel, both on Mac and PC.
Would recommend it highly.