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 05-07-2010, 04:53 PM   #1
foghat
Evangelist
foghat ought to be getting tired of karma fortunes by now.foghat ought to be getting tired of karma fortunes by now.foghat ought to be getting tired of karma fortunes by now.foghat ought to be getting tired of karma fortunes by now.foghat ought to be getting tired of karma fortunes by now.foghat ought to be getting tired of karma fortunes by now.foghat ought to be getting tired of karma fortunes by now.foghat ought to be getting tired of karma fortunes by now.foghat ought to be getting tired of karma fortunes by now.foghat ought to be getting tired of karma fortunes by now.foghat ought to be getting tired of karma fortunes by now.
 
Posts: 441
Karma: 1006520
Join Date: Mar 2010
Location: Alberta, Canada
Device: Ipad2 w/Kindle app
Trouble generating a TOC

Hi all,

I have drm freed a book of mine - I have an html file which I am telling Calibre to convert to ebup. Problem is a TOC does not generate.

Below is a sample of the html:
--------------------------------------
<p>Â*</p>
<p class="i4"><span id="ch26-page_7"> </span> <span id="ch26-ch02"> </span> </p>
<h1 title="Barbie"/>

<div class="center"><span class="big"><b>BARBIE<br/>
</b></span></div>
<p>Â*</p>
<p class="i4"><span id="ch26-page_8"> </span> <span id="ch26-page_9"> </span> </p>

<div class="center">1<br/>
</div>
------------------------------------------

The chapter name in this case is Barbie and as you can see there are h1 tags, but no TOC gets generated.

I've tried creating a Level 1 XPath expression of "//h:h1", but that is not working.

Does anyone have any suggestions?

Thanks.

Last edited by foghat; 05-07-2010 at 04:56 PM.
foghat is offline   Reply With Quote
Old 05-07-2010, 05:16 PM   #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: 25,943
Karma: 5036099
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
It needs to be a non empty tag
kovidgoyal is online now   Reply With Quote
Old 05-07-2010, 06:00 PM   #3
foghat
Evangelist
foghat ought to be getting tired of karma fortunes by now.foghat ought to be getting tired of karma fortunes by now.foghat ought to be getting tired of karma fortunes by now.foghat ought to be getting tired of karma fortunes by now.foghat ought to be getting tired of karma fortunes by now.foghat ought to be getting tired of karma fortunes by now.foghat ought to be getting tired of karma fortunes by now.foghat ought to be getting tired of karma fortunes by now.foghat ought to be getting tired of karma fortunes by now.foghat ought to be getting tired of karma fortunes by now.foghat ought to be getting tired of karma fortunes by now.
 
Posts: 441
Karma: 1006520
Join Date: Mar 2010
Location: Alberta, Canada
Device: Ipad2 w/Kindle app
Got it. Works once I clean it up.

Thanks.
foghat 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
Generating TOC entries for prelims / end matter in InDesign forlor ePub 7 07-07-2010 08:26 AM
Generating from Wikipedia ahi Workshop 0 08-10-2009 11:44 AM
Problem generating TOC ronin712 Calibre 9 07-21-2009 05:19 PM
Problems generating ePub from HTML/CSS AlexBell Calibre 3 07-17-2009 05:10 AM
Making a TOC for LRFs? Issues with Calibre + LRF TOC editor not working Magitek LRF 0 05-06-2009 01:25 PM


All times are GMT -4. The time now is 04:34 AM.


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