Script to generate PDF and EPUB for "The Ickabog" by J.K Rowling
Go to file
Nemo 9b7b085805 Improve generation by adapting code from @lesensei
- Auto generation of chapters, no manual updates
- Internationalization support, thanks to @lesensei
- Made qpdf, kindlegen, calibre optional dependencies
- Changed the cover image size to exactly A4
- Generatd cover.pdf, and switched to qpdf from pdftk
  I like pdftk, but the installation is stupidly hard these days
  and qpdf seems to be much more lightweight.
  The disadvantage is losing the bookmarks in the PDF

Also faced a few issues on pandoc while working on this, created
issues on the pandoc repo: https://github.com/jgm/pandoc/issues/created_by/captn3m0
2020-06-09 18:09:00 +05:30
.gitignore Improve generation by adapting code from @lesensei 2020-06-09 18:09:00 +05:30
LICENSE Adds cover art 2020-05-30 04:45:28 +05:30
README.md Improve generation by adapting code from @lesensei 2020-06-09 18:09:00 +05:30
cover.jpg Improve generation by adapting code from @lesensei 2020-06-09 18:09:00 +05:30
cover.ora Improve generation by adapting code from @lesensei 2020-06-09 18:09:00 +05:30
cover.pdf Improve generation by adapting code from @lesensei 2020-06-09 18:09:00 +05:30
generate.sh Improve generation by adapting code from @lesensei 2020-06-09 18:09:00 +05:30

README.md

ickabog-ebook

Generates ebooks for The Ickabog by J.K Rowling. Original text from https://www.theickabog.com/. Since the book is still being published, please consider this "in-progress".

Dependencies:

  • wget
  • pup
  • pandoc to generate EPUB and PDF files
  • qpdf to add cover to PDF files. (optional)
  • kindlegen or calibre installed to generate MOBI files. (optional)

How to run

./generate.sh

You should have ickabog.epub, and ickabog.pdf in your directory after the script finishes. If you have ConTeXt installed, you will also get a ickabog-large.pdf file with large fonts to be kid-friendly.

Known Issues

The PDF is optimized for few pages of printing, so has a small font size by default. If you'd like a kid-friendly version, install context to get ickabog-large.pdf file.

Extra

A list of my other EBook generation projects: https://captnemo.in/ebooks/, includes a link to other related projects as well.

Credits

The cover art is Avanyu by Julian Martinez. Used under Creative Commons license.

Julian Martinez, Avanyu, ca. 1923, watercolor, ink, and pencil on paper, Smithsonian American Art Museum, Corbin-Henderson Collection, gift of Alice H. Rossin, 1979.144.85

Code for internationalization and automatic chapter updates via @lesensei's fork.

License

The little code in this repository is licensed under the MIT License. See LICENSE file for details.