hoshruba/README.md

43 lines
1.3 KiB
Markdown
Raw Permalink Normal View History

2015-06-01 19:59:05 +00:00
# hoshruba
2017-02-03 11:57:18 +00:00
![](cover.jpg)
2015-06-01 19:59:05 +00:00
Tor.com recently published the entire first book in the Hoshruba series as a [series
of blog posts](http://www.tor.com/features/series/hoshruba-series/). 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.
## Requirements
- Ruby
- Nokogiri gem installed (`gem install nokogiri`)
- Unix system with `wget` installed
2015-06-01 20:21:31 +00:00
- `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.
2015-06-01 19:59:05 +00:00
# Setup
After downloading the repo and installing the requirements, just run
2021-05-10 12:41:58 +00:00
bundle install
bundle exec ruby setup.rb
2015-06-01 19:59:05 +00:00
All the generated files will be saved with the filename `Hoshruba.{epub|pdf|mobi|html}`
# LICENSE
This is licensed under WTFPL. See COPYING file for the full text.
2020-03-29 21:32:23 +00:00
## Extra
A list of my other EBook generation projects: https://captnemo.in/ebooks/, includes a link to other related projects as well