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
- Host: GitHub
- URL: https://github.com/ttwno/epub-with-pinyin
- Owner: TTWNO
- License: mit
- Created: 2019-03-09T20:30:53.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-07-06T20:28:39.000Z (almost 3 years ago)
- Last Synced: 2023-03-08T21:36:42.675Z (over 2 years ago)
- Topics: chinese, epub, epub-files, mandarin, pinyin, python
- Language: Python
- Size: 3.5 MB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 dragonmapperpip 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.