sources-of-light/README.md

38 lines
1.3 KiB
Markdown
Raw Normal View History

2024-11-14 05:15:53 +00:00
A small script for generating PDFs for my guitar TAB book for
my album "Sources of Light".
The book was printed through bookbaby.com in November 2024.
HTML files are in `pages/`. All the dimensions are set up properly
in the CSS at 9.25in x 12.25in. This is for a "Large Portrait" size
book that is 9x12. BookBaby requires an extra .25" of margin.
2024-11-14 05:19:18 +00:00
The rest of the book was assembled elsewhere.
2024-11-14 05:15:53 +00:00
To generate PDFs:
1. `npm install`
2. `mkdir -p rendered`
3. `node index.mjs`
2024-11-14 21:57:39 +00:00
Note that the fonts "Schibsted Grotesk" and "Sometype Mono" must be installed
on the system.
Also note that this uses Firefox instead of Chrome to generate the PDFs.
Chrome seems to embed the fonts as Type 3 fonts, which are bad for printing.
Firefox seems to embed them as TrueType or Type 1C, which are better.
2024-11-14 05:15:53 +00:00
```
2024-11-14 21:57:39 +00:00
$ node index.mjs
2024-11-14 05:15:53 +00:00
processing 001-title.html...
generated PDF at /home/tmont/code/sources-of-light/rendered/001-title.pdf
processing 002-title2.html...
generated PDF at /home/tmont/code/sources-of-light/rendered/002-title2.pdf
processing 003-toc.html...
generated PDF at /home/tmont/code/sources-of-light/rendered/003-toc.pdf
2024-11-14 21:57:39 +00:00
processing 196-timeline.html...
generated PDF at /home/tmont/code/sources-of-light/rendered/196-timeline.pdf
2024-11-14 05:15:53 +00:00
```
Rendered pages will be in `rendered/`.