View Single Post
Old 08-18-2012, 08:57 PM   #2
Claghorn
Member
Claghorn began at the beginning.
 
Claghorn's Avatar
 
Posts: 16
Karma: 10
Join Date: Aug 2012
Device: Nexus 7
I've been fooling with editing the input stage of the debug output, and wrote a perl script to modify the html files to put header markup with class="chapter" around the anchors the toc.ncx file points at, then I do the conversion matching h1 through h3 headers with class=chapter and tell it to force replace the TOC. This works nearly flawlessly, and leaves me even more confused about why the manual says the convert will use the existing TOC if the file has one. All I've done is move the existing TOC into the html, so it should be the same.

Anyway, this does seem to solve my problems, and the few errors left appear to be actual bugs in the original doc which I can fix by hand.

Next I need to finish my script to convert all the opaque grayscale .jpeg files into .png files with transparency so they'll look natural when you change the background color.
Claghorn is offline   Reply With Quote