![]() |
#16 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 368
Karma: 1000000
Join Date: Mar 2016
Device: none
|
It seems the BibiReader emulator in Sigil doesn't even display the nav.xhtml file even if it's at the front.
Crikey, this is so much working in the dark, you'd have thought ereaders would be a bit better after the EPUB3 standard has been around so long. |
![]() |
![]() |
#17 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 368
Karma: 1000000
Join Date: Mar 2016
Device: none
|
My mistake, BibiReader puts it in its hamburger menu, and even Landmarks even though that's set to no display automatically in Sigil. However, I see that simply striping out the Landmarks code from nav.xhtml that epubcheck has no problem with that.
Getting there... |
![]() |
![]() |
#18 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
EPUB3 code is slightly different. I wouldn't really manually mess too much with the nav.xhtml, because it requires proper nesting. Again, it's pretty hard to see because you're working on a short/simple book, but the details become easier to see on more complicated documents (parts/chapters/subchapters). * * * Best Way to Generate Table of Contents? In Sigil, you can use: 1. Tools > Table of Contents > Generate Table of Contents. This will update your:
2. Tools > Table of Contents > Create HTML Table of Contents. This will create a:
Where Do These Tools Get Their Information? The Headings (<h1> -> <h6>) in your book: Code:
<h1>Part 1</h1> <h2>Chapter 1: The Beginning</h2> <h3>The Calm Before the Storm</h3> [...] <h1>Part 2</h1> - Part 1 -- Chapter 1: The Beginning --- The Calm Before the Storm - Part 2 What If I Want the TOC to Display Something Different? You can take advantage of title: Code:
<h2 title="1. The Beginning">Chapter 1: The Beginning</h2>
- Part 1 -- 1. The Beginning --- The Calm Before the Storm The TOC text changes, while your actual text in your book looks the same! ![]() What If My Book Doesn't Have Headings? Then you can use:
You can manually rename entries + point them to specific files. But, warning, these changes can easily be overwritten + will need to manually be done each time. (Better to rely on the automatic tools as much as you can!) How Do I Know My Changes Are Working? Press:
This will show you the current ebook Table of Contents as Sigil sees it. For EPUB2, this is what's in the toc.ncx file. For EPUB3, this is what's in the nav.xhtml file. - - - - Note: There are many other "hidden" TOC tricks you can do in Sigil. For more information, see my posts from earlier this year: and all the linked threads. (All that info was for EPUB2, but it's all relevant for EPUB3 too.) Don't do that. The landmarks section is important for Accessibility. Last edited by Tex2002ans; 07-11-2022 at 07:43 PM. |
|
![]() |
![]() |
#19 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 368
Karma: 1000000
Join Date: Mar 2016
Device: none
|
Thanks for the details, I'll start again from scratch and try it that way.
On my Kindle Paperwhite even if I change 'Table of Contents' to the book title and put it at the front it still puts it at the back. Though that may be something to do with using Calibre to send the epub to the Kindle. |
![]() |
![]() |
#20 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 368
Karma: 1000000
Join Date: Mar 2016
Device: none
|
Am I right in thinking some of my problem would be solved by making an EPUB2 rather than 3? If so, that seems a bit of a pity. I was under the impression that EPUB2 was kinda obsolete now, yet it seems people are saving themselves trouble by using it. I wonder why EPUB3 should be such a tortuous process for a simple book. I'd probably find it easier if I had a complex book, there's the irony...
|
![]() |
![]() |
#21 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,764
Karma: 6000000
Join Date: Nov 2009
Device: many
|
No, epub2 will have an ncx that would show the same info. Epub3 can do the exact same by removing the nav from the spine as I explained earlier.
|
![]() |
![]() |
#22 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,756
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
You don't need an HTML ToC in ePub as ePub 2 as NCX and ePub 3 has NAV which is easier to get to from any place in the eBook. I have seen some ePub with no HTML ToC.
If you are making an ePub 3, you do also need the NCX for ePub 2 compatibility. Personally, I don't use the HTML ToC if there is one. I use the ToC that's displayed when I want to see the ToC and that is not the HTML ToC. |
![]() |
![]() |
#23 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 368
Karma: 1000000
Join Date: Mar 2016
Device: none
|
Quote:
|
|
![]() |
![]() |
#24 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,756
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
There are still a lot of programs/devices that need the NCX to display the ToC. It's not much effort to make the NCX. As to Sigil, you'd have to ask the developers why such a decision was made. |
|
![]() |
![]() |
#25 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 368
Karma: 1000000
Join Date: Mar 2016
Device: none
|
I'll look more into NCX.
I'm starting to think hardly anyone makes EPUB3 files. All the epubs I've looked at from Random House are EPUB2 and not a single one of them validates. Epub is starting to feel like something broken. But I'll persevere! |
![]() |
![]() |
#26 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 368
Karma: 1000000
Join Date: Mar 2016
Device: none
|
I see Sigil has can generate an NCX for EPUB3, which I hadn't noticed. But is there a list anywhere of what readers/programs actually need NCX in EPUB3? Even the book EPUB 3 Best Practices, which I've just read finding nothing else on the subject, is ten years old.
How come Firefox and Chrome can use such things as font variant for small caps but for an EPUB I'll either have to ignore it or make a less good span class? Even WOFF fonts are ignored in Kobo. Forgive me for finding all this very strange. Why don't ereaders just use a vastly superior web browser engine, all we're paying for really is the e-ink screen. Last edited by bookman156; 07-12-2022 at 06:20 AM. |
![]() |
![]() |
#27 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,756
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
![]() |
![]() |
#28 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 368
Karma: 1000000
Join Date: Mar 2016
Device: none
|
Quote:
|
|
![]() |
![]() |
#29 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,756
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
![]() |
![]() |
#30 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 368
Karma: 1000000
Join Date: Mar 2016
Device: none
|
Quote:
|
|
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Table of Contents not being identified as Table of Contents | openletter | Conversion | 2 | 10-19-2012 12:54 AM |
Table of Contents Help | MyLittleTwi | Calibre | 0 | 02-27-2012 03:30 PM |
Table of Contents | stevej46 | Conversion | 0 | 08-06-2011 02:46 PM |
Help with my Table of Contents | Skylinefranc | Calibre | 0 | 03-19-2010 12:55 AM |
Creator Table of Contents | Nate the great | Kindle Formats | 5 | 07-10-2008 05:55 AM |