Skip to content

slandx/CPAssistant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CPAssistant

Cantonese pronunciation assistant.

Usage

python cp_assist.py [-h] [-v] [-f FILE] [-s STR]

Convert Chinese to Cantonese.

optional arguments:
  -h, --help            show this help message and exit
  -v, --version         show program's version number and exit
  -f FILE, --file FILE  file path
  -s STR, --str STR     chinese string
  -p FILE, --pdf FILE   output PDF file path

Examples

python cp_assist.py -s "大家好,我们来做一个注音测试"

Or

python cp_assist.py -f /file/path -p /output/file/path.pdf

Dependencies

  • jieba: Chinese text segmentation.
  • chardet: Universal encoding detector for Python 2 and 3
  • CantoneseDict: A tool for creating a Cantonese dictionary(jyutping).
  • reportlab: Create PDF files.

Update

  • 2022-10-17(Mon):

    • Support output PDF file
    • Refine documents
  • 2014-10-27(Mon):

    • Add encoding detector
    • Add examples
  • 2014-04-22(Tue):

    • Start project.
    • Add file lyrics for test.
    • To be continued.

About

Cantonese pronunciation assistant.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages