View Single Post
Old 06-13-2012, 11:37 PM   #99
Tkepner
Junior Member
Tkepner began at the beginning.
 
Posts: 3
Karma: 10
Join Date: May 2012
Device: Pandigital eReader
Question Calibre TOC not surviving Sigil Generate TOC

Hi guys (and gals),

I'm trying to generate eBooks from several sources (WordPerfect, PageMaker, InDesign, etc.). My first stop on the trail is Kompozer, which lets me see the text and the crap code presented by those other programs (and place the illustrations where they belong, fix minor transition errors, set up where I want page breaks, etc.). Then I move them to Calibre where I put in the Meta Data, Cover, and generate the ePub files. My final step is going to be Sigil, and that's where I hit a wall. I don't always want to use <h1> codes for Table of Contents Entries. For example, the copyright page is NOT going to have a big<h1> headline at the top that says "Copyright Page", nor are the Dedication or Acknowledgment pages! Okay, Sigil lets me "Add Semantics," so that should be okay.

HOWEVER, that's not what I get when I hit the "Generate TOC" button. All the TOC entries created in Calibre disappear (except for the ones that actually use the <h1> and <h2> tags), and the entries I added via the Sigil "Add Semantics" are a no show.

Here is a sample chapter head:
<body class="calibre">
<p class="ChapterNmbr2" id="calibre_pb_5"><span class="calibre14 calibre15 calibre19">-2-</span></p>

<div class="calibre4">
<p class="calibre7"><span class="calibre1 chapter calibre15" id="calibre_toc_5"><a class="calibre20" id="TOC1_2"></a>Endangering the King</span></p>
</div>

class="ChapterNmbr2" ==> is my pagebreak separator in Calibre. The 14, 15, and 19 are center, bold, and font.

it displays like this:

-2-
Endangering the King


Where the page break is above the -2- and the "Endangering the King" is what goes into the TOC as the Chapter Title.

So, how do I preserve the TOC coming from Calibre and get the Add Semantics to actually appear?

Terry Kepner
Tkepner is offline   Reply With Quote