[Simplified/Traditional Chinese](https://helloacm.com/on-the-fly-conversion-to-pinyin-using-chrome-extension-zh-cn-gb2312-zh-tw-big5/) is a chrome Extension that allows you to convert from ZH-CN (GB2312) to ZH-TW(BIG5) and vice versa. Chrome Webstore: [Simplified/Traditional Chinese](https://chrome.google.com/webstore/detail/%E7%AE%80%E4%BD%93%E7%B9%81%E4%BD%93%E8%BD%AC%E6%8D%A2-simplifiedtraditio/olpihmabpjpllgmahlgiakkgaccigpfo) I developed this tool because I feel more conformable in reading [Simplified Chinese](https://helloacm.com/chrome-extension-to-switch-between-simplified-chinese-and-traditional-chinese-automatically/) and I believe some others prefer the Traditional Chinese. Today, I have added a feature to convert Chinese characters (either in Simplified or Traditional Chinese) to Pinyin, which is used to pronounce the character characters. # UI Change ![image.png](https://res.cloudinary.com/hpiynhbhq/image/upload/v1517187905/wuozrsjqmdrbqimvqwww.png) # How it works For example, refresh the page, will convert the following: ![image.png](https://res.cloudinary.com/hpiynhbhq/image/upload/v1517187961/yzgwi8qqojjw2fo3ycqt.png) to: ![image.png](https://res.cloudinary.com/hpiynhbhq/image/upload/v1517187979/vtjjj8jszoddw2tyzjqo.png) # Technology Stack Chrome Extension, Javascript. # Commits Github: https://github.com/DoctorLai/Simplified-and-Traditional-Chinese [This commit](https://github.com/DoctorLai/Simplified-and-Traditional-Chinese/commit/ef185683de46c9e3ea597b4e877ef0bf9481c066#diff-bf5d8bd496c5783a45bd13aec64829eb) with some code formatting. ``` let testChinese = (cc, i) => { return (cc.charCodeAt(i) > 10000); } function Pinyin(cc) { let str = ''; for (let i = 0; i < cc.length; ++ i) { if (testChinese(cc, i)) { if (cc[i] in pinyin_data) { let ts = pinyin_data[cc[i]]; ts = ts.split(',')[0].slice(0, -1); str += ts[0].toUpperCase(); str += ts.substring(1); str += " "; } else { str += cc[i]; } } else { str += cc[i]; } } return str.trim(); } ``` <br /><hr/><em>Posted on <a href="https://utopian.io/utopian-io/@justyy/on-the-fly-conversion-to-pinyin-using-chrome-extension-zh-cn-gb2312-zh-tw-big5">Utopian.io - Rewarding Open Source Contributors</a></em><hr/>
post_id | 28,817,674 | ||||||
---|---|---|---|---|---|---|---|
author | justyy | ||||||
permlink | on-the-fly-conversion-to-pinyin-using-chrome-extension-zh-cn-gb2312-zh-tw-big5 | ||||||
category | utopian-io | ||||||
json_metadata | "{"type": "development", "repository": {"owner": {"login": "DoctorLai"}, "id": 99736743, "full_name": "DoctorLai/Simplified-and-Traditional-Chinese", "fork": false, "name": "Simplified-and-Traditional-Chinese", "html_url": "https://github.com/DoctorLai/Simplified-and-Traditional-Chinese"}, "pullRequests": [], "format": "markdown", "image": ["https://res.cloudinary.com/hpiynhbhq/image/upload/v1517187905/wuozrsjqmdrbqimvqwww.png"], "links": ["https://helloacm.com/on-the-fly-conversion-to-pinyin-using-chrome-extension-zh-cn-gb2312-zh-tw-big5/", "https://chrome.google.com/webstore/detail/%E7%AE%80%E4%BD%93%E7%B9%81%E4%BD%93%E8%BD%AC%E6%8D%A2-simplifiedtraditio/olpihmabpjpllgmahlgiakkgaccigpfo", "https://helloacm.com/chrome-extension-to-switch-between-simplified-chinese-and-traditional-chinese-automatically/", "https://github.com/DoctorLai/Simplified-and-Traditional-Chinese", "https://github.com/DoctorLai/Simplified-and-Traditional-Chinese/commit/ef185683de46c9e3ea597b4e877ef0bf9481c066#diff-bf5d8bd496c5783a45bd13aec64829eb", "https://utopian.io/utopian-io/@justyy/on-the-fly-conversion-to-pinyin-using-chrome-extension-zh-cn-gb2312-zh-tw-big5"], "platform": "github", "moderator": {"pending": false, "account": "codingdefined", "reviewed": true, "flagged": false, "time": "2018-01-29T04:33:44.875Z"}, "app": "steemit/0.1", "tags": ["utopian-io", "chrome-extension", "chinese", "cn", "programming"], "community": "utopian"}" | ||||||
created | 2018-01-29 01:09:54 | ||||||
last_update | 2018-01-30 10:04:03 | ||||||
depth | 0 | ||||||
children | 4 | ||||||
net_rshares | 14,770,912,794,739 | ||||||
last_payout | 2018-02-05 01:09:54 | ||||||
cashout_time | 1969-12-31 23:59:59 | ||||||
total_payout_value | 67.976 SBD | ||||||
curator_payout_value | 25.544 SBD | ||||||
pending_payout_value | 0.000 SBD | ||||||
promoted | 0.000 SBD | ||||||
body_length | 2,269 | ||||||
author_reputation | 2,057,469,156,047,835 | ||||||
root_title | "On-the-fly Conversion to Pinyin using Chrome Extension: ZH-CN (GB2312) <---> ZH-TW (BIG5)" | ||||||
beneficiaries |
| ||||||
max_accepted_payout | 1,000,000.000 SBD | ||||||
percent_steem_dollars | 10,000 | ||||||
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
coinbitgold | 0 | 50,378,588,776 | 100% | ||
ace108 | 0 | 181,238,691,242 | 16% | ||
tensaix2j | 0 | 3,150,692,251 | 100% | ||
magicmonk | 0 | 78,930,040,128 | 50% | ||
archiles | 0 | 128,290,232 | 100% | ||
ericsim1991 | 0 | 126,496,271 | 100% | ||
ericsim1989 | 0 | 125,636,794 | 100% | ||
justyy | 0 | 598,325,814,844 | 100% | ||
luneknight | 0 | 1,360,340,447 | 100% | ||
unipsycho | 0 | 75,942,810 | 1% | ||
dapeng | 0 | 4,351,202,009 | 2% | ||
happyukgo | 0 | 1,861,981,440 | 100% | ||
sv67216721 | 0 | 447,174,279 | 5% | ||
manuel78 | 0 | 127,929,039 | 3% | ||
frankintaiwan | 0 | 80,958,102 | 20% | ||
helo | 0 | 5,051,025,769 | 100% | ||
shenchensucc | 0 | 9,115,509,802 | 100% | ||
olyste | 0 | 470,367,900 | 100% | ||
victorialuxx | 0 | 1,065,245,753 | 100% | ||
susanli3769 | 0 | 79,200,383,565 | 100% | ||
yvonneinoregon | 0 | 1,076,766,860 | 100% | ||
davidmendel | 0 | 22,638,083,406 | 100% | ||
robinlee | 0 | 408,839,698 | 100% | ||
ety001 | 0 | 2,819,035,299 | 100% | ||
sandan | 0 | 509,902,535 | 100% | ||
rainyapril | 0 | 534,151,764 | 100% | ||
al2ping | 0 | 100,488,234 | 100% | ||
drunkevil | 0 | 832,683,031 | 25% | ||
oldman28 | 0 | 17,809,904,270 | 52% | ||
liangfengyouren | 0 | 1,652,755,656 | 50% | ||
pzhao | 0 | 53,109,972 | 2% | ||
jiangchen | 0 | 54,125,039 | 10% | ||
shengjian | 0 | 22,249,437,697 | 100% | ||
mangoanddaddy | 0 | 229,002,508 | 80% | ||
kangnajiang | 0 | 496,560,911 | 100% | ||
cifer | 0 | 2,657,974,227 | 90% | ||
geass | 0 | 581,306,767 | 100% | ||
moonvoid | 0 | 614,503,785 | 100% | ||
tvb | 0 | 4,109,827,004 | 19% | ||
kyyv | 0 | 52,927,264 | 100% | ||
ericsim | 0 | 316,469,449 | 100% | ||
waiyee422 | 0 | 4,558,381,798 | 100% | ||
boontjie | 0 | 3,966,418,377 | 100% | ||
chenlocus | 0 | 3,207,639,144 | 40% | ||
rosatravels | 0 | 18,475,174,392 | 20% | ||
xuran | 0 | 5,075,463,584 | 100% | ||
superbing | 0 | 8,912,631,610 | 100% | ||
dailyfortune | 0 | 6,318,157,215 | 100% | ||
xiaoshancun | 0 | 314,879,643 | 100% | ||
dailystats | 0 | 12,642,868,454 | 100% | ||
lixing | 0 | 6,047,198,243 | 100% | ||
wangwenjing | 0 | 2,649,690,712 | 30% | ||
vandadream | 0 | 3,313,473,590 | 100% | ||
ivysrono | 0 | 926,662,325 | 2% | ||
alanzheng | 0 | 88,038,595 | 2% | ||
jianan | 0 | 523,334,141 | 100% | ||
utopian-io | 0 | 13,267,766,790,896 | 9% | ||
cnbuddy | 0 | 198,720,645,421 | 46.66% | ||
nileelily | 0 | 1,484,770,042 | 100% | ||
chann | 0 | 11,567,112,982 | 30% | ||
iamafra | 0 | 1,709,322,805 | 2% | ||
daxiang | 0 | 221,355,927 | 100% | ||
cnsteem | 0 | 11,588,378,872 | 100% | ||
lebin | 0 | 33,950,481,097 | 50% | ||
ecoman1 | 0 | 576,283,853 | 100% | ||
realinfo | 0 | 13,622,167,464 | 100% | ||
cryptonewsly | 0 | 204,760,816 | 100% | ||
blockd | 0 | 523,001,813 | 100% | ||
moobear | 0 | 3,127,093,318 | 100% | ||
maiyude | 0 | 18,407,434,860 | 100% | ||
nean | 0 | 529,694,980 | 100% | ||
liuye | 0 | 364,448,988 | 100% | ||
foodielifestyle | 0 | 1,015,677,543 | 100% | ||
aai | 0 | 377,589,905 | 100% | ||
woolfe19861008 | 0 | 498,122,949 | 100% | ||
dailychina | 0 | 9,021,231,810 | 100% | ||
vincenthan | 0 | 521,161,965 | 100% | ||
yuxuan | 0 | 84,511,656 | 100% | ||
dongfengman | 0 | 446,469,849 | 100% | ||
serenazz | 0 | 14,268,015,387 | 100% | ||
cha0s0000 | 0 | 503,178,764 | 100% | ||
yedda | 0 | 515,780,602 | 100% | ||
astur | 0 | 248,988,538 | 100% | ||
shentrading | 0 | 1,399,313,689 | 100% | ||
abri | 0 | 564,842,379 | 100% | ||
zasilla | 0 | 433,872,329 | 100% | ||
syaisyah | 0 | 571,670,084 | 100% | ||
jjerryhan | 0 | 402,859,986 | 100% | ||
zhuobufan | 0 | 103,285,423 | 100% | ||
fishaa | 0 | 1,949,533,695 | 50% | ||
aaronstar | 0 | 98,808,900 | 100% | ||
ayanamoon | 0 | 86,224,921 | 100% | ||
twinsnicole | 0 | 448,564,986 | 100% | ||
meeessien | 0 | 559,166,593 | 100% | ||
ldsn001 | 0 | 0 | 50% |
![tbl92gx.gif](https://steemitimages.com/DQma26jSq5SVpf8tUu6NsMSqZ316H4fyTdQSaoq6vtyTGN2/tbl92gx.gif)
post_id | 28,818,012 |
---|---|
author | aress |
permlink | re-justyy-on-the-fly-conversion-to-pinyin-using-chrome-extension-zh-cn-gb2312-zh-tw-big5-20180129t011151733z |
category | utopian-io |
json_metadata | "{"app": "steemit/0.1", "image": ["https://steemitimages.com/DQma26jSq5SVpf8tUu6NsMSqZ316H4fyTdQSaoq6vtyTGN2/tbl92gx.gif"], "tags": ["utopian-io"]}" |
created | 2018-01-29 01:11:54 |
last_update | 2018-01-29 01:11:54 |
depth | 1 |
children | 0 |
net_rshares | 0 |
last_payout | 2018-02-05 01:11:54 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 SBD |
curator_payout_value | 0.000 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 101 |
author_reputation | 211,078,716,370 |
root_title | "On-the-fly Conversion to Pinyin using Chrome Extension: ZH-CN (GB2312) <---> ZH-TW (BIG5)" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |
great job, raeally great idea for an app ... Greetings from me @justyy
post_id | 28,818,259 |
---|---|
author | syaisyah |
permlink | re-justyy-on-the-fly-conversion-to-pinyin-using-chrome-extension-zh-cn-gb2312-zh-tw-big5-20180129t011327124z |
category | utopian-io |
json_metadata | "{"app": "steemit/0.1", "users": ["justyy"], "tags": ["utopian-io"]}" |
created | 2018-01-29 01:13:33 |
last_update | 2018-01-29 01:13:33 |
depth | 1 |
children | 0 |
net_rshares | 0 |
last_payout | 2018-02-05 01:13:33 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 SBD |
curator_payout_value | 0.000 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 70 |
author_reputation | 16,426,897,814 |
root_title | "On-the-fly Conversion to Pinyin using Chrome Extension: ZH-CN (GB2312) <---> ZH-TW (BIG5)" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |
Thank you for the contribution. It has been approved. You can contact us on [Discord](https://discord.gg/uTyJkNm). **[[utopian-moderator]](https://utopian.io/moderators)**
post_id | 28,851,156 |
---|---|
author | codingdefined |
permlink | re-justyy-on-the-fly-conversion-to-pinyin-using-chrome-extension-zh-cn-gb2312-zh-tw-big5-20180129t043350761z |
category | utopian-io |
json_metadata | "{"app": "utopian/1.0.0", "community": "utopian", "tags": ["utopian-io"]}" |
created | 2018-01-29 04:33:51 |
last_update | 2018-01-29 04:33:51 |
depth | 1 |
children | 0 |
net_rshares | 0 |
last_payout | 2018-02-05 04:33:51 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 SBD |
curator_payout_value | 0.000 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 172 |
author_reputation | 71,157,752,447,147 |
root_title | "On-the-fly Conversion to Pinyin using Chrome Extension: ZH-CN (GB2312) <---> ZH-TW (BIG5)" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |
### Hey @justyy I am @utopian-io. I have just upvoted you! #### Achievements - WOW WOW WOW People loved what you did here. GREAT JOB! - Seems like you contribute quite often. AMAZING! #### Community-Driven Witness! I am the first and only Steem Community-Driven Witness. <a href="https://discord.gg/zTrEMqB">Participate on Discord</a>. Lets GROW TOGETHER! - <a href="https://v2.steemconnect.com/sign/account-witness-vote?witness=utopian-io&approve=1">Vote for my Witness With SteemConnect</a> - <a href="https://v2.steemconnect.com/sign/account-witness-proxy?proxy=utopian-io&approve=1">Proxy vote to Utopian Witness with SteemConnect</a> - Or vote/proxy on <a href="https://steemit.com/~witnesses">Steemit Witnesses</a> [![mooncryption-utopian-witness-gif](https://steemitimages.com/DQmYPUuQRptAqNBCQRwQjKWAqWU3zJkL3RXVUtEKVury8up/mooncryption-s-utopian-io-witness-gif.gif)](https://steemit.com/~witnesses) **Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x**
post_id | 29,019,762 |
---|---|
author | utopian-io |
permlink | re-justyy-on-the-fly-conversion-to-pinyin-using-chrome-extension-zh-cn-gb2312-zh-tw-big5-20180129t210833410z |
category | utopian-io |
json_metadata | "{"app": "utopian/1.0.0", "community": "utopian", "tags": ["utopian-io"]}" |
created | 2018-01-29 21:08:33 |
last_update | 2018-01-29 21:08:33 |
depth | 1 |
children | 0 |
net_rshares | 0 |
last_payout | 2018-02-05 21:08:33 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 SBD |
curator_payout_value | 0.000 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 1,061 |
author_reputation | 152,913,012,544,965 |
root_title | "On-the-fly Conversion to Pinyin using Chrome Extension: ZH-CN (GB2312) <---> ZH-TW (BIG5)" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |