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)
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 |
files converted to Pinyin.
file2py(dic = NA)#>