Go to file
Nemo 1f2deebe39 Initial commit 2017-09-08 19:57:36 +05:30
.gitignore Initial commit 2017-09-08 19:57:36 +05:30
COPYING Initial commit 2017-09-08 19:57:36 +05:30
README.md Initial commit 2017-09-08 19:57:36 +05:30
cover.jpg Initial commit 2017-09-08 19:57:36 +05:30
metadata.xml Initial commit 2017-09-08 19:57:36 +05:30
setup.rb Initial commit 2017-09-08 19:57:36 +05:30
style.css Initial commit 2017-09-08 19:57:36 +05:30

README.md

Oathbringer

Tor.com is publishing Oathbringer in serialized form till Chapter 32. This script downloads all of these posts and converts them into a publishable format, including epub, mobi, pdf and html. You can find the tor.com announcement at https://www.tor.com/2017/08/15/brandon-sanderson-oathbringer-serialization-announcement/

For obvious reasons, the converted ebook is not part of this repo. You must download and run the script on your own machine to generate the copies.

The code for this is mostly adapted from hoshruba.

Requirements

  • Ruby
  • Nokogiri gem installed (gem install nokogiri)
  • Unix system with wget installed
  • pandoc installed and available
  • ebook-convert (from calibre) available to generate the mobi file
  • wkhtmltopdf for converting html to pdf
  • pdftk to stitch the final PDF file
  • imagemagick to convert jpg to PDF

The final 3 tools can be skipped if you don't care about the PDF generation.

You can also skip calibre if you only want the EPUB file.

Setup

After downloading the repo and installing the requirements, just run

ruby setup.rb

All the generated files will be saved with the filename Oathbringer.{epub|pdf|mobi|html}

LICENSE

This is licensed under WTFPL. See COPYING file for the full text.