View Single Post
Old 02-26-2022, 07:46 AM   #17
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,739
Karma: 24031403
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by spelunker View Post
ALL of this could be avoided by generating your toc through the head element <title> as I suggested.
Since the Calibre Editor already has that functionality, there's no point in adding it to Sigil, especially since it goes against best practices.

To generate a TOC from title tags in Calibre Editor:
  1. Add the book to your Calibre library, right-click it and select Edit book.
  2. Select Tools > Table of Contents > Edit Table of Contents.
  3. Delete the default Start entry.
  4. Click Generate ToC from Xpath.
  5. Paste //h:title in the Level 1 ToC box and click OK.
  6. Click OK again and select Save a copy from the File menu to save the updated epub.
Doitsu is offline   Reply With Quote