View Single Post
Old 02-08-2012, 02:23 AM   #1
cybmole
Wizard
cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.
 
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
problem with h1 h2 headers for 4 stories in 1 book

i spent ages trying to understand a possible bug / restriction on using nested headers last night. eventually I found a work-around but not a full solution:

i had 2 free kindle books, each a compilation of 4 novels.
as there as only very basic navigation, I regex them into having h2 chapter headers & h1 book titles
I gett his looking fine in sigil but then in ADE/on Sony I see only the 1st of the 4 books in TOC.
lots more trial and error showed that ADE quits displaying TOC as soon as It hits the end of initial toc nesting,
so if as a test I add nesting to chapter 1 i.e. i set up
h1 book 1 title
h3 chapter 1
h2 chapter 2...
then see nothing except chapter 1 in ADE toc.

I ran flightcrew & found no errors

the workaround seems to be to begin the toc with an H2 line - see below, but I don't get why that worked & why, when I remove that entry+ associated xhtml, the book screws up again in ADE

are their nesting rules for ADE that neither I nor flightcrew/sigil are aware of ?

PS could be red herring but I see that sigil adds id="heading_id_2" to very header style, if I remove them it puts them back , and I thought that those things had to be unique, not same in every header
Code:
<head>
  <title>Scott Nicholson Library, Vol. 1</title>
  <link href="../Styles/stylesheet.css" rel="stylesheet" type="text/css" />
  <style type="text/css">
/*<![CDATA[*/

  @page { margin-bottom: 5.000000pt; margin-top: 5.000000pt; }
  /*]]>*/
  </style>
</head>

<body class="calibre">
  <h2 class="calibre1" id="heading_id_2"><span>Scott Nicholson</span></h2>
</body>
</html>
BOOKS WORKS WITH ABOVE PAGE ADDED AT START BUT NOT WHEN I REMOVE IT !
Code:
<head>
    <meta content="81dcf945-7e86-4d21-9913-89758eadbc66" name="dtb:uid"/>
    <meta content="2" name="dtb:depth"/>
    <meta content="0" name="dtb:totalPageCount"/>
    <meta content="0" name="dtb:maxPageNumber"/>
  </head>
  <docTitle>
    <text>Scott Nicholson Library, Vol. 1</text>
  </docTitle>
  <navMap>
    <navPoint id="navPoint-1" playOrder="1">
      <navLabel>
        <text>Scott Nicholson</text>
      </navLabel>
      <content src="Text/CR%21B4SPNEKEZD7Z9922DKY5ATX28VTF_split_002_split_001.html"/>
    </navPoint>
    <navPoint id="navPoint-2" playOrder="2">
      <navLabel>
        <text>THE RED CHURCH</text>
      </navLabel>
      <content src="Text/Section0001.xhtml"/>
      <navPoint id="navPoint-3" playOrder="3">
        <navLabel>
          <text>CHAPTER ONE</text>
        </navLabel>
        <content src="Text/Section0001.xhtml#heading_id_2"/>
      </navPoint>
      <navPoint id="navPoint-4" playOrder="4">
        <navLabel>
          <text>CHAPTER TWO</text>
        </navLabel>
        <content src="Text/CR%21B4SPNEKEZD7Z9922DKY5ATX28VTF_split_003.html"/>
      </navPoint>

Last edited by cybmole; 02-08-2012 at 02:28 AM.
cybmole is offline   Reply With Quote