Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 12-19-2010, 06:34 PM   #1
Amalthia
Wizard
Amalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beauty
 
Amalthia's Avatar
 
Posts: 1,158
Karma: 32196
Join Date: Jan 2007
Location: Anchorage, AK
Device: Sony Reader PRS-505, PRS-650, PRS-T3, Pocketbook HD2
Table of Contents not generating

I'm converting a LIT file to epub and I changed the settings in the detection to detect h1, h2, h3 and none of it added the TOC to the device TOC.

The inline TOC works just fine, but I like to use the device TOC as well.

This is the code for the inline TOC

Code:
<p class="MsoToc"><span class="MsoHyperlink">
<a href="Karen%20Marie%20Moning%20-%20Fever%2001%20-%
20Darkfever%20v1.1%20%28BD%29_split_004.htm#_Toc181898517"
 class="calibre3">Chapter One</a></span>
<span class="calibre4"></span></p>
In the body of the story this is the code around Chapter One.

Code:
<h1 class="calibre5" id="calibre_pb_5">
<a name="chapter_2" class="calibre2" id="chapter_2"></a>
<a href="Karen%20Marie%20Moning%20-%20Fever%2001%20-%20Darkfever%20v1.1%
20%28BD%29_split_001.htm#contents" class="calibre3"><span>Chapter One</span><span>
</span></a><a name="_Toc181898517"class="calibre2" id="_Toc181898517"></a></h1>
The only code showing up in the toc.ncx file is

Code:
  <navMap>
    <navPoint id="15b0eaef-75d9-49af-93a1-
b54b86b8dabf" playOrder="1">
      <navLabel>
        <text>Dedication</text>
      </navLabel>
      <content src="Karen Marie Moning - Fever 01 - 
Darkfever v1.1 (BD)_split_002.htm#_Toc181898515"/>
    </navPoint>
  </navMap>
</ncx>
I think I could probably manually enter the TOC into the ncx file but there are a lot of chapters and I have a few other LIT files that are giving me the same problem. I'd like to learn what I can do to get Calibre to detect the chapters so I have the inline TOC as well as the device TOC.

I'm currently using the defaults that came with Calibre.

Structure Detection

Code:
//*[((name()='h1' or name()='h2') and re:test(., 'chapter|book|section|part\s+', 'i')) or @class = 
'chapter']
I'd appreciate any and all help.

Thanks

Last edited by Amalthia; 12-19-2010 at 06:38 PM.
Amalthia is offline   Reply With Quote
Old 12-19-2010, 06:45 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: 43,857
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
select the option to force use of auto generated TOC
kovidgoyal is offline   Reply With Quote
Advert
Old 12-19-2010, 08:15 PM   #3
Amalthia
Wizard
Amalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beauty
 
Amalthia's Avatar
 
Posts: 1,158
Karma: 32196
Join Date: Jan 2007
Location: Anchorage, AK
Device: Sony Reader PRS-505, PRS-650, PRS-T3, Pocketbook HD2
That worked! Thanks.
Amalthia is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Table of Contents peterinnes Sigil 1 09-29-2010 03:03 AM
Help with my Table of Contents Skylinefranc Calibre 0 03-19-2010 12:55 AM
How to: table of contents wizzofoz Sigil 1 10-08-2009 08:22 AM
only the table of contents wang960 Sony Reader 3 08-29-2008 12:45 PM
Creator Table of Contents Nate the great Kindle Formats 5 07-10-2008 05:55 AM


All times are GMT -4. The time now is 02:28 AM.


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