#### Repo https://github.com/pzhaonet/pinyin ### Brief Intro and curriculum The 'pinyin' package was developed in R language. It can convert Chinese characters in to Latin letters, officially called pinyin, i.e. the romanization system for Standard Chinese in mainland China, Malaysia, Singapore, and Taiwan. An brief introduction can be referred to the post [pinyin: an R package that converts Chinese characters into Latin letters](https://steemit.com/utopian-io/@dapeng/pinyin-an-r-package-that-converts-chineses-characters-into-latin-letters-r). ### New Features #### What features did I add? - Four times faster for converting. - At the beginning of the year 2018 I received an issue report by [psychelzh](https://github.com/pzhaonet/pinyin/issues/3#issue-295041288) about a polyphone error. Now a new pinyin library has been added, which more or less solved the polyphone problem. - Convert Chinese characters into Sijiao codes (literally [four corner code](https://en.wikipedia.org/wiki/Four-Corner_Method)). - and Wubi codes (literally [five-stroke](https://en.wikipedia.org/wiki/Wubi_method)). - Some minor bugs were fixed. [![](https://cdn.steemitimages.com/DQmRtco1JZ19PSvq8RKGNN8CYxNKzzHqNdtUqqFjam1b2Zz/pinyin-test.jpg)](https://cdn.steemitimages.com/DQmRtco1JZ19PSvq8RKGNN8CYxNKzzHqNdtUqqFjam1b2Zz/pinyin-test.jpg) Figure 1: Test the new features in RStudio IDE #### How did I implement them? - Following [Qu Cheng](https://github.com/canalcheng)'s suggestions in personal communications, I converted the pinyin library into an environment to accelerate the converting procedure by the `pylib()` function. - A new pinyin library '/inst/lib/zh2.txt' was added and a parameter `dic = c('zh', 'zh2')` in the `pylib()` function allows the users to choose a preferable library for polyphone. - New functions `fclib()` and `four_corner()` imports a four-corner library and converts Chinese characters into four-corner codes, according to Qu Cheng's suggestions. - A new function `wubi()` imports a five-stroke library and converts Chinese characters into five-stroke codes, again according to Qu Cheng's suggestions. - The downstream functions `bookdown2py()`, `file.rename2py()`, `file2py()` were updated to support the updates mentioned above. Each part of the functions are well documented. Other files were updated automatically by compilation. Link to relevant lines in the code on GitHub can be found mainly in my latest commit (click to see the details): - [Faster. Users can preload the library. A simple library was added. Four-corner codes are supported.](https://github.com/pzhaonet/pinyin/commit/cbdd753a86744debdfccae1ce63c7870d4e808e1) - [Convert Chnese characters into Wubi codes](https://github.com/pzhaonet/pinyin/commit/59aaf6aea73c6d73aaec9c6dcc38d402f98e06de) #### GitHub Account https://github.com/pzhaonet
post_id | 64,118,963 |
---|---|
author | dapeng |
permlink | pinyin-wubi |
category | utopian-io |
json_metadata | {"links":["https:\/\/github.com\/pzhaonet\/pinyin","https:\/\/steemit.com\/utopian-io\/@dapeng\/pinyin-an-r-package-that-converts-chineses-characters-into-latin-letters-r","https:\/\/github.com\/pzhaonet\/pinyin\/issues\/3#issue-295041288","https:\/\/en.wikipedia.org\/wiki\/Four-Corner_Method","https:\/\/en.wikipedia.org\/wiki\/Wubi_method","https:\/\/cdn.steemitimages.com\/DQmRtco1JZ19PSvq8RKGNN8CYxNKzzHqNdtUqqFjam1b2Zz\/pinyin-test.jpg","https:\/\/github.com\/canalcheng","https:\/\/github.com\/pzhaonet\/pinyin\/commit\/cbdd753a86744debdfccae1ce63c7870d4e808e1","https:\/\/github.com\/pzhaonet\/pinyin\/commit\/59aaf6aea73c6d73aaec9c6dcc38d402f98e06de","https:\/\/github.com\/pzhaonet"],"format":"markdown","image":["https:\/\/cdn.steemitimages.com\/DQmRtco1JZ19PSvq8RKGNN8CYxNKzzHqNdtUqqFjam1b2Zz\/pinyin-test.jpg"],"app":"steemit\/0.1","tags":["utopian-io","development","r","promo-steem","cn"]} |
created | 2018-10-12 13:31:42 |
last_update | 2018-10-12 13:33:21 |
depth | 0 |
children | 7 |
net_rshares | 9,085,004,642,345 |
last_payout | 2018-10-19 13:31:42 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 9.381 SBD |
curator_payout_value | 2.949 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 2,853 |
author_reputation | 64,235,894,740,263 |
root_title | "[R: New Features on pinyin] Convert Chinese Characters into Sijiao and Wubi codes" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
adm | 0 | 5,583,270,861,838 | 30% | ||
deanliu | 0 | 425,638,742,120 | 30% | ||
magicmonk | 0 | 183,801,161,637 | 100% | ||
justyy | 0 | 171,521,176,427 | 9.94% | ||
jianghao | 0 | 181,658,332 | 10% | ||
eforucom | 0 | 764,655,782 | 1% | ||
luneknight | 0 | 331,855,435 | 100% | ||
dapeng | 0 | 33,703,308,368 | 100% | ||
shenchensucc | 0 | 1,914,937,910 | 50% | ||
doughtaker | 0 | 11,464,904,010 | 50% | ||
codingdefined | 0 | 4,029,077,193 | 5% | ||
sweetieprincess | 0 | 25,331,009,939 | 40% | ||
liangfengyouren | 0 | 1,426,048,272 | 50% | ||
pzhao | 0 | 4,362,360,901 | 100% | ||
jiangchen | 0 | 14,837,056,651 | 100% | ||
mangoanddaddy | 0 | 2,217,985,668 | 80% | ||
steem-d-anlovnit | 0 | 16,305,846,595 | 35% | ||
tvb | 0 | 77,821,712,306 | 100% | ||
skenan | 0 | 14,475,239,099 | 50% | ||
waiyee422 | 0 | 1,220,057,232 | 20.11% | ||
davidke20 | 0 | 6,836,323,293 | 10% | ||
rosatravels | 0 | 2,285,371,974 | 10% | ||
superbing | 0 | 474,960,915 | 7.44% | ||
espoem | 0 | 8,974,145,286 | 7.5% | ||
xiaoshancun | 0 | 244,642,537 | 100% | ||
dailystats | 0 | 1,291,393,983 | 7.46% | ||
victory622 | 0 | 91,477,245,259 | 52% | ||
lindalex | 0 | 145,993,342 | 20% | ||
winniex | 0 | 35,483,672,726 | 100% | ||
jianan | 0 | 1,233,842,791 | 7.76% | ||
shammi | 0 | 696,423,638 | 1% | ||
huatanzhang | 0 | 1,734,142,310 | 100% | ||
emrebeyler | 0 | 72,873,530,365 | 5% | ||
muksihs | 0 | 233,675,099 | 9.48% | ||
steemtaker | 0 | 322,423,515 | 0.5% | ||
windowglass | 0 | 30,284,040,349 | 100% | ||
cnbuddy | 0 | 427,913,894,524 | 40.23% | ||
nileelily | 0 | 722,440,703 | 20.11% | ||
chann | 0 | 3,437,011,817 | 20% | ||
jacktan | 0 | 155,841,764 | 25% | ||
anxin | 0 | 129,824,883 | 7.82% | ||
newsrx | 0 | 135,463,554 | 9.48% | ||
angelina6688 | 0 | 20,857,592,126 | 100% | ||
lebin | 0 | 24,852,106,425 | 5% | ||
coindzs | 0 | 138,169,946 | 100% | ||
amosbastian | 0 | 14,654,971,545 | 16.82% | ||
iguazi123 | 0 | 81,109,026 | 4.02% | ||
tdre | 0 | 14,009,821,141 | 100% | ||
jjay | 0 | 420,031,248 | 100% | ||
joeliew | 0 | 136,318,730 | 5% | ||
wilhb81 | 0 | 11,201,561,212 | 75% | ||
woolfe19861008 | 0 | 102,544,724 | 7.82% | ||
holger80 | 0 | 90,918,262,378 | 50% | ||
dailychina | 0 | 1,397,956,155 | 7.45% | ||
vamos-amigo | 0 | 158,031,202 | 5% | ||
yjcps | 0 | 2,330,817,393 | 100% | ||
dongfengman | 0 | 685,999,165 | 7.82% | ||
historylover | 0 | 991,631,367 | 100% | ||
shentrading | 0 | 9,538,936,889 | 36.2% | ||
ethanlee | 0 | 3,410,601,587 | 100% | ||
andrewnoel | 0 | 2,922,290,407 | 30% | ||
hakancelik | 0 | 6,898,391,237 | 10% | ||
eondas | 0 | 182,336,387 | 50% | ||
liewsc | 0 | 1,029,119,555 | 25% | ||
tanzy | 0 | 100,849,770 | 25% | ||
lilypang22 | 0 | 142,852,752 | 5.03% | ||
liewps | 0 | 100,990,052 | 25% | ||
ryuna.siege | 0 | 208,902,659 | 100% | ||
liuzg | 0 | 351,004,307 | 10% | ||
honoru | 0 | 532,385,471 | 25% | ||
duski.harahap | 0 | 4,123,856,169 | 100% | ||
sweet-jenny8 | 0 | 1,352,772,607 | 7.81% | ||
leatherdog-games | 0 | 371,675,506 | 9.48% | ||
fishlucy | 0 | 20,981,854,956 | 50% | ||
pgr | 0 | 309,685,078 | 25% | ||
china-mobile | 0 | 99,649,163 | 50% | ||
xiaoyuanwmm | 0 | 150,885,454 | 50% | ||
kidsreturn | 0 | 243,356,348 | 25% | ||
team-cn | 0 | 150,390,177,994 | 50% | ||
weitz | 0 | 78,678,838 | 25% | ||
hardmetal | 0 | 387,935,236 | 100% | ||
bambugrove | 0 | 97,621,921 | 30% | ||
redlobster | 0 | 203,042,313 | 50% | ||
marcoy2j | 0 | 87,667,778 | 25% | ||
yuwen | 0 | 383,645,143 | 100% | ||
shuxue | 0 | 383,644,927 | 100% | ||
yingyu | 0 | 384,106,912 | 100% | ||
wuli | 0 | 384,011,143 | 100% | ||
huaxue | 0 | 384,011,306 | 100% | ||
shengwu | 0 | 385,150,653 | 100% | ||
shuxuan | 0 | 182,050,301 | 50% | ||
xiaowucw | 0 | 181,903,690 | 50% | ||
laiyuehta | 0 | 121,171,234 | 5.59% | ||
turtlegraphics | 0 | 656,624,983 | 7.43% | ||
sunai | 0 | 561,948,700 | 25% | ||
zongli | 0 | 374,984,911 | 100% | ||
zhuxi | 0 | 375,388,988 | 100% | ||
julian2013 | 0 | 39,507,375,483 | 100% | ||
bunnymandy | 0 | 98,707,320 | 25% | ||
mops2e | 0 | 204,196,422 | 7.5% | ||
changxiu | 0 | 188,335,338 | 20.11% | ||
cn-doctors | 0 | 162,396,868 | 50% | ||
wongmanman | 0 | 99,278,357 | 25% | ||
filippocrypto | 0 | 12,069,863,749 | 100% | ||
kissfirer | 0 | 218,835,768 | 50% | ||
witnesstools | 0 | 629,912,141 | 7.42% | ||
bichen | 0 | 997,262,506 | 100% | ||
steem-ua | 0 | 1,362,496,415,110 | 9.48% | ||
ilovecoding | 0 | 608,899,078 | 7.33% | ||
nfc | 0 | 9,070,500,228 | 1% | ||
teamcr | 0 | 713,269,801 | 100% | ||
curbot | 0 | 3,842,993,283 | 10% | ||
steemfuckeos | 0 | 397,353,443 | 7.43% |
Thank you for your contribution. Converting Chinese Characters to Five-Stroke is very useful and I would suggest you adding the Five Stroke 86 as well - because many others like myself use Five Stroke 86 instead of 98. Anyway, it is a nice piece of work! Your contribution has been evaluated according to [Utopian policies and guidelines](https://join.utopian.io/guidelines), as well as a predefined set of questions pertaining to the category. To view those questions and the relevant answers related to your post, [click here](https://review.utopian.io/result/3/2222222). ---- Need help? Write a ticket on https://support.utopian.io/. Chat with us on [Discord](https://discord.gg/uTyJkNm). [[utopian-moderator]](https://join.utopian.io/)
post_id | 64,138,288 |
---|---|
author | justyy |
permlink | re-dapeng-pinyin-wubi-20181012t201139924z |
category | utopian-io |
json_metadata | {"links":["https:\/\/join.utopian.io\/guidelines","https:\/\/review.utopian.io\/result\/3\/2222222","https:\/\/support.utopian.io\/","https:\/\/discord.gg\/uTyJkNm","https:\/\/join.utopian.io\/"],"app":"steemit\/0.1","tags":["utopian-io"]} |
created | 2018-10-12 20:11:39 |
last_update | 2018-10-12 20:11:39 |
depth | 1 |
children | 2 |
net_rshares | 7,164,991,935,707 |
last_payout | 2018-10-19 20:11:39 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 7.312 SBD |
curator_payout_value | 2.383 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 745 |
author_reputation | 2,073,321,573,485,954 |
root_title | "[R: New Features on pinyin] Convert Chinese Characters into Sijiao and Wubi codes" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
dapeng | 0 | 34,937,401,369 | 100% | ||
happyukgo | 0 | 492,781,656 | 25% | ||
codingdefined | 0 | 4,033,097,444 | 5% | ||
superbing | 0 | 1,783,166,980 | 25% | ||
dailyfortune | 0 | 36,729,477 | 25% | ||
dailystats | 0 | 4,627,736,823 | 25% | ||
utopian-io | 0 | 7,044,728,673,311 | 5.74% | ||
zapncrap | 0 | 1,892,607,852 | 5% | ||
amosbastian | 0 | 4,590,330,718 | 5.22% | ||
curx | 0 | 1,823,324,608 | 5% | ||
interfecto | 0 | 809,707,530 | 17% | ||
organicgardener | 0 | 1,980,028,186 | 25% | ||
dailychina | 0 | 5,006,684,034 | 25% | ||
hakancelik | 0 | 21,073,823,056 | 30% | ||
mightypanda | 0 | 27,391,071,875 | 25% | ||
turtlegraphics | 0 | 2,421,771,862 | 25% | ||
fastandcurious | 0 | 1,226,953,864 | 35% | ||
witnesstools | 0 | 2,331,927,169 | 25% | ||
ilovecoding | 0 | 2,289,429,542 | 25% | ||
steemfuckeos | 0 | 1,514,688,351 | 25% |
Thank you for your fast review and kind suggestion! The new features of converting to Four-corner codes and Fire-stroke were required by users, although I myself never use them. Supporting Five-stroke-86 would surely enhance the usage of the pinyin package. In the future version, pinyin will be more flexible and allow users to customize their own dictionaries. I am afraid the pinyin package has to be renamed as 'zidian'. Thank you.
post_id | 64,139,330 |
---|---|
author | dapeng |
permlink | re-justyy-re-dapeng-pinyin-wubi-20181012t204033490z |
category | utopian-io |
json_metadata | {"app":"steemit\/0.1","tags":["utopian-io"]} |
created | 2018-10-12 20:40:39 |
last_update | 2018-10-12 20:40:39 |
depth | 2 |
children | 0 |
net_rshares | 0 |
last_payout | 2018-10-19 20:40:39 |
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 | 438 |
author_reputation | 64,235,894,740,263 |
root_title | "[R: New Features on pinyin] Convert Chinese Characters into Sijiao and Wubi codes" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |
Thank you for your review, @justyy! So far this week you've reviewed 1 contributions. Keep up the good work!
post_id | 64,459,168 |
---|---|
author | utopian-io |
permlink | re-re-dapeng-pinyin-wubi-20181012t201139924z-20181018t061613z |
category | utopian-io |
json_metadata | {"app":"beem\/0.20.1"} |
created | 2018-10-18 06:16:15 |
last_update | 2018-10-18 06:16:15 |
depth | 2 |
children | 0 |
net_rshares | 0 |
last_payout | 2018-10-25 06:16:15 |
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 | 109 |
author_reputation | 152,913,012,544,965 |
root_title | "[R: New Features on pinyin] Convert Chinese Characters into Sijiao and Wubi codes" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |
#### Hi @dapeng! Your post was upvoted by @steem-ua, new Steem dApp, using UserAuthority for algorithmic post curation! Your post is eligible for our upvote, thanks to our collaboration with @utopian-io! **Feel free to join our [@steem-ua Discord server](https://discord.gg/KpBNYGz)**
post_id | 64,138,585 |
---|---|
author | steem-ua |
permlink | re-pinyin-wubi-20181012t201941z |
category | utopian-io |
json_metadata | {"app":"beem\/0.20.7"} |
created | 2018-10-12 20:19:42 |
last_update | 2018-10-12 20:19:42 |
depth | 1 |
children | 0 |
net_rshares | 0 |
last_payout | 2018-10-19 20:19:42 |
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 | 285 |
author_reputation | 23,203,609,903,979 |
root_title | "[R: New Features on pinyin] Convert Chinese Characters into Sijiao and Wubi codes" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |
好久不见大鹏老师😄!问个好啦!
post_id | 64,152,763 |
---|---|
author | xiaoshancun |
permlink | re-dapeng-pinyin-wubi-20181013t030801737z |
category | utopian-io |
json_metadata | {"app":"steemit\/0.1","tags":["utopian-io"]} |
created | 2018-10-13 03:08:06 |
last_update | 2018-10-13 03:08:06 |
depth | 1 |
children | 2 |
net_rshares | 0 |
last_payout | 2018-10-20 03:08:06 |
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 | 15 |
author_reputation | 155,278,422,778,942 |
root_title | "[R: New Features on pinyin] Convert Chinese Characters into Sijiao and Wubi codes" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |
三哥好!经常读三哥的文字,只是没留言。最近太懒,不好意思:)
post_id | 64,195,515 |
---|---|
author | dapeng |
permlink | re-xiaoshancun-re-dapeng-pinyin-wubi-20181013t203742670z |
category | utopian-io |
json_metadata | {"app":"steemit\/0.1","tags":["utopian-io"]} |
created | 2018-10-13 20:37:48 |
last_update | 2018-10-13 20:37:48 |
depth | 2 |
children | 1 |
net_rshares | 0 |
last_payout | 2018-10-20 20:37:48 |
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 | 30 |
author_reputation | 64,235,894,740,263 |
root_title | "[R: New Features on pinyin] Convert Chinese Characters into Sijiao and Wubi codes" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |
哈哈!大鹏老师太客气啦😄!
post_id | 64,204,830 |
---|---|
author | xiaoshancun |
permlink | re-dapeng-re-xiaoshancun-re-dapeng-pinyin-wubi-20181014t010854767z |
category | utopian-io |
json_metadata | {"app":"steemit\/0.1","tags":["utopian-io"]} |
created | 2018-10-14 01:09:00 |
last_update | 2018-10-14 01:09:00 |
depth | 3 |
children | 0 |
net_rshares | 0 |
last_payout | 2018-10-21 01:09:00 |
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 | 13 |
author_reputation | 155,278,422,778,942 |
root_title | "[R: New Features on pinyin] Convert Chinese Characters into Sijiao and Wubi codes" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |