Adds Dark One

This commit is contained in:
Nemo 2020-06-05 14:18:45 +05:30
parent b0790daa9a
commit 6ff600492b
4 changed files with 34 additions and 0 deletions

2
.gitignore vendored
View File

@ -7,3 +7,5 @@
/oathbringer-reread/*.html
/books/*
vendor
darkone/
*.cbz

View File

@ -12,6 +12,7 @@ Scripts to generate books from the [Cosmere](https://coppermind.net/wiki/Cosmere
6. Oathbringer Reread
7. Skyward (Serialized till Chapter 15)
8. Defending Elysium
9. Dark One (Preview Chapter)
For obvious reasons, the converted ebooks are not part of this repo. You must download and run the script on your own machine to generate the copies.
@ -71,6 +72,16 @@ See more details at [underlined](https://www.getunderlined.com/read/excerpt-reve
More details at https://brandonsanderson.com/defending-elysium/. Annotations at https://brandonsanderson.com/annotation-Recent-Short-Stories-Defending-Elysium/
# Dark One
>Brandon Sandersons Dark One is a break from the norm; its a graphic novel from Vault Comics, originally announced as being in the works two years ago, based on an original idea from Sanderson. The book will be written by Collin Kelly and Jackson Lanzing from a story by Sanderson, with art by Nathan Gooden and colors from Kurt Michael Russell. Lettering on the project comes from Deron Bennett.
> The chapter below was originally intended to be Vault Comics Free Comic Book Day release this year.
More details at <https://www.hollywoodreporter.com/heat-vision/dark-one-excerpt-brandon-sanderson-unveils-fantasy-graphic-novel-1297122>.
The script generates a CBZ file.
## Requirements
[Docker](https://docs.docker.com/install/) installed.
@ -95,6 +106,7 @@ skyward
wok-prime
wok-reread
wor-reread
dark-one
```
If none is passed, all books will be generated. The entire build (for all books combined) roughly takes 15 minutes on a single core system (excluding the Docker pull).

View File

@ -16,6 +16,9 @@ if [ -z "$1" ]
--output=books/defending-elysium.epub \
--epub-cover-image=covers/defending-elysium.jpg \
--epub-metadata=metadata/defending-elysium.xml
./dark-one-preview.sh
elif [[ "$1" == "dark-one" ]]; then
./dark-one-preview.sh
else
bundle exec ruby "$1.rb"
fi

17
dark-one-preview.sh Executable file
View File

@ -0,0 +1,17 @@
#!/bin/bash
mkdir -p darkone
rm "dark-one.cbz"
for i in $(seq 1 29); do
OUTPUT_FILE=$(printf "%02d" $i)
wget --no-clobber "https://cdn1.thr.com/sites/default/files/2020/06/dark_one_preview_-_publicity_-_embed_$i-_2020.jpg" -O "darkone/$OUTPUT_FILE.jpg";
done
# Cover should be at first
mv darkone/04.jpg darkone/00.jpg
wget "https://cdn1.thr.com/sites/default/files/2020/06/dark_one_preview_-_publicity_-_embed_16-_2020_0.jpg" -O darkone/16.jpg
zip "books/dark-one.cbz" darkone/*.jpg