Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 06-20-2022, 06:18 AM   #1
Gunivortus
Enthusiast
Gunivortus began at the beginning.
 
Posts: 25
Karma: 10
Join Date: Apr 2019
Device: Onyx Boox Note 3
TOC incomplete

The format of each chapter title is set in H2.
Checked that also in PageEdit.
Creating a table of contents only shows the first chapter title.
How can I get a complete TOC?
Gunivortus is offline   Reply With Quote
Old 06-20-2022, 08:56 AM   #2
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 2,482
Karma: 14768783
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 11/X/6/iPad 1,2 & Air/Surface Pro/Kindle PW
It works fine in my testing. Perhaps you can provide a little more information - what Sigil version - what OS - an example of the html code (<h2> tags) that isn't working - any applicable CSS. That would help us to help you much better.
Turtle91 is offline   Reply With Quote
Advert
Old 06-20-2022, 09:00 AM   #3
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 25,278
Karma: 175000160
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
In addition:

EPUB2 or EPUB3? Is it NCX/NAV generation, or an HTML toc being generated from one of either of those? Where is it only showing the first chapter title? in Sigil? Or in a particular reading app/devices's navigation menu?
DiapDealer is offline   Reply With Quote
Old 06-20-2022, 09:01 AM   #4
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 6,369
Karma: 4500000
Join Date: Nov 2009
Device: many
Works for me as well Perhaps epub3 but ereader using ncx not nav and user did not update ncx from nav?

Last edited by KevinH; 06-20-2022 at 11:12 AM.
KevinH is offline   Reply With Quote
Old 06-20-2022, 11:02 AM   #5
Gunivortus
Enthusiast
Gunivortus began at the beginning.
 
Posts: 25
Karma: 10
Join Date: Apr 2019
Device: Onyx Boox Note 3
Quote:
Originally Posted by Turtle91 View Post
It works fine in my testing. Perhaps you can provide a little more information - what Sigil version - what OS - an example of the html code (<h2> tags) that isn't working - any applicable CSS. That would help us to help you much better.
Wrote the text in LibreOffice, all parts are attributed to Styles.
Exported it to epub3.
Opened it in Sigil, version Sigil-1.9.10-Windows-x64, running under Windows 11.

This is the first chapter title in the html and it is found creating the TOC:

<h2 class="para7"><span class="span1">Omdat een voorwoord of inleiding nu eenmaal hoort ...</span></h2>

This is the second chapter title and it not found for the table of contents:

<h2 class="para7"><span class="span1">… </span><span class="span1">over het boek en zijn titel</span></h2>

It is the same with all next chapters....

The TOC.xhtml shows:

<body>
<div class="sgc-toc-title">Table of Contents</div>
<div class="sgc-toc-level-1">
<a href="section0001.xhtml">Eike van Repgow en zijn Saksenspiegel</a>
</div>
</body>
Gunivortus is offline   Reply With Quote
Advert
Old 06-20-2022, 11:15 AM   #6
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 6,369
Karma: 4500000
Join Date: Nov 2009
Device: many
Are those additional chapter files shown properly in BookBrowser? Are they properly listed in the opf spine?

Why doesn't your first toc entry match your text? Did you use Create HTML Table of Contents menu item? Please run the Well Formed check tool to verify your xhtml is not broken.

Last edited by KevinH; 06-20-2022 at 11:21 AM.
KevinH is offline   Reply With Quote
Old 06-20-2022, 11:21 AM   #7
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 25,278
Karma: 175000160
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
I copied your code (verbatim) into two separate chapter files of a blank EPUB3, and both entries are created in both the NAV.xhtml (Generate Table of Contents) and the TOC.xhtml (Create HTML Table of Contents).

Last edited by DiapDealer; 06-20-2022 at 12:33 PM.
DiapDealer is offline   Reply With Quote
Old 06-20-2022, 11:26 AM   #8
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 6,369
Karma: 4500000
Join Date: Nov 2009
Device: many
Ah ... he did not create the Table of Contents (nav under epub3) first so the TOC tool had nothing to work with. He did the Create HTML Table of Contents first with out ever generating the nav in the first place.

Please try running the menu item Tools->Table of Contents -> Generate Table of Contents first.

That will provide you with a menu for you to select which headers it found and what you want to include into your Table of Contents..

That info used for the nav is them used to generate an HTML Table of Contents when it is asked for using the Tools->Table of Contents->Create HTML Table of Contents.

