||1 month ago|
|.gitignore||1 month ago|
|COPYING||1 month ago|
|Gemfile||1 month ago|
|Gemfile.lock||1 month ago|
|README.md||1 month ago|
|cover.jpg||6 years ago|
|metadata.xml||1 month ago|
|setup.rb||6 years ago|
|style.css||6 years ago|
Tor.com recently published the entire first book in the Hoshruba series as a series of blog posts. This script downloads all of these posts and converts them into a publishable format, including epub, mobi, pdf and html.
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.
- Nokogiri gem installed (
gem install nokogiri)
- Unix system with
pandocinstalled and available
ebook-convert(from calibre) available to generate the mobi file
wkhtmltopdffor converting html to pdf
pdftkto stitch the final PDF file
imagemagickto 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.
After downloading the repo and installing the requirements, just run
bundle install bundle exec ruby setup.rb
All the generated files will be saved with the filename
This is licensed under WTFPL. See COPYING file for the full text.
A list of my other EBook generation projects: https://captnemo.in/ebooks/, includes a link to other related projects as well