IntermittentlyRupert / hpnofp-ebook

An eBook version of Harry Potter and the Nightmares of Futures Past by Matthew Schocke.
27 stars 10 forks source link

Script the conversion from EPUB to PDF #6

Closed IntermittentlyRupert closed 5 years ago

ThrawnCA commented 5 years ago

Looks like mutool can do this pretty easily. I'll add a conditional block to the build script, shall I?

ThrawnCA commented 5 years ago

Need to check whether ebook-convert can do this if present (it probably can).

IntermittentlyRupert commented 5 years ago

Here's my notes for changes I make to Calibre's default EPUB->PDF conversion settings for the current manual PDF generation process:

Page Setup
============
Output:             Default Output Profile
Input:              Default Input Profile

PDF Output
============
Paper Size:         A4
Page numbers:       Yes
Serif family:       Adobe Garamond Pro
Standard font:      serif
Default font size:  30px
Page margins:       72pt
ThrawnCA commented 5 years ago

I don't seem to have access to Adobe Garamond Pro, and specifying a default font size of 30 gives very bloated text. However, specifying the page size is very helpful (the default is 'letter' which doesn't work well).

IntermittentlyRupert commented 5 years ago

Yeah, I've got Adobe Garamond by way of Photoshop.

You should be fine to substitute EB Garamond, which is freely available on Google Fonts (WOFF2) and github (TTF) under the Open Font License. It's Close Enough if Adobe Garamond isn't available (here's a comparison).

I'd prefer for the script to check for the existence of Adobe Garamond first, though, because it's a smidge nicer in a bunch of small ways. It can then fall back to EB Garamond or the system default as needed.

Default font size will have to vary by typeface.