PandaPassport.com – China Blog

Icon

Blogging from Behind the Great Wall

Hotels in Dalian China

How to Annotate Chinese Characters with Pinyin Tone Markers

If you’re into wordpress, check out Wordpress Tips and Tricks for more wordpressy goodness like this post.

A few of my friends have asked me how I do the Chinese Character pinyin annotation on my Dalian Information Guide Website. For those of you who don’t know, the tool is used to display the phoenetic pronunciation (i.e. pinyin) when you hold the mouse over a Chinese Character. It also displays a neato HELP question mark, as well as a dotted line underneath the text to tell the readers that there’s a little something else waiting for them.

For example: ??????

Dan Johnson’s Useful ChineseIsn’t that cool? I was first made aware of this tool through my friend Dan’s site Chinese: Beyond the Textbook. This is a great site for anyone interested in learning Chinese, and it makes use of this pinyin tool extensively, in order to annotate a wide variety or Chinese language text.

John Pasden’s SinospliceFrom Dan’s site, I managed to trace this tool back to John Pasden’s Sinosplice.com, one of the oldest and best expat blogs running in China. John outlines here, how to use a little CSS code to display the help question mark and dotted lines under your Chinese characters. All you need to do is assign a class to the particular piece of Chinese text that you’d like annotated.

If you have Chinese text needing annotating, you can do that like this:

??

and then make sure you got the proper CSS code in your style sheet:

span.info { border-bottom:1px dotted #00AAFF; cursor: help; }

Now you can copy and paste this code for every bit of text you’d like to annotate, but John has another blog entry explaining how you can assign that class with the click of a button — if you are a wordpress user. I use this plugin on my Dalian Guide, but I don’t use it on this blog though. It doesn’t allow for you to keep your WYSIWYG editor, and for this blog, I kinda like using that.

While my Dalian City Guide is just a hobby, I sincerely hope that anyone who seriously takes on the task of creating a proper Dalian Information website properly utilizes this tools, or at least something similar.

Anyway, enough about that. Lets move on…

How to Generate Pinyin Tone Markers from Chinese Characters

If you know Chinese well, and you’re not marking a huge amount of text, this might be useful to you, for your reference:

1st tone markers: ? ? ? ? ?
2nd tone markers: á é í ó ú
3rd tone markers: ? ? ? ? ?
4th tone markers: à è ì ò ù

But in general, if you’re marking a lot of text, copying and pasting those marked characters, or typing special symbols is gonna be a pain in the ass. There are numerous sites out there that can convert characters to pinyin, but I have yet to find one that generates really good useable marked pinyin from Chinese Character input.

Adsotrans Chinese Translation WebsiteOne of the best sites is Adsotrans, but I find that sometimes there’s a problem with the display of the third tone pinyin. It often will display as a small square, i.e. it’s not recognized. I love the site, and I use it often. But for some reason, I’ve experience these little squares sometimes. Bummer… If anyone has any idea about why this is, I’d love to hear it.

Toshuo’s Pinyin ToolI find that in order to avoid this problem, I can change the adsotrans output to NUMERIC PINYIN, (example: wo3 chang2chang2 chi1 xi1gua1), and then dart on over to Toshuo.com, and punch it into to their pinyin tool. For now, that seems to work well for me.

I hope that you take the time to visit some of the websites I’ve listed above, as they’re all doing good work in helping facilitate Chinese study on the internet. Especially John’s!

I’d be curious to know if anyone has applied this tool to other asian languages, such as Japanese or Korean. Anyone know of any examples?

Category: tools

Tagged:

4 Responses

  1. John says:

    Thanks a lot for crediting me for the pinyin tooltip tutorial. I appreciate it.

    Mark (of toshuo.com) uses a javascript rollover which provides bigger, easier to read tooltips, but I prefer sticking to straight HTML.

    I alerted David (of Adsotrans) about the bug you sometimes get. Maybe he’ll stop by as well…

  2. Rick says:

    A javascript tool?

    That sounds intriguing…
    He must be quite the pinyin-annotation ninja. :)

    Thanks for dropping by John. Really enjoy your site!
    Keep up the good work there,

    and on Idrone as well.
    Ryan put me on to that one. Very nice as well.

  3. [...] the current available options for Chinese Character annotation, I was very impressed with this Firefox add-on for Japanese Character annotation. I do plan to [...]

  4. Dan says:

    Thanks for crediting me too Rick! Unfortunately I use Blogger, so I’m still restricted to copying and pasting each bit of code. If anyone knows how I could make this process easier, I would love to hear about it.

