toPinyin {tmcn} | R Documentation |
Convert a chinese text to pinyin format.
toPinyin(string, capitalize = FALSE)
string |
A character vector. |
capitalize |
Whether to capitalize the first letter of each word. |
A character vector in pinyin format.
Jian Li <rweibo@sina.com>
toPinyin("the quick red fox jumps over the lazy brown dog")