pypinyin1
Program to convert chinese text to pinyin
Usage
pypinyin [{-f | --func}
{pinyin | slug}]
[{-s | --style}
STYLE]
[{-p | --separator}
SEPARATOR]
[{-e | --errors}
{default | ignore | replace}]
[{-m | --heteronym}]
pypinyin [{{-h | --help} | {-V | --version}}]
Overview
This manual page documents briefly the pypinyin command.
This manual page was written for the Debian distribution because the original program does not have a manual page.
pypinyin is a program that converts a Chinese string to pinyin.
Options
The program follows the usual GNU command line syntax, with long options starting with two dashes ('-'). A summary of options is included below. For a complete description, see the info(1) files.
-f {pinyin | slug} , --func {pinyin | slug}
function name.
-
-s STYLE, --style STYLE -
pinyin style (default: "zh4ao").
-
-p SEPERATOR, --separator SEPERATOR -
slug seperator (default: "-").
-e {default | ignore | replace} , --errors {default | ignore | replace}
how to handle non-pinyin string (default: "default").
-
-m, --heteronym -
Enable heteronym.
-
-h, --help -
Show summary of options.
-
-V, --version -
Show version of program.