logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

pypinyin - program to convert Chinese text to pinyin

Author

Ying-ChunLiu <paulliu@debian.org>
           Wrote this manpage for the Debian system.

Description

       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.

Name

       pypinyin - program to convert Chinese text 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.

       -sSTYLE, --styleSTYLE
           pinyin style (default: "zh4ao").

       -pSEPERATOR, --separatorSEPERATOR
           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.

Synopsis

pypinyin [{-f | --func} {pinyin | slug}] [{-s | --style} STYLE] [{-p | --separator} SEPARATOR]
                [{-e | --errors} {default | ignore | replace}] [{-m | --heteronym}]

       pypinyin [{-h | --help} | {-V | --version}]

See Also