Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 11-21-2014, 09:01 AM   #1
Psymon
Chief Bohemian Misfit
Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.
 
Psymon's Avatar
 
Posts: 571
Karma: 462964
Join Date: May 2013
Device: iPad, ADE
Your ToC in the ToC in iBooks?

What the heck is the deal with getting your table of contents to show up in the table of contents in iBooks? Like, in my book I have the "front matter," which consists of the title page and illustration, followed by a nicely formatted table of contents (which is much, much nicer to browse through than the device's built-in one), and this is followed by a similarly-formatted list of illustrations, and then the rest (and bulk) of the book.

All of the items that make up that "front matter" I've specified to be listed in the device's table of contents, but no matter what I try, I can't seem to get my table of contents to be listed in the iBooks' table of contents -- it shows the "Title Page & Illustration," and then comes "List of Illustrations." I even tried giving my own ToC a weird ID (like "whatever" or something), but I guess iBooks nevertheless knows that it's a table of contents and just doesn't want it listed in the table of contents -- if ya know what I mean.

Anybody else noticed this? And anybody know a way to "fix" it?

(PS. This isn't an issue in ADE -- my ToC shows up just fine in the ToC in there, so it's not an error in my coding or something.)

Last edited by Psymon; 11-22-2014 at 01:42 AM.
Psymon is offline   Reply With Quote
Old 11-21-2014, 01:39 PM   #2
odedta
Addict
odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.
 
Posts: 398
Karma: 96448
Join Date: Dec 2013
Device: iPad
I don't understand, assuming you're building an EPUB2, the toc.ncx is what defines how your TOC would look in the app's TOC view. If you like to create an HTML file with a TOC go right ahead and do that and just put it in the spine.

If you're making an EPUB3, just make sure both the toc.ncx and the toc.html are the same.
odedta is offline   Reply With Quote
Advert
Old 11-21-2014, 02:49 PM   #3
Psymon
Chief Bohemian Misfit
Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.
 
Psymon's Avatar
 
Posts: 571
Karma: 462964
Join Date: May 2013
Device: iPad, ADE
I'm not sure how to explain this any better than I did -- although I do realize that it probably sounds a bit convoluted. I only experience this problem in iBooks, on my iPad, too -- it doesn't happen in ADE on my PC -- so I guess if you don't have an iPad (or other IOS device) you won't be able to see it. I'll try to re-state the problem, though, without reviewing what I wrote before -- maybe it'll come out differently this time and be more understandable what the problem is.

So every ebook reader has the ability to display a ToC for the reader -- when I make my book in Sigil, there's an option that does this automatically from the various headings, etc. that I've created in my book, of course. Apart from that, though, I wanted to make a "Table of Contents" in my book that's more like in a print book, i.e. after the title page and stuff, you "turn the page" and there's your ToC, all nicely formatted, looking the same (typographically) as the rest of your book does and stuff.

Oh, and this is in epub2, by the way (if that matters, I don't know).

The words (title) "Table of Contents" in there are coded as an <h1> heading, and therefore should show up in the device's (or more specifically in iBooks') ToC, too, though -- but they don't.

In ADE on my PC -- where things work fine -- the first things listed in my ToC (the app's ToC, that is) are...

Title Page & Illustration
Table of Contents
List of Illustrations
Foreword
[and then the rest of the book]

...but in iBooks, no matter what I do, I can't seem to get my Toc to show up in iBooks' Toc, so what I end up with is this being listed...

Title Page & Illustration
List of Illustrations
Foreword
[and then the rest of the book]

Hope that explains the problem better?
Psymon is offline   Reply With Quote
Old 11-21-2014, 03:14 PM   #4
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
If you've generated the HTML TOC after the NCX TOC, it obviously won't be included in the NCX TOC. I.e., you'll have to regenerate the NCX TOC after you've generated the HTLM TOC.

If you didn't use Sigil's Create HTML TOC option, you also might have to right-click your HTML TOC and select Add Semantics > TOC.
Doitsu is offline   Reply With Quote
Old 11-21-2014, 03:37 PM   #5
Psymon
Chief Bohemian Misfit
Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.
 
Psymon's Avatar
 
Posts: 571
Karma: 462964
Join Date: May 2013
Device: iPad, ADE
Quote:
Originally Posted by Doitsu View Post
If you've generated the HTML TOC after the NCX TOC, it obviously won't be included in the NCX TOC. I.e., you'll have to regenerate the NCX TOC after you've generated the HTLM TOC.

If you didn't use Sigil's Create HTML TOC option, you also might have to right-click your HTML TOC and select Add Semantics > TOC.
I haven't got a clue what you just said.

Ha ha... by my "HTML TOC", I presume you mean the one I made myself, that part of my book, that looks like the rest of my book? I don't actually do anything to "generate" that -- like, there's no feature in my program (Sigil) where I just click a button (or whatever) and it updates it automatically. I have to type in the code by myself, make any changes to it myself, just like any other HTML page in the book.

I'm not quite sure if I understand the rest of what you were saying -- and I have no clue about "semantics." In any case, don't forget that everything works fine in ADE, it just seems to be iBooks that doesn't want to list your nicely-designed, part-of-the-book "Table of Contents" in its ToC.
Psymon is offline   Reply With Quote
Advert
Old 11-21-2014, 03:58 PM   #6
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 Psymon View Post
like, there's no feature in my program (Sigil) where I just click a button (or whatever) and it updates it automatically.
How about Tools > Table of Contents > Create HTML Table of Contents

Quote:
Originally Posted by Psymon View Post
I'm not quite sure if I understand the rest of what you were saying -- and I have no clue about "semantics.
The Add Semantics menu items add information (guide items) for non-ADE readers such as iBooks.

Quote:
Originally Posted by Psymon View Post
In any case, don't forget that everything works fine in ADE
It works fine, because ADE ignores guide items.
Doitsu is offline   Reply With Quote
Old 11-21-2014, 04:21 PM   #7
Psymon
Chief Bohemian Misfit
Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.
 
Psymon's Avatar
 
Posts: 571
Karma: 462964
Join Date: May 2013
Device: iPad, ADE
Quote:
Originally Posted by Doitsu View Post
How about Tools > Table of Contents > Create HTML Table of Contents
Well, that is indeed exactly how I generate my ToC in Sigil.

Quote:
The Add Semantics menu items add information (guide items) for non-ADE readers such as iBooks.
I've never done anything with "semantics", although I did come across that, that if I right-click on a filename in my list of files (on the left in Sigil) that "Add Semantics" is one of the things there, and that there's a bunch of things I can choose from (Title Page, Table of Contents, etc.).

I also just looked into this ("semantics") a little more, and came across this page...

http://sigildev.blogspot.ca/2010/04/...tics-menu.html

...but I still don't know what it's supposed to do, and -- perhaps more importantly -- how I would impliment it the way that I've done my book. I have one file, called "front_matter.xhtml", which contains ALL the front matter to my book, i.e. the title page, the following illustration, the table of contents and the list of illustrations. That "Add Semantics" thingie will only allow me to add one of those things.

And in any case, even if I did add a "semantic", I still don't get what that's supposed to do.

Quote:
It works fine, because ADE ignores guide items.
Pardon my stupidity, but I don't understand what that means. Like, with this current problem, it's iBooks that's "ignoring" something that is, in fact, there, while ADE isn't ignoring it.
Psymon is offline   Reply With Quote
Old 11-21-2014, 04:59 PM   #8
DomesticExtremis
Addict
DomesticExtremis ought to be getting tired of karma fortunes by now.DomesticExtremis ought to be getting tired of karma fortunes by now.DomesticExtremis ought to be getting tired of karma fortunes by now.DomesticExtremis ought to be getting tired of karma fortunes by now.DomesticExtremis ought to be getting tired of karma fortunes by now.DomesticExtremis ought to be getting tired of karma fortunes by now.DomesticExtremis ought to be getting tired of karma fortunes by now.DomesticExtremis ought to be getting tired of karma fortunes by now.DomesticExtremis ought to be getting tired of karma fortunes by now.DomesticExtremis ought to be getting tired of karma fortunes by now.DomesticExtremis ought to be getting tired of karma fortunes by now.
 
DomesticExtremis's Avatar
 
Posts: 243
Karma: 359054
Join Date: Nov 2012
Device: default
Quote:
I have one file, called "front_matter.xhtml", which contains ALL the front matter to my book, i.e. the title page, the following illustration, the table of contents and the list of illustrations. That "Add Semantics" thingie will only allow me to add one of those things.

And in any case, even if I did add a "semantic", I still don't get what that's supposed to do.
Split the file then add appropriate semantics to each bit.
IIRC the semantics actually updates the guide section of content.opf.
e.g.
Code:
<reference href="Text/contents.xhtml" title="Table Of Contents" type="toc"/>
and so on.
The reader should use these internally for various functions.
DomesticExtremis is offline   Reply With Quote
Old 11-21-2014, 05:28 PM   #9
Psymon
Chief Bohemian Misfit
Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.
 
Psymon's Avatar
 
Posts: 571
Karma: 462964
Join Date: May 2013
Device: iPad, ADE
Quote:
Originally Posted by DomesticExtremis View Post
Split the file then add appropriate semantics to each bit.
Nope, splitting the file -- which I would really rather not do anyway (because that'll add blank pages in-between files in ADE) -- and then giving each separate thing (ToC, list of illustrations, etc.) semantics respectively, still doesn't get my ToC to show up in iBooks ToC.

Unfortunately -- but then, like I said, I didn't want to split the file anyway. :/
Psymon is offline   Reply With Quote
Old 11-22-2014, 10:34 PM   #10
DomesticExtremis
Addict
DomesticExtremis ought to be getting tired of karma fortunes by now.DomesticExtremis ought to be getting tired of karma fortunes by now.DomesticExtremis ought to be getting tired of karma fortunes by now.DomesticExtremis ought to be getting tired of karma fortunes by now.DomesticExtremis ought to be getting tired of karma fortunes by now.DomesticExtremis ought to be getting tired of karma fortunes by now.DomesticExtremis ought to be getting tired of karma fortunes by now.DomesticExtremis ought to be getting tired of karma fortunes by now.DomesticExtremis ought to be getting tired of karma fortunes by now.DomesticExtremis ought to be getting tired of karma fortunes by now.DomesticExtremis ought to be getting tired of karma fortunes by now.
 
DomesticExtremis's Avatar
 
Posts: 243
Karma: 359054
Join Date: Nov 2012
Device: default
Quote:
Originally Posted by Psymon View Post
Nope, splitting the file -- which I would really rather not do anyway (because that'll add blank pages in-between files in ADE) -- and then giving each separate thing (ToC, list of illustrations, etc.) semantics respectively, still doesn't get my ToC to show up in iBooks ToC.

Unfortunately -- but then, like I said, I didn't want to split the file anyway. :/
Ho hum. Maybe iBooks is just carp.
Can you not buy a proper e-ink device?
DomesticExtremis is offline   Reply With Quote
Old 11-23-2014, 06:53 PM   #11
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
Quote:
Originally Posted by DomesticExtremis View Post
Ho hum. Maybe iBooks is just carp.
Can you not buy a proper e-ink device?
Well iBooks works fine with most TOC. It uses the NCX version just fine for ePub 2 files. It will not find the HTML file for ePub 2 because the standard does not support it although there is a way in ePub 3 to make it work. For ePub 2, which is what Sigil generates I suspect the NCX file is not being generated or not be generated correctly.

Dale
DaleDe is offline   Reply With Quote
Old 11-23-2014, 07:06 PM   #12
Psymon
Chief Bohemian Misfit
Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.
 
Psymon's Avatar
 
Posts: 571
Karma: 462964
Join Date: May 2013
Device: iPad, ADE
Quote:
Originally Posted by DaleDe View Post
Well iBooks works fine with most TOC. It uses the NCX version just fine for ePub 2 files. It will not find the HTML file for ePub 2 because the standard does not support it although there is a way in ePub 3 to make it work. For ePub 2, which is what Sigil generates I suspect the NCX file is not being generated or not be generated correctly.
Well, I think perhaps there might be some confusion here (again/still), It's not that I'm not getting a ToC at all, but rather that in that Toc my "other" ToC doesn't get listed.

See my third post here in this thread -- I don't know how to explain the problem any better than I did there...

https://www.mobileread.com/forums/sho...14&postcount=3
Psymon is offline   Reply With Quote
Old 11-23-2014, 08:55 PM   #13
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
Ah, I was confused. It looks like Apple is treating your inline TOC as an external TOC and removing it from the book but probably keeping it as an external TOC so you can use it to navigate. This may be a function of epub 3 where Apple is confused.

Dale
DaleDe is offline   Reply With Quote
Old 11-23-2014, 11:27 PM   #14
Psymon
Chief Bohemian Misfit
Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.
 
Psymon's Avatar
 
Posts: 571
Karma: 462964
Join Date: May 2013
Device: iPad, ADE
Quote:
Originally Posted by DaleDe View Post
Ah, I was confused. It looks like Apple is treating your inline TOC as an external TOC and removing it from the book but probably keeping it as an external TOC so you can use it to navigate. This may be a function of epub 3 where Apple is confused.
Well, except my book is epub2, plus my ToC is in the middle of a bigger file -- that one XHTML file contains the title page, full-page illustration, then the ToC, then the list of illustrations. It'll show all the other items in iBooks' ToC, but not my ToC.

If that makes sense -- I know it's confusing when I keep talking about "my" ToC and iBooks' ToC.
Psymon is offline   Reply With Quote
Old 11-24-2014, 01:07 AM   #15
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
Quote:
Originally Posted by Psymon View Post
Well, except my book is epub2, plus my ToC is in the middle of a bigger file -- that one XHTML file contains the title page, full-page illustration, then the ToC, then the list of illustrations. It'll show all the other items in iBooks' ToC, but not my ToC.

If that makes sense -- I know it's confusing when I keep talking about "my" ToC and iBooks' ToC.
It does make sense. Apple seems to have targeted that particular file as it recognized it at the TOC and moved it to the external TOC. It was not accidental. Apple also removes the cover from the book unless you display it in landscape mode.

Dale
DaleDe is offline   Reply With Quote
Reply

Tags
ibooks, table of contents


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
iBooks TOC error in EPUB3 brownetu ePub 13 08-15-2014 01:32 AM
Do you create a hyperlinked TOC for your ePubs in iBooks? katiesommer ePub 19 01-21-2013 01:39 AM
Different image next to TOC than iBooks shelf Alan Newson ePub 0 03-19-2012 07:17 AM
Why does automatic TOC disappear in iBooks? nonsequito ePub 1 06-07-2011 02:52 PM


All times are GMT -4. The time now is 02:44 AM.


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