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