Leave a Reply

RSS My China Tech blog on Inventorspot.com

  • What a PSP Phone may look like March 15, 2010
    Some interesting images are emerging from a Chinese website M8cool.com. Apparently patience is not one of the virtues of the shanzhai (loosely meaning, imitation) industry, as they love to kick out early prototypes and images of not-yet-released gadgets. The latest one of these is the PSP Phone.  […]
    Rick Martin
  • Human-Powered Washing Machine March 15, 2010
    What do you get when you cross a treadmill with a washing machine? Give up? Something that looks a little like this, actually. A kid by the name of Zhang Jiayu from the northeastern Liaoning province thought that conventional washing machines wasted far too much electricity. He then had the bright idea of creating one that was powered by a man running on top […]
    Rick Martin
  • China Says Goodbye to Google With Cartoons March 15, 2010
    Since Google announced that they would no longer continue to censor in China, pretty much everybody has assumed that they won't be able to remain in the country. That may turn out to be the case. I'm not going to speculate too much on the issue, because there's way more than enough being said already. In the midst of all that headache, I do wa […]
    Rick Martin
  • China ice sculpture tragically made entirely from beer March 15, 2010
    The city of Harbin in northern China is widely known for it's freeze-your-snowballs-off temperatures and it's annual ice festival. Domestically, the city is also known for it's beer. Sadly, some wiseguy decided to combine the two to create a ginormous ice sculpture with nothing more than copious amounts of frozen beer. Such a waste... […]
    Rick Martin
  • China has system to detect vulgar Karaoke March 15, 2010
    Chinahush has a great write-up about a controversial new karaoke content management system being rolled out in Zhengzhou. The 'Black Box' (as it has been nicknamed) will flash red lights and alert the police when someone selects a vulgar song. Naturally, many netizens in China are voicing questions about such a system: […]
    Rick Martin
  • China's xpPhone to be upgraded to Win7Phone? March 15, 2010
    The Chinese xpPhone was itself thought to be a rumor until engadget China reported on it last month. Sadly, it looks like this monstrosity does indeed exist. And what's more, it looks like it might soon be upgrading to Windows 7. Nevermind that the real Windows 7 Mobile won't be coming out until late next year. As usual, China has us covered with t […]
    Rick Martin
  • Best Chinese Knockoff Ever? Sony VAIC TT March 15, 2010
    There's something ingenius about taking an 'O' and making it a 'C.'  It's so subtle. So clever. It boggles the mind with possibilities: Orec cookies anyone? Maybe a little Cvaltine to wash it down?  Ok, maybe not. But that's generally the idea behind this 'Viac' 'Vaic,' a shanzhai version of the tiny Son […]
    Rick Martin
  • More Chinese Farmer Innovations: Baby Buddha Pears! March 15, 2010
    If you're a regular reader of this blog, you're likely familiar with the unusual phenomenon of inventive Chinese farmers. For some reason, these rural inventors are grabbing more headlines than most Chinese tech companies. Well, here's another distinguished farmer to follow in that tradition. This particular pear producer isn't going to l […]
    Rick Martin
  • Replica Tian'anmen Gate Crafted from Human Hair March 15, 2010
    What's hairy, forbidden, and red all over?  Why, it's this replica Tian'anmen Gate built entirely out of leftover hair clippings! (Sorry, I hope I didn't disappoint any Anne of Green Gables fanboys out there.) […]
    Rick Martin
  • 'Phoney' Marriage Proposal in China March 15, 2010
    The latest viral video to come out of China features a young man's unique marriage proposal, created by making a sort of LED screen out of hundreds of cell phones. The display was then programmed to display a surprise romantic message to the unsuspecting girlfriend. Check out the video and see for yourself: […]
    Rick Martin



Ads: 仙台 専門学校 ベビーインテリア 美容整形 トランクルーム ケアベア ピアノ買取 かつら 電話占い 電子タバコ 杉並区 不動産 アメリカ 留学 翻訳会社 電話占い 外断熱 恵比寿 ネイルサロン