Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 12-12-2008, 09:11 AM   #1
poloman
Enthusiast
poloman began at the beginning.
 
Posts: 25
Karma: 10
Join Date: Nov 2008
Device: PRS505, Kindle 3G
TOC error when converting HTML

Hi,

I've serached everywhere and cant find a solution.

When I try and convert an html file with chapter detection (Detect chapter at tag regEx: h\d,class,chapter ) it works fine, but when I tell it to "Add chapters to table of contents (and have "Chapter" or "h\d,class,chapter" in the box marked Regular Expression), Calibre comes up with a big custom error box.

Part of the error message : "Job: **Convert book: Reference** **tuple**: ('LrsError', u'TOC text block must be already appended to a page') **Traceback**:"

I'm converting html that I have extracted from an app I use (trying to make a very useful reference library), so can alter the structure if needed. Here is what it's using at the moment:

< h 1 c l a s s = " c h a p t e r " > C h a p t e r 1 - T e s t 1 < / h 1 >

Am i doing something wrong?

As I say, if i leave the TOC box unchecked, it works fine and I get a nice lrf all split up into chapters.
poloman is offline   Reply With Quote
Old 12-12-2008, 11:01 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,776
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
probably a bug, open a ticket and attach the file causing the problem with the exact parameters you used
kovidgoyal is offline   Reply With Quote
Advert
Old 12-14-2008, 04:05 PM   #3
poloman
Enthusiast
poloman began at the beginning.
 
Posts: 25
Karma: 10
Join Date: Nov 2008
Device: PRS505, Kindle 3G
Thanks - I'll set up a ticket.

Slightly off topic but a MASSIVE thanks for the software! I bought my first electronic book today (505), plugged it in, and Calibre detected it then easily copied across all my books I'd prepped during the week - brilliant!
poloman is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
HTML Book + non HTML TOC to epub aarcane Calibre 4 03-02-2010 02:58 AM
multiple repeat error converting HTML to MOBI moog Calibre 0 02-05-2010 01:03 PM
runtime error when converting html AngrySpoon Calibre 4 01-09-2010 04:57 PM
Error when converting html to LRF Amalthia Calibre 1 11-18-2009 09:07 AM
Error in converting files html --> Mobipocket adamsloco Calibre 0 08-29-2009 10:30 PM


All times are GMT -4. The time now is 06:53 PM.


MobileRead.com is a privately owned, operated and funded community.