Script that annotates Pokemon: the Origin of the Species epub with links to descriptions of the Pokemon.
Go to file
Felix Martin 3634f10e81 Handle annoying Pokemon clearer and only hyperlink first occurrence of Pokemon in chapter 2022-12-04 20:16:10 -05:00
src Handle annoying Pokemon clearer and only hyperlink first occurrence of Pokemon in chapter 2022-12-04 20:16:10 -05:00
test Remove dead code and auto-reformat 2022-10-28 13:47:27 -04:00
.gitignore Add tests and credit Bulbapedia in README 2022-10-24 20:31:29 -04:00
LICENSE Initial commit 2022-10-20 01:32:55 +02:00
Pipfile Make patch string algorithm suck less and add progress bars 2022-10-23 10:39:00 -04:00
Pipfile.lock Make patch string algorithm suck less and add progress bars 2022-10-23 10:39:00 -04:00
README.md Handle annoying Pokemon clearer and only hyperlink first occurrence of Pokemon in chapter 2022-12-04 20:16:10 -05:00
ptoos-xray.py Rename and clean up a little 2022-10-23 10:56:23 -04:00
pytest.ini Add tests and credit Bulbapedia in README 2022-10-24 20:31:29 -04:00

README.md

ptoos-xray

Script that annotates the Pokemon: the Origin of the Species e-book with links to descriptions and pictures of the Pokemon within the e-book itself.

It works with the epub that you can download from Daystar Eld's Patreon.

Usage

pip install --user pipenv
pipenv install
pipenv shell
python ptoos-xray.py "DaystarEld - Pokemon The Origin of Species.epub"

Run tests

pipenv install --dev
pipenv run pytest

Compress Pokemon PNGs

Use pngquant to compress the PNGs and get a smaller epub file.

Credits

Full credit for the Pokemon names, images, and descriptions goes to Bulbapedia under Attribution-NonCommercial-ShareAlike 2.5.