View Single Post
Old 08-05-2009, 08:34 AM   #4
ldolse
Wizard
ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.
 
Posts: 1,337
Karma: 123455
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
PDF conversion is error prone, and there is a point where a regex attempts to identify the chapters, marking them up so that the xpath will later catch them. Editing the xpath from the default won't help with pdf.

You could open a bug on this and attach your pdf, I can look into enhancing the regex if possible. That said, this will continue to happen with other pdfs as the conversion can cause numerous variations in the output text.

Unfortunately, the best way to fix these in general is by hand. Now that Sigil is out it will make it trivial to scroll through the book and mark the missed chapters so that they're added to the TOC. Note if you're using Calibre .6.x you'll need to wait a couple days til a related crash fix is released for Sigil - watch for version 0.1.1.

Last edited by ldolse; 08-05-2009 at 08:39 AM.
ldolse is offline   Reply With Quote