View Single Post
Old 01-09-2015, 09:52 AM   #5
steinarb
Enthusiast
steinarb is no e-book dilettante.steinarb is no e-book dilettante.steinarb is no e-book dilettante.steinarb is no e-book dilettante.steinarb is no e-book dilettante.steinarb is no e-book dilettante.steinarb is no e-book dilettante.steinarb is no e-book dilettante.steinarb is no e-book dilettante.steinarb is no e-book dilettante.steinarb is no e-book dilettante.
 
Posts: 27
Karma: 53696
Join Date: Nov 2012
Device: Sony PRS T-1
Quote:
Originally Posted by theducks View Post
That is not a bug
I know that. I never said it was.

Quote:
Originally Posted by theducks View Post
Were you expecting Calibre to count the results and go 'That is an absurd number of Chapters' ?
I had no expectations.

I had a problem.

I found a fix for the problem.

I posted my findings as responses to my original problem.

This makes it useful for someone who has the same problem and might google for a solution.

Quote:
Originally Posted by theducks View Post
IMHO p class="chapter" was a weak choice for a pragraph selector name
One I have not seen used by common ebook publishers
This was a very common ebook publisher/vendor.

The previous books of the same series had no such problem.

I would use "silly choice for a paragraph selector name", rather than a "weak choice for a paragraph selector name", but at least it made it pretty obvious what was happening when I found it.

I worried for a bit that I would have to XSLT or perl-modify the individual HTML files of the AZW3 file, or mess with the chapter detection XPath expression, but was relived when removing the chapter mark gave a satisfactory result.

Last edited by steinarb; 01-10-2015 at 03:28 PM. Reason: spelling error
steinarb is offline   Reply With Quote