An open API service indexing awesome lists of open source software.

https://github.com/ttwno/epub-with-pinyin

Adds Pinyin to .epub files
https://github.com/ttwno/epub-with-pinyin

chinese epub epub-files mandarin pinyin python

Last synced: 3 months ago
JSON representation

Adds Pinyin to .epub files

Awesome Lists containing this project

README

        

# epub-pinyin
Adds Chinese phonetic scripts to .epub files

* Pinyin
* Jyutping (comming soon)

# Requirements
* https://github.com/TTWNO/dragonmapper
* python(3) beautifulsoup4
* python(3) jieba
* python(3) ebooklib
* python(3) lxml

# Instalation

* If you are on Linux, and are using python3

```bash
sudo easy_dependencies_linux_python3.sh
```

* For everyone else, or to do it manually

```bash
git clone https://github.com/TTWNO/dragonmapper.git
cd dragonmapper
git checkout develop
setup.py install
rm -rf dragonmapper

pip install -r requirements.txt
```

# Usage:

./add_pinyin.sh foobar.epub

New file will be saved as foobar-with-pinyin.epub
Report errors to: [email protected] || use issues tab.