markpete Posted May 1, 2021 at 06:24 PM Report Posted May 1, 2021 at 06:24 PM Hi, people. I recently discovered that Google Sheets has a native translation function, as well as an available add-in that lets you generate pinyin. So while I'm talking to a teacher or language partner, we can both add Chinese words to a shared sheet, and the English translation and the pinyin will automatically get filled in. (It is a Google product, though, so people in Taiwan will have access but people in China generally won't.) Here is an example of how it works: https://bit.ly/2QKengc This add-in for generating pinyin is called “Mandarin Cantonese API”, available at https://workspace.google.com/marketplace/ Cheers, Mark 1 2 Quote
zhouhaochen Posted May 2, 2021 at 12:25 AM Report Posted May 2, 2021 at 12:25 AM That's interesting, thanks for sharing. How does it choose the right Pinyin for 多音字? Quote
mungouk Posted May 2, 2021 at 12:51 AM Report Posted May 2, 2021 at 12:51 AM It uses this Python code, by the same developer: https://github.com/lucwastiaux/python-pinyin-jyutping-sentence Quote Uses the Jieba library (https://github.com/fxsjy/jieba) to tokenize the sentence. Then words are converted to Pinyin/Jyutping either as a whole, or character by character, using the CC-Canto dictionary (http://cantonese.org/about.html). The Jyutping diacritic conversion is not standard but originally described here: http://www.cantonese.sheik.co.uk/phorum/read.php?1,127274,129006 Add-on's web page: http://api-docs.mandarincantonese.com/HELP Quote
Dawei3 Posted May 5, 2021 at 04:54 PM Report Posted May 5, 2021 at 04:54 PM On 5/1/2021 at 2:24 PM, markpete said: add-in that lets you generate pinyin Hi Mark, Are you aware Word will do this as well? I prefer what Word does because it puts the pinyin directly above the character. In this way, I associate the pinyin to the character more closely (rather than with google that lists them separately). Example below 1 Quote
mungouk Posted May 5, 2021 at 05:21 PM Report Posted May 5, 2021 at 05:21 PM The online conversion tool (one of many) at the Purple Culture bookstore can do this as well, adding pinyin "ruby" text, even with the tones colour-coded. https://www.purpleculture.net/chinese-pinyin-converter/ Quote
Recommended Posts
Join the conversation
You can post now and select your username and password later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.