yomigana ebook
This project is aimed at making Japanese eBooks more friendly to those who are learning Japanese now by adding readings for every Kanji in the eBooks.
To achieve this, the project utilizes Mecab, a Japanese morphological analyzer, and Unidic, a dictionary developed by NICT, to tokenize words and obtain the corresponding yomigana (reading) of each word. This information is then inserted above or besides the kanji characters in the eBook text, allowing readers to easily read and understand the pronunciation of each word.
This tool is also the fastest converter now. (compared to Mumumu4/furigana4epub & itsupera/furiganalyse)
Usage
-
install the package from
PyPI:# install the package $ pip install yomigana-ebook # download the unidic dictionary $ python -m unidic download # you can convert your japanese ebooks now! $ yomigana_ebook [your-ebooks] -
build from the source:
$ git clone https://github.com/rabbit19981023/yomigana-ebook.git # install the project $ pip install ./yomigana-ebook # download the unidic dictionary $ python -m unidic download # you can convert your japanese ebooks now! $ yomigana_ebook [your-ebooks]
For Windows Users
There's a known bug in Windows, see polm/fugashi#42 for more information
To solve it, you must install & use the package in an isolated virtualenv:
Here are some examples:
-
install the package from
PyPI:# create the virtualenv $ python -m venv .venv # get into the virtualenv $ .venv\Scripts\activate # install the package $ pip install yomigana-ebook # download the unidic dictionary $ python -m unidic download # you can convert your japanese ebooks now! $ yomigana_ebook [your-ebooks] -
build from source:
$ git clone https://github.com/rabbit19981023/yomigana-ebook.git $ cd yomigana-ebook # create the virtualenv $ python -m venv .venv # get into the virtualenv $ .venv\Scripts\activate # install the project $ pip install . # download the unidic dictionary $ python -m unidic download # you can convert your japanese ebooks now! $ yomigana_ebook [your-ebooks]
To leave the virtualenv, just by a simple command:
$ deactivate
Run the web demo via Docker
NOTE: you NEED to run these commands in the project root, NOT in
web-demodirectory!
-
first we need to build the image:
$ docker build -t yomigana-ebook/web-demo -f Dockerfile.web-demo . -
then run the container:
$ docker run --rm -p 8000:8000 yomigana-ebook/web-demo --host 0.0.0.0 -
finally just open your browser and navigate to
http://localhost:8000to use it!
Credits
This project was inspired by Mumumu4/furigana4epub & itsupera/furiganalyse, and has some code from them.
Metadata
Release files for yomigana-ebook 0.2.3
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 |
|---|---|---|---|---|
| yomigana_ebook-0.2.3.tar.gz | 6.1 kB | Without provenance | Details for yomigana_ebook-0.2.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| yomigana_ebook-0.2.3-py3-none-any.whl | Python 3 | none | any | Details for yomigana_ebook-0.2.3-py3-none-any.whl |
Total release size: 13.9 kB
Release files / yomigana_ebook-0.2.3.tar.gz
| Download URL | yomigana_ebook-0.2.3.tar.gz |
|---|---|
| Size | 6.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fe2a6eec9606c48ce71b5711b6e742e5b8ccb3fa4830d4e99ad803fdbeebc89a
|
|
BLAKE2b-256 checksum How to use checksums |
c49a62dcea8dc456cb62b261af8b6e25de749f0d9c1a7a6b1261ffcdba0f2c1a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.6.1 CPython/3.11.6 Linux/5.15.90.1-microsoft-standard-WSL2
|
Release files / yomigana_ebook-0.2.3-py3-none-any.whl
| Download URL | yomigana_ebook-0.2.3-py3-none-any.whl |
|---|---|
| Size | 7.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0e91e6649a3a43d7f36662098acf71cfc117ac596e13a5eb4cc172016ed93139
|
|
BLAKE2b-256 checksum How to use checksums |
22cbf293a422753b84f005ba52951438dc5cc331832c22288815d7246c9cb25c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.6.1 CPython/3.11.6 Linux/5.15.90.1-microsoft-standard-WSL2
|
Security for yomigana-ebook 0.2.3
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.