py_single: Convert a string of Chinese characters into Pinyin.

Description Usage Arguments Value

View source: R/py.R

Description

Convert a string of Chinese characters into Pinyin.

Usage

1
py_single(char = "", sep = "_", other_replace = NULL, dic = pydic())

Arguments

char

character. A Chinese character or string to convert to pinyin

sep

character. Seperation between the converted pinyin.

other_replace

NULL or character. Define how to convert non-Chinese characters in mychar. NULL means 'let it be'.

dic

the preloaded pinyin library using the pylib() function.

Value

pinyin of the given Chinese string.


pzhaonet/pinyin documentation built on June 17, 2020, 12:35 a.m.