Convert the characters in an entire files according to a given dictionary

file2py(folder = "py", backup = TRUE, sep = " ", other_replace = NULL,
    encoding = "UTF-8", dic = NA)

Arguments

folder

character. The folder in which the files are to be converted.

backup

logical. Whether the original files should be saved as backups.

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'.

encoding

character. The encoding of the input files. 'UTF-8' by default.

dic

See help(pinzin).

Value

files converted to Pinyin.

Examples

file2py(dic = NA)
#> The directory py does not exist!