epubhv
make your epub books vertical or horizontal.
Install
pip install epubhv
or
git clone https://github.com/yihong0618/epubhv.git
cd epubhv && bash ./setup.sh
Using pipx
If you are using pipx, you can directly run epubhv with:
pipx run epubhv a.epub
Use the web
pip install epubhv[web]
streamlit run web.py
Use CLI
epubhv a.epub # will generate a file a-v.epub that is vertical
# or
epubhv b.epub --h # will generate a file b-h.epub that is horizontal
# if you also want to translate from `简体 -> 繁体`
epubhv c.epub --convert s2t
# if you also want to translate from `繁体 -> 简体`
epubhv d.epub --h --convert t2s
# or a folder contains butch of epubs
epubhv tests/test_epub # will generate all epub files to epub-v
# you can specify the punctuation style
epubhv e.epub --convert s2t --punctuation auto
# you can add `ruby` for Japanese(furigana) and Chinese(pinyin)
epubhv e.epub --h --ruby
# if you want to learn `cantonese` 粤语
epubhv f.epub --h --ruby --cantonese
About cantonese
Contribution
- Any issues or PRs are welcome.
Development
# install all dependencies
pdm install
# format code
pdm run format
# run the following scripts and make sure all pass before you start a Pull Request
pdm run all
Thanks
- @tommyku --> How to make EPUB ebooks with vertical layout?
- @jiak94 support OpenCC
- @OverflowCat add punctuation styles.
- @jt-wang Type and PDM!
- furigana4epub
- ToJyutping
- PDM
Similar projects
- EpubConv_Python found a similar project, seems we are not the only one need this, great thanks, appreciation and respect.
Appreciation
- Thank you, that's enough. Just enjoy it.
Metadata
Release files for epubhv 0.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| epubhv-0.6.0.tar.gz | 3.9 MB | Without provenance | Details for epubhv-0.6.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| epubhv-0.6.0-py3-none-any.whl | Python 3 | none | any | Details for epubhv-0.6.0-py3-none-any.whl |
Total release size: 3.9 MB
Release files / epubhv-0.6.0.tar.gz
| Download URL | epubhv-0.6.0.tar.gz |
|---|---|
| Size | 3.9 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
24bc648193ea5c0c80faf7a7dd0807f70e8ae4555117e4fdfbe403a1b47616b3
|
|
BLAKE2b-256 checksum How to use checksums |
3bcea786f05ad1efbdf6597162540d20c070630bb42d70dda3e7af71a55ded3c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.17
|
Release files / epubhv-0.6.0-py3-none-any.whl
| Download URL | epubhv-0.6.0-py3-none-any.whl |
|---|---|
| Size | 12.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d072b7fb460307c2e1c0877bb93b04bf897fab2ed7a8e28d531c33db5d8fe0b2
|
|
BLAKE2b-256 checksum How to use checksums |
0d2c0a1ffa3ffe58331963a40a07338169fc000f6d61501ff398b622e8c84d1d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.17
|
Security for epubhv 0.6.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.