Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 02-12-2017, 07:45 PM   #1
SigilBear
Banned
SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.
 
Posts: 244
Karma: 2112680
Join Date: Jan 2017
Device: iBooks
Three Tables of Contents?

The epub I'm working on has two tables of contents. One is the TOC that drops down when you click the icon at the top of your epub reader. The other TOC is something I created manually in a file named introduction.xhtml, which also includes a few other things (Preface, Introduction, etc.).

I just realized that the HTML for the automatically generated TOC is in a file named nav.xhtml, not in toc.ncx (which I thought was the file associated with the auto-TOC).

So if my TOC content is in nav.xhtml, then what's the purpose of toc.ncx?

I'm working with Sigil on a Mac, by the way.
SigilBear is offline   Reply With Quote
Old 02-12-2017, 08:02 PM   #2
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 6,498
Karma: 84420419
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
The nav file is for reading devices that support EPUB 3. The ncx is a fallback for EPUB 2 readers.
jhowell is offline   Reply With Quote
Advert
Old 02-12-2017, 08:06 PM   #3
SigilBear
Banned
SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.
 
Posts: 244
Karma: 2112680
Join Date: Jan 2017
Device: iBooks
Ah, that explains it.

This is the content right now:

Code:
    <text>Unknown</text>
  </docTitle>
  <navMap>
    <navPoint id="navPoint-1" playOrder="1">
      <navLabel>
        <text>Start</text>
      </navLabel>
      <content src="Text/introduction.xhtml"/>
    </navPoint>
  </navMap>
So if I wanted to add a link to Chapter 1, would I just change it to this?

Code:
    <text>Unknown</text>
  </docTitle>
  <navMap>
    <navPoint id="navPoint-1" playOrder="1">
      <navLabel>
        <text>Start</text>
      </navLabel>
      <content src="Text/introduction.xhtml"/>
      <content src="Text/chapter1.xhtml"/>
    </navPoint>
  </navMap>
SigilBear is offline   Reply With Quote
Old 02-12-2017, 08:14 PM   #4
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 6,498
Karma: 84420419
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
No, there is a particular structure that must be followed. And you want to keep all of the TOC copies in sync. I recommend using a TOC tool in an EPUB editor.
jhowell is offline   Reply With Quote
Old 02-12-2017, 08:24 PM   #5
SigilBear
Banned
SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.
 
Posts: 244
Karma: 2112680
Join Date: Jan 2017
Device: iBooks
Hmmm...Sigil apparently allows me to only make an Epub 3.0 auto-TOC and/or an HTML TOC. So I need to use a different software program to create a TOC for Epub 2.0?

Actually, I should do some research on Epub 2.0 before I go any further. Is it still popular enough to really merit wasting time on it?

Thanks.
SigilBear is offline   Reply With Quote
Advert
Old 02-12-2017, 09:02 PM   #6
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
PeterT's Avatar
 
Posts: 12,177
Karma: 73448616
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
I think it's safe to say that more eReaders support epub 2 than 3
PeterT is offline   Reply With Quote
Old 02-12-2017, 09:11 PM   #7
SigilBear
Banned
SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.
 
Posts: 244
Karma: 2112680
Join Date: Jan 2017
Device: iBooks
Wow, I thought I read that Epub 2.0 was dying out.

OK, what are some software programs that can create TOC's for Epub 2.0?
SigilBear is offline   Reply With Quote
Old 02-13-2017, 02:18 AM   #8
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
Quote:
Originally Posted by SigilBear View Post
Wow, I thought I read that Epub 2.0 was dying out.

OK, what are some software programs that can create TOC's for Epub 2.0?
Not by a long shot. For most ebooks ePUB2 is sufficient...

Now, for programs that can create TOC's. Sigil and Calibre for sure. You can also do it by hand, it is not that hard. It is just some XML.
Toxaris is offline   Reply With Quote
Old 02-13-2017, 02:34 AM   #9
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,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by SigilBear View Post
OK, what are some software programs that can create TOC's for Epub 2.0?
You can use Sigil for that. Generate/update the Nav TOC and then select:

Tools > Epub3 Tools > Generate NCX from Nav

If your book also contains a regular HTML TOC for older Kindle devices also select:

Tools > Table of Contents > Create HTML Table of Contents
Doitsu is offline   Reply With Quote
Old 02-13-2017, 06:07 AM   #10
Notjohn
mostly an observer
Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.
 
Posts: 1,515
Karma: 987654
Join Date: Dec 2012
Device: Kindle
Quote:
Originally Posted by jhowell View Post
The nav file is for reading devices that support EPUB 3. The ncx is a fallback for EPUB 2 readers.
Thank you! A very economical and helpful rule of thumb.

@Sigilbear: simply set epub2 as the default in Sigil. Edit > Preferences > General Settings > Version 2.
Notjohn is offline   Reply With Quote
Old 02-13-2017, 07:26 AM   #11
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 74,044
Karma: 129333562
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
ePub 2 is actually more in use as more programs read ePub 2 and not ePub 3. Also, ePub 2 is easier to make and unless you actually need some features of ePub 3, you'd be best to stick to ePub 2.

With ePub 2 you only NEED one ToC. That ToC being the NCX ToC.
JSWolf is offline   Reply With Quote
Old 02-13-2017, 08:00 AM   #12
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 6,498
Karma: 84420419
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
EPUB 3 navigation was defined in such a way that the table of contents that appears within the document flow can also be used as the logical table of contents by adding extra mark up. In practice this is rarely done. So instead of reaching the intended goal of a single TOC, now there are typically three in an EPUB.
jhowell is offline   Reply With Quote
Old 02-13-2017, 11:59 AM   #13
SigilBear
Banned
SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.
 
Posts: 244
Karma: 2112680
Join Date: Jan 2017
Device: iBooks
Wow, good tips; lots to think about.

I try my best to keep up with the latest technology, so Epub 3.0 seemed the way to go. But I'll have to take another look at it.

Anyway, I now have three tables of contents.

P.S. Now I remember why I was so fixated on Epub 3.0. I watched a series of InDesign tutorials @ Lynda.com, and I think the instructions were to choose Epub 3.0. I imagine the folks at Adobe would favor Epub 3.0 because it shows off whatever InDesign is supposed to do better than 2.0.

Last edited by SigilBear; 02-13-2017 at 01:52 PM.
SigilBear is offline   Reply With Quote
Old 02-13-2017, 04:49 PM   #14
DaleDe
Grand Sorcerer
DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.
 
DaleDe's Avatar
 
Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
For a sample of the ePub 3 TOC see EPub_3#Navigation in our wiki.

Dale
DaleDe is offline   Reply With Quote
Reply

Tags
table of contents, toc.ncx


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Tables not looking just right oiver55 Sigil 4 08-27-2015 07:51 AM
Tables of Contents carogray General Discussions 17 10-23-2013 04:45 PM
Multiple tables of contents e.loureiro Kindle Formats 0 02-08-2013 07:09 AM
General question on tables of contents starrigger Calibre 4 02-23-2009 02:05 AM
Sitemap Creator and Tables of Contents brewt Workshop 0 12-18-2007 01:22 AM


All times are GMT -4. The time now is 08:20 AM.


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