Skip to content

lukaszkuczynski/pinmix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PinMix

Build Status

Tool that mixes your Chinese text with Pinyin transcription, helping you to read your Chinese text.

Installation

Tool to be use straight from the pypi index.

pip install pinmix

Basic usage

pinmix <filename>

For instance, having file chinese.txt with contents

我不会说中文很好
但pinmix可以帮助我

and running script with

pinmix chinese.txt

will result in following output

我不会说中文很好
wǒ bùhuì shuō zhōngwén hěn hǎo
但pinmix可以帮助我
dàn pinmix kěyǐ bāngzhù wǒ

Output options

If the 2nd argument is not passed to pinmix tool it will just print the result to the standard output. Otherwise it will create ODT file that can be read f.e. by OpenOffice. That file will contain output of the transformation parts put in different styles. It makes possible to you to make your pinyin or the original parts different by applying different formatting to them. The example of that kind of usage is the following:

pinmix chinese.txt chinesedoc.odt

It will create open office doc based on pinmix transformation.

About

Python Pinyin Mixer

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages