View Single Post
Old 08-17-2011, 04:50 AM   #1
Caleb666
Connoisseur
Caleb666 ought to be getting tired of karma fortunes by now.Caleb666 ought to be getting tired of karma fortunes by now.Caleb666 ought to be getting tired of karma fortunes by now.Caleb666 ought to be getting tired of karma fortunes by now.Caleb666 ought to be getting tired of karma fortunes by now.Caleb666 ought to be getting tired of karma fortunes by now.Caleb666 ought to be getting tired of karma fortunes by now.Caleb666 ought to be getting tired of karma fortunes by now.Caleb666 ought to be getting tired of karma fortunes by now.Caleb666 ought to be getting tired of karma fortunes by now.Caleb666 ought to be getting tired of karma fortunes by now.
 
Posts: 93
Karma: 400000
Join Date: Jul 2010
Device: iPad 2 64GB
Generated TOC links back to TOC page in the book

Hi,

I have a book that has a pretty bad TOC, so I decided to edit it with Sigil and fix it.
Before the edit, the TOC elements looked like this:
Code:
  <div class="calibre11">
    <blockquote class="calibre2"><a class="calibre13" href="../Text/split_013.html#filepos40901">Chapter 2</a></blockquote>
  </div>
After editing, saving and re-opening the file:
Code:
  <div class="calibre11">
    <h4 class="calibre2" id="heading_id_10"><a class="calibre13" href="../Text/split_013.html#filepos40901">Chapter 2</a></h4>
  </div>
Notice that the id="heading_id_10" was added. What also seems to have happened is that the links in the NCX point back to these headings, instead of the links these headings point to:

Code:
      <navPoint id="navPoint-10" playOrder="10">
        <navLabel>
          <text>Chapter 2</text>
        </navLabel>
        <content src="Text/split_006.html#heading_id_10" />
      </navPoint>
The book has over 100 chapters, and there's no way I'm going to manually edit the NCX to fix the links. This is not the first book in which it happened to me. Why does it do that?

Last edited by Caleb666; 08-17-2011 at 04:52 AM.
Caleb666 is offline   Reply With Quote