mirror of https://github.com/captn3m0/hoshruba.git
EPUB creation done
This commit is contained in:
parent
681e680d08
commit
65ee7003f1
|
@ -0,0 +1,2 @@
|
||||||
|
Hoshruba.*
|
||||||
|
html/
|
|
@ -0,0 +1,14 @@
|
||||||
|
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
|
||||||
|
Version 2, December 2004
|
||||||
|
|
||||||
|
Copyright (C) 2015 Abhay Rana <me@captnemo.in>
|
||||||
|
|
||||||
|
Everyone is permitted to copy and distribute verbatim or modified
|
||||||
|
copies of this license document, and changing it is allowed as long
|
||||||
|
as the name is changed.
|
||||||
|
|
||||||
|
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
|
||||||
|
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||||
|
|
||||||
|
0. You just DO WHAT THE FUCK YOU WANT TO.
|
||||||
|
|
|
@ -0,0 +1,28 @@
|
||||||
|
# hoshruba
|
||||||
|
|
||||||
|
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
|
||||||
|
- `pandoc` installed and available
|
||||||
|
|
||||||
|
# Setup
|
||||||
|
|
||||||
|
After downloading the repo and installing the requirements, just run
|
||||||
|
|
||||||
|
ruby setup.rb
|
||||||
|
|
||||||
|
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.
|
|
@ -0,0 +1,8 @@
|
||||||
|
<dc:identifier id="epub-id-1" opf:scheme="ISBN-10">978069552</dc:identifier>
|
||||||
|
<dc:identifier id="epub-id-2" opf:scheme="ISBN-13">978-0978069551</dc:identifier>
|
||||||
|
<dc:title id="epub-title-1">Hoshruba: The Land and the Tilism</dc:title>
|
||||||
|
<dc:date>2009-05-02</dc:date>
|
||||||
|
<dc:language>en-US</dc:language>
|
||||||
|
<dc:creator id="epub-creator-1" opf:role="aut">Muhammad Husain Jah</dc:creator>
|
||||||
|
<dc:creator id="epub-creator-2" opf:role="trl">Musharraf Ali Farooqi</dc:creator>
|
||||||
|
|
|
@ -39,3 +39,6 @@ end
|
||||||
|
|
||||||
# Write it in the book
|
# Write it in the book
|
||||||
File.open("Hoshruba.html", 'w') { |file| file.write(html) }
|
File.open("Hoshruba.html", 'w') { |file| file.write(html) }
|
||||||
|
|
||||||
|
# Convert it to epub
|
||||||
|
`pandoc -S -o Hoshruba.epub --epub-metadata=metadata.xml --epub-cover-image=cover.jpg Hoshruba.html`
|
Loading…
Reference in New Issue