An HTML TOC is optional, but the nav is required to have a valid epub3.

Last edited by KevinH; 06-20-2022 at 11:38 AM.
KevinH is offline   Reply With Quote
Old 06-20-2022, 11:54 AM   #9
Gunivortus
Enthusiast
Gunivortus began at the beginning.
 
Posts: 25
Karma: 10
Join Date: Apr 2019
Device: Onyx Boox Note 3
Quote:
Originally Posted by DiapDealer View Post
I copied your code (verbatim) into two separate chapter files of a blank EPUB3, and both entries are created in the both the NAV.xhtml (Generate Table of Contents) and the TOC.xhtml (Create HTML Table of Contents).

Oh.... I only clicked the "Create HTML Table of contents".
Didn'r know I had to do first the Generate Table of contents.

Now it works.

Thank you all!
Gunivortus is offline   Reply With Quote
Old 06-20-2022, 12:59 PM   #10
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 25,278
Karma: 175000160
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
You must have run it some point in order for it to pick up the first chapter, but... yes, as Kevin noted, the HTML ToC is created from the internal ToC (NAV with EPUB3, or NCX with EPUB2). So the NAV (or NCX with EPUB2) needs to have everything you want in it whenever Create HTML ToC is run.

Last edited by DiapDealer; 06-20-2022 at 01:02 PM.
DiapDealer is offline   Reply With Quote
Old 06-20-2022, 01:28 PM   #11
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 2,482
Karma: 14768783
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 11/X/6/iPad 1,2 & Air/Surface Pro/Kindle PW
Quote:
Originally Posted by DiapDealer View Post
You must have run it some point in order for it to pick up the first chapter, but... yes, as Kevin noted, the HTML ToC is created from the internal ToC (NAV with EPUB3, or NCX with EPUB2). So the NAV (or NCX with EPUB2) needs to have everything you want in it whenever Create HTML ToC is run.
Just wondering if a 'fix' could be added to the bottom of the to-do list...

Code:
if createHTMLToC is empty:
    show warning and ask if they want to run CreateToC
???
Turtle91 is offline   Reply With Quote
Old 06-20-2022, 02:20 PM   #12
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 6,369
Karma: 4500000
Join Date: Nov 2009
Device: many
No, not having any toc of any sort (nav or ncx) is the issue. How could you create a HTML-version of a TOC without one? Perhaps, I will add a comment in the user guide about that a ToC must exist before running Create HTML Table of Contents.

Or perhaps change menu entry and or Tooltip to:

Create HTML file from current Table of Contents

Last edited by KevinH; 06-20-2022 at 03:05 PM.
KevinH is offline   Reply With Quote
Old 06-20-2022, 03:42 PM   #13
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 25,278
Karma: 175000160
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Also note that if this is something that continuously trips someone up, one can always create an Automated List that generates the internal TOC, and then creates the HTML toc from it. It can be an automation of its own, or be part of an exiting automation run.
DiapDealer is offline   Reply With Quote
Old 06-20-2022, 03:42 PM   #14
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,369
Karma: 22334455
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by Turtle91 View Post
Just wondering if a 'fix' could be added to the bottom of the to-do list...

Code:
if createHTMLToC is empty:
    show warning and ask if they want to run CreateToC
???
I like the idea.
Doitsu is offline   Reply With Quote
Old 06-20-2022, 04:03 PM   #15
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 27,414
Karma: 44897222
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by DiapDealer View Post
Also note that if this is something that continuously trips someone up, one can always create an Automated List that generates the internal TOC, and then creates the HTML toc from it. It can be an automation of its own, or be part of an exiting automation run.
Why not add a tick box to the NCX TOC tool to auto gen (after it completes) the HTML one, since that order is needed?
theducks is offline   Reply With Quote
Reply

Tags
incomplete, toc

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Incomplete book Mysticfairy General Discussions 24 09-21-2017 02:13 PM
Incomplete TOC Problem Summerhillie Conversion 3 02-21-2013 08:07 AM
incomplete pdf rooeytoo PDF 1 03-27-2012 06:58 AM
PDF incomplete pepe1970 Recipes 1 06-24-2011 09:01 PM
The Incomplete Me stevensavile Self-Promotions by Authors and Publishers 0 04-23-2011 06:03 AM


All times are GMT -4. The time now is 02:01 PM.


MobileRead.com is a privately owned, operated and funded community.