{"id":7349,"date":"2017-07-01T00:12:10","date_gmt":"2017-06-30T16:12:10","guid":{"rendered":"https:\/\/pinyin.info\/news\/?p=7349"},"modified":"2017-06-30T16:45:13","modified_gmt":"2017-06-30T08:45:13","slug":"how-to-add-tone-marks-to-pinyin-automatically-sort-of","status":"publish","type":"post","link":"https:\/\/pinyin.info\/news\/2017\/how-to-add-tone-marks-to-pinyin-automatically-sort-of\/","title":{"rendered":"How to add tone marks to Pinyin automatically, sort of"},"content":{"rendered":"<p><a href=\"https:\/\/pinyin.info\/news\/news_photos\/2017\/06\/pinyin_without_tone_marks_with_tone_marks.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pinyin.info\/news\/news_photos\/2017\/06\/pinyin_without_tone_marks_with_tone_marks.png\" alt=\"PInyin text without and with tone marks\" width=\"584\" height=\"200\" class=\"aligncenter size-full wp-image-7447\" srcset=\"https:\/\/pinyin.info\/news\/news_photos\/2017\/06\/pinyin_without_tone_marks_with_tone_marks.png 584w, https:\/\/pinyin.info\/news\/news_photos\/2017\/06\/pinyin_without_tone_marks_with_tone_marks-300x103.png 300w, https:\/\/pinyin.info\/news\/news_photos\/2017\/06\/pinyin_without_tone_marks_with_tone_marks-500x171.png 500w\" sizes=\"auto, (max-width: 584px) 100vw, 584px\" \/><\/a><\/p>\n<p>There are plenty of ways to type Hanyu Pinyin with tone marks. These usually involve typing the tone number after the vowel in question or entering a series of special keystrokes to produce the tone mark. <\/p>\n<p>But some consider that too much <em>mafan<\/em>, or perhaps are unsure of which tones are correct. (Heads up, students learning Mandarin! This post will be useful.) So occasionally I&#8217;m asked this question: <\/p>\n<blockquote><p>Is there a way to type in Hanyu Pinyin and have the correct tone marks appear automatically &#8212; <em>even without typing tone numbers or pressing additional keys<\/em>? Oh, and for free too, please.<\/p><\/blockquote>\n<p>The answer is a qualified <em>yes<\/em>. <\/p>\n<p>Google Translate&#8217;s Pinyin function has come a long way since its <a href=\"https:\/\/pinyin.info\/news\/2009\/google-translates-new-pinyin-function-sucks\/\">inauspicious beginning<\/a> about eight years ago. For quite some time it has even offered a way to add tone marks automatically, though few people know of this function, which could still use a great deal of improvement. <\/p>\n<p>To get Google Translate to produce Pinyin with tone marks as you enter text in toneless Pinyin, first you need to set the system to translate <a href=\"https:\/\/translate.google.com\/#zh-CN\/zh-TW\/\">from &#8220;Chinese&#8221; to &#8220;Chinese (Traditional)&#8221;<\/a> or <a href=\"https:\/\/translate.google.com\/#zh-CN\/zh-CN\/\">from &#8220;Chinese&#8221; to &#8220;Chinese (Simplified)&#8221;<\/a>. <\/p>\n<p>Enter your text in the box and Pinyin with tone marks will appear below the box on the right. <\/p>\n<p>(Click any image to enlarge it.)<\/p>\n<p><a href=\"https:\/\/pinyin.info\/news\/news_photos\/2017\/06\/google_translate_pinyin_sample.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pinyin.info\/news\/news_photos\/2017\/06\/google_translate_pinyin_sample-1024x337.png\" alt=\"\" width=\"584\" height=\"192\" class=\"aligncenter size-large wp-image-7439\" srcset=\"https:\/\/pinyin.info\/news\/news_photos\/2017\/06\/google_translate_pinyin_sample-1024x337.png 1024w, https:\/\/pinyin.info\/news\/news_photos\/2017\/06\/google_translate_pinyin_sample-300x99.png 300w, https:\/\/pinyin.info\/news\/news_photos\/2017\/06\/google_translate_pinyin_sample-768x253.png 768w, https:\/\/pinyin.info\/news\/news_photos\/2017\/06\/google_translate_pinyin_sample-500x164.png 500w, https:\/\/pinyin.info\/news\/news_photos\/2017\/06\/google_translate_pinyin_sample.png 1323w\" sizes=\"auto, (max-width: 584px) 100vw, 584px\" \/><\/a><\/p>\n<p>Alas, there are some problems with the system. <\/p>\n<p>A lot of perfectly normal things that are essential to proper writing in Hanyu Pinyin will cause Google Translate to break. So when adding your text, do <em>not<\/em> use any of the following: <\/p>\n<ul>\n<li>capital letters<\/li>\n<li>the letter &#252; (use &#8220;v&#8221; instead)<\/li>\n<li>more than 160 characters (including spaces and punctuation) at a time<\/li>\n<\/ul>\n<h3>Up to 160 characters is fine<\/h3>\n<p><a href=\"https:\/\/pinyin.info\/news\/news_photos\/2017\/06\/google_translate_pinyin_160.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pinyin.info\/news\/news_photos\/2017\/06\/google_translate_pinyin_160-1024x364.png\" alt=\"Image showing how Google Translate will produce Hanyu Pinyin with tone marks for texts of up to 160 characters\" width=\"584\" height=\"208\" class=\"aligncenter size-large wp-image-7435\" srcset=\"https:\/\/pinyin.info\/news\/news_photos\/2017\/06\/google_translate_pinyin_160-1024x364.png 1024w, https:\/\/pinyin.info\/news\/news_photos\/2017\/06\/google_translate_pinyin_160-300x107.png 300w, https:\/\/pinyin.info\/news\/news_photos\/2017\/06\/google_translate_pinyin_160-768x273.png 768w, https:\/\/pinyin.info\/news\/news_photos\/2017\/06\/google_translate_pinyin_160-500x178.png 500w, https:\/\/pinyin.info\/news\/news_photos\/2017\/06\/google_translate_pinyin_160.png 1332w\" sizes=\"auto, (max-width: 584px) 100vw, 584px\" \/><\/a><\/p>\n<h3>But more than 160 characters will break the function that adds tone marks to Pinyin<\/h3>\n<p><a href=\"https:\/\/pinyin.info\/news\/news_photos\/2017\/06\/google_translate_pinyin_161.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pinyin.info\/news\/news_photos\/2017\/06\/google_translate_pinyin_161-1024x364.png\" alt=\"\" width=\"584\" height=\"208\" class=\"aligncenter size-large wp-image-7436\" srcset=\"https:\/\/pinyin.info\/news\/news_photos\/2017\/06\/google_translate_pinyin_161-1024x364.png 1024w, https:\/\/pinyin.info\/news\/news_photos\/2017\/06\/google_translate_pinyin_161-300x107.png 300w, https:\/\/pinyin.info\/news\/news_photos\/2017\/06\/google_translate_pinyin_161-768x273.png 768w, https:\/\/pinyin.info\/news\/news_photos\/2017\/06\/google_translate_pinyin_161-500x178.png 500w, https:\/\/pinyin.info\/news\/news_photos\/2017\/06\/google_translate_pinyin_161.png 1332w\" sizes=\"auto, (max-width: 584px) 100vw, 584px\" \/><\/a><\/p>\n<p>The following are optional in terms of getting Google Translate to give you good results, though they are not optional in properly written Pinyin: <\/p>\n<ul>\n<li>apostrophes<\/li>\n<li>spaces<\/li>\n<li>punctuation<\/li>\n<\/ul>\n<p>A second significant problem is that the system doesn&#8217;t deal well with proper nouns, failing both word parsing and capitalization, though at least it seems to recognize that proper nouns are units, even if Google Translate doesn&#8217;t write them correctly. <a href=\"https:\/\/pinyin.info\/news\/news_photos\/2017\/06\/google_translate_proper_nouns-1.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pinyin.info\/news\/news_photos\/2017\/06\/google_translate_proper_nouns-1-1024x337.png\" alt=\"sample showing how Google Translate fails to capitalize and parse Tian&#039;anmen and Mao Zedong, producing tian&#039;anmen and maozedong instead.\" width=\"584\" height=\"192\" class=\"aligncenter size-large wp-image-7445\" srcset=\"https:\/\/pinyin.info\/news\/news_photos\/2017\/06\/google_translate_proper_nouns-1-1024x337.png 1024w, https:\/\/pinyin.info\/news\/news_photos\/2017\/06\/google_translate_proper_nouns-1-300x99.png 300w, https:\/\/pinyin.info\/news\/news_photos\/2017\/06\/google_translate_proper_nouns-1-768x253.png 768w, https:\/\/pinyin.info\/news\/news_photos\/2017\/06\/google_translate_proper_nouns-1-500x164.png 500w, https:\/\/pinyin.info\/news\/news_photos\/2017\/06\/google_translate_proper_nouns-1.png 1323w\" sizes=\"auto, (max-width: 584px) 100vw, 584px\" \/><\/a><\/p>\n<p>So although Google Translate won&#8217;t handle everything for you, it can nevertheless be a useful tool for including tone marks in Hanyu Pinyin. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>There are plenty of ways to type Hanyu Pinyin with tone marks. These usually involve typing the tone number after the vowel in question or entering a series of special keystrokes to produce the tone mark. But some consider that &hellip; <a href=\"https:\/\/pinyin.info\/news\/2017\/how-to-add-tone-marks-to-pinyin-automatically-sort-of\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,32,20,105],"tags":[],"class_list":["post-7349","post","type-post","status-publish","format-standard","hentry","category-chinese","category-mandarin","category-pinyin","category-tone-marks"],"_links":{"self":[{"href":"https:\/\/pinyin.info\/news\/wp-json\/wp\/v2\/posts\/7349","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pinyin.info\/news\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pinyin.info\/news\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pinyin.info\/news\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pinyin.info\/news\/wp-json\/wp\/v2\/comments?post=7349"}],"version-history":[{"count":17,"href":"https:\/\/pinyin.info\/news\/wp-json\/wp\/v2\/posts\/7349\/revisions"}],"predecessor-version":[{"id":7448,"href":"https:\/\/pinyin.info\/news\/wp-json\/wp\/v2\/posts\/7349\/revisions\/7448"}],"wp:attachment":[{"href":"https:\/\/pinyin.info\/news\/wp-json\/wp\/v2\/media?parent=7349"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pinyin.info\/news\/wp-json\/wp\/v2\/categories?post=7349"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pinyin.info\/news\/wp-json\/wp\/v2\/tags?post=7349"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}