Description Usage Arguments Value Examples
Convert strings of Chinese characters into Pinyin.
1 |
char |
Requrired A input character string with chinese characters. |
sep |
character The seperator between the converted pinyin. Default: '_' |
other_replace |
character The replacement for non-Chinese characters |
dic |
The preloaded dictionary for conversion. Default: "pinyin::pinyin2" |
A character vector of the converted pinyin string.
1 | py("hello word")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.