Books for Binding
This is a system of producing LaTeX-formatted books, ready for binding, from Wikisource works.
It's a work-in-progress and not really ready for anyone to look at yet.
git clone https://github.com/samwilson/books-for-binding.git cd books-for-binding composer install --no-dev ./bin/booksforbinding --help
- Select a work on a Wikisource.
- Download the HTML of the book:
This saves the HTML to a directory e.g.
./bin/booksforbinding download -l en -t The_Nether_World -o directory/to/save-in
- Convert the HTML to LaTeX:
This saves the LaTeX to a directory e.g.
./bin/booksforbinding convert -i directory/to/save-in/html
- Go into that directory and create a new Git repository with the contents therein:
The idea is to have two branches: one for the unchanged source as it's generated by pandoc, and the other (the master) as the place to make edits. The former is merged into the latter whenever required.
cd directory/to/save-in/The_Nether_World git init git add html latex git commit -am"First commit." git branch -m unchanged
- Start editing the LaTeX files:
git checkout -b master
- Go back to the
unchangedbranch and update it, committing the changes.
- Go to
This software is copyright 2018 Sam Wilson and licensed under the GPL, version 2 or later.