magentastripe / willorapdf

Document preparation system for self-publishers based on Asciidoctor
BSD 2-Clause "Simplified" License
1 stars 0 forks source link

EPUB3 can't handle frontmatter workarounds #6

Closed dressupgeekout closed 1 year ago

dressupgeekout commented 1 year ago

The problem is that ${ADOC_TOTAL} includes the PDF workarounds -- the resulting EPUB file doesn't know what to do with them. The end result is broken-image tags show up on your Kindle.

The solution is to have two different ${ADOC_TOTAL}s, one destined for PDF that can safely include other PDFs (like we currently do) and a separate one which is destined for EPUB.

This means the frontmatter needs to be handled differently than everything else, since the AsciiDoc markup which surrounds the frontmatter is now different depending on whether we're gonna be transformed into a PDF or EPUB3 (or whatever else down the line).

dressupgeekout commented 1 year ago

9405ee50ef1b1e9684e5e017e7ccb11fbb223af6 has the ADOC_TOTALs separated -- now I need to have the different templates for the individual frontmatter bits

dressupgeekout commented 1 year ago

1 is fixed, so this can be closed, too