Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Script to generate PDF and EPUB for "The Ickabog" by J.K Rowling

License

NotificationsYou must be signed in to change notification settings

captn3m0/ickabog-ebook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Generates ebooks for The Ickabog by J.K Rowling. Uses original text fromhttps://www.theickabog.com/. Supports all 9 languages.

Dependencies:

  • wget
  • pup andjq to parse input files
  • pandoc to generate EPUB and PDF files
  • qpdf to add cover to PDF files. (optional)
  • kindlegen orcalibre installed to generate MOBI files. (optional)

How to run

Using Docker

mkdir outdocker run --volume `pwd`/out:/src/out captn3m0/ickabog-ebook

If you'd like to generate for a different language, use the following:

mkdir out# Italianodocker run --env LC="it" --volume`pwd`/out:/src/out captn3m0/ickabog-ebook# English (US)docker run --env LC="en-us" --volume`pwd`/out:/src/out captn3m0/ickabog-ebook# Españadocker run --env LC="es" --volume`pwd`/out:/src/out captn3m0/ickabog-ebook# Françaisdocker run --env LC="fr" --volume`pwd`/out:/src/out captn3m0/ickabog-ebook# Deutschdocker run --env LC="de" --volume`pwd`/out:/src/out captn3m0/ickabog-ebook# Português brasileirodocker run --env LC="pt" --volume`pwd`/out:/src/out captn3m0/ickabog-ebook# 中文docker run --env LC="ch" --volume`pwd`/out:/src/out captn3m0/ickabog-ebook# Русскийdocker run --env LC="ru" --volume`pwd`/out:/src/out captn3m0/ickabog-ebook

Directly

./generate.sh

For generating ebooks for a different language, run the script with a LC parameter

LC=it ./generate.sh

Various values for LC are:it, en-us, es, fr, de, pt, ch, ru. If you don't pass a value, the default (en-GB) is used.

You should haveickabog.epub, andickabog.pdf in theout directory after the script finishes.

  • If you haveConTeXt installed, you will also get aout/ickabog-large.pdf file with large fonts to be kid-friendly.
  • If you haveqpdf installed, the PDF files will have cover pages
  • If you havecalibre orkindlegen installed, aout/ickabog.mobi file will also be generated. Preference is given tokindlegen.

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 getickabog-large.pdf file.ConTeXt comes preinstalled in the Docker image, so that's the easiest way to get the same.

Credits

The cover art isAvanyu 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.

Extra

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

License

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

About

Script to generate PDF and EPUB for "The Ickabog" by J.K Rowling

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp