View Single Post
Old 02-08-2012, 05:32 AM   #4
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
here is avery simple bug demo "book". Created entirely with Sigil 0.4.2.
just open it in ADE & see that TOC is wrong, ( but it is OK is sigil)
the entire "book" is just
Code:
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
  "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <title></title>
</head>

<body>
  <h1 id="heading_id_2">book1</h1>

  <h2 id="heading_id_3">chapter 1</h2>

  <p>text</p>

  <h2 id="heading_id_4">chapter 2</h2>

  <p>text</p>

  <h1 id="heading_id_5">book2</h1>

  <p><br /></p>

  <h2 id="heading_id_6">chapter 1</h2>

  <p>text</p>

  <h2 id="heading_id_7">chapter 2</h2>

  <p>text</p>

  <h1 id="heading_id_8">book3</h1>

  <h2 id="heading_id_9">chapter 1</h2>

  <p>text</p>

  <h2 id="heading_id_10">chapter 2</h2>

  <p>text</p>
</body>
</html>
with a sigil generated toc:
Code:
 <docTitle>
    <text>Unknown</text>
  </docTitle>
  <navMap>
    <navPoint id="navPoint-1" playOrder="1">
      <navLabel>
        <text>book1</text>
      </navLabel>
      <content src="Text/Section0001.xhtml" />
      <navPoint id="navPoint-2" playOrder="2">
        <navLabel>
          <text>chapter 1</text>
        </navLabel>
        <content src="Text/Section0001.xhtml#heading_id_3" />
      </navPoint>
      <navPoint id="navPoint-3" playOrder="3">
        <navLabel>
          <text>chapter 2</text>
        </navLabel>
        <content src="Text/Section0001.xhtml#heading_id_4" />
      </navPoint>
    </navPoint>
    <navPoint id="navPoint-4" playOrder="4">
      <navLabel>
        <text>book2</text>
      </navLabel>
      <content src="Text/Section0001.xhtml#heading_id_5" />
      <navPoint id="navPoint-5" playOrder="5">
        <navLabel>
          <text>chapter 1</text>
        </navLabel>
        <content src="Text/Section0001.xhtml#heading_id_6" />
      </navPoint>
      <navPoint id="navPoint-6" playOrder="6">
        <navLabel>
          <text>chapter 2</text>
        </navLabel>
        <content src="Text/Section0001.xhtml#heading_id_7" />
      </navPoint>
    </navPoint>
    <navPoint id="navPoint-7" playOrder="7">
      <navLabel>
        <text>book3</text>
      </navLabel>
      <content src="Text/Section0001.xhtml#heading_id_8" />
      <navPoint id="navPoint-8" playOrder="8">
        <navLabel>
          <text>chapter 1</text>
        </navLabel>
        <content src="Text/Section0001.xhtml#heading_id_9" />
      </navPoint>
      <navPoint id="navPoint-9" playOrder="9">
        <navLabel>
          <text>chapter 2</text>
        </navLabel>
        <content src="Text/Section0001.xhtml#heading_id_10" />
      </navPoint>
    </navPoint>
  </navMap>
</ncx>
all I see in ADE toc is 2 entries:
chapter1
chapter2

So sigil & ADE have a fundamental disagreement over toc in this case.
Attached Files
File Type: epub toc bug demo book.epub (1.9 KB, 174 views)
cybmole is offline   Reply With Quote