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

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle

Notices

Reply
 
Thread Tools Search this Thread
Old 07-15-2011, 08:58 AM   #1
JDawg
Junior Member
JDawg began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Jul 2011
Device: Kindle
Toc.ncx

Hi folks,
Is there any way that I could control where the toc.ncx (the table of contents) file appears in my .mobi book? Right now, you can access the table of contents by
1) Go to>table of contents
2) Going to the back of the book manually, because the toc seems to be located after the last chapter.
I would like the table of contents be accessed these ways:
1) Go to>table of contents
2) Going to the table of contents manually, but in stead of the back of the book it would be located before the preface.
Sorry for the complicated post on a minor issue, but I would prefer to have my ToC at the beginning. Thanks for any help.
JDawg is offline   Reply With Quote
Old 07-15-2011, 09:58 AM   #2
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: 27,532
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
This will probably be best answered in the Mobi or Calibre forum, but the short answer is; the TOC is probably at the end of the book because that's the default behavior when you convert an epub to mobi with calibre.

You're really talking about two different things. The "Go to>Table of contents" just jumps to the html version of the TOC... wherever it is in the book. So if you want it in the front, add an html TOC to your original source (before the preface) and tell calibre (if that's what you're using to convert to mobi) to NOT automatically add the table of contents.

With mobi, the toc.ncx file is only used to create/facilitate the chapter "jump points" on the progress bar. They allow you to jump to the various chapters with the joystick/d-pad.

Last edited by DiapDealer; 07-15-2011 at 12:44 PM.
DiapDealer is offline   Reply With Quote
Advert
Old 07-15-2011, 10:04 AM   #3
Alissa
Connoisseur
Alissa ought to be getting tired of karma fortunes by now.Alissa ought to be getting tired of karma fortunes by now.Alissa ought to be getting tired of karma fortunes by now.Alissa ought to be getting tired of karma fortunes by now.Alissa ought to be getting tired of karma fortunes by now.Alissa ought to be getting tired of karma fortunes by now.Alissa ought to be getting tired of karma fortunes by now.Alissa ought to be getting tired of karma fortunes by now.Alissa ought to be getting tired of karma fortunes by now.Alissa ought to be getting tired of karma fortunes by now.Alissa ought to be getting tired of karma fortunes by now.
 
Alissa's Avatar
 
Posts: 80
Karma: 716730
Join Date: Apr 2011
Location: Tokyo
Device: Kindle 3 + Story HD + Kobo Touch
Quote:
Originally Posted by JDawg View Post
Is there any way that I could control where the toc.ncx (the table of contents) file appears in my .mobi book?
1) Go to>table of contents
2) Going to the back of the book manually, because the toc seems to be located after the last chapter.
I would like the table of contents be accessed these ways:
On a Kindle device, toc.ncx is never shown. The table of contents of a book which is shown when you operate Go to > table of contents is a part of the book content (html file) that is marked as a toc. It appears wherever you put it; at the end, before preface, or even in a middle (nobody wants such a placement, though.)
Alissa is offline   Reply With Quote
Old 07-15-2011, 10:08 AM   #4
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: 73,835
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
But nobody wants the ToC inside an ePub. ePub has a perfectly good external ToC. Blame the conversion software for putting the ToC (from toc.ncx) at the back. That is a software conversion issue, not an issue with toc.ncx.

Why not log it as a bug in Calibre or make it a feature request to be able to specify where the ToC goes when converted from toc.ncx?
JSWolf is offline   Reply With Quote
Old 07-15-2011, 10:58 AM   #5
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: 27,532
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by JSWolf
But nobody wants the ToC inside an ePub. ePub has a perfectly good external ToC. Blame the conversion software for putting the ToC (from toc.ncx) at the back. That is a software conversion issue, not an issue with toc.ncx.

Why not log it as a bug in Calibre or make it a feature request to be able to specify where the ToC goes when converted from toc.ncx?
I just knew this question would draw you out of the woodwork.
There are no bugs here, Jon. Only personal preferences (placement) and what you like/don't like (two ToCs)... and differing workflow practices. Why would you even care how mobi's are made?

My own workflow is to build an ePub with a Toc (html) inside the ePub—exactly where I want it; front, back, middle. Then I convert the ePub to mobi... I get a happy mobi with a ToC (where I want it) and the ncx jump-points everyone seems to like. Then I yank that html ToC out of the ePub and tweak the OPF file. Jon (and anyone else who doesn't like ePubs with internal AND external ToC's can do their "happy, happy... joy, joy" dance.

Problem solved... without inventing bugs that don't exist.

Last edited by DiapDealer; 07-15-2011 at 11:01 AM.
DiapDealer is offline   Reply With Quote
Advert
Old 07-15-2011, 11:11 AM   #6
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: 73,835
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by DiapDealer View Post
I just knew this question would draw you out of the woodwork.
There are no bugs here, Jon. Only personal preferences (placement) and what you like/don't like (two ToCs)... and differing workflow practices. Why would you even care how mobi's are made?
I care how Mobipocket eBooks are made because with the issues in putting the ToC at the back using toc.ncx, it's causing the publishers to put in a linked ToC internally which is not wanted and not needed. Yes, this is a software issue. Amazon isn't fixing their software and Calibre isn;t being fixed. So when ePub > Mobi happens, if there is no internal ToC, the ToC ends up at the back of the Mobi and this is not how most people reading Mobi want it. This is not how amazon wants it. So those of us using ePub get stuck with a ToC that's not needed and not wanted when we have a perfectly good external ToC.


Quote:
My own workflow is to build an ePub with a Toc (html) inside the ePub—exactly where I want it; front, back, middle. Then I convert the ePub to mobi... I get a happy mobi with a ToC (where I want it) and the ncx jump-points everyone seems to like. Then I yank that html ToC out of the ePub and tweak the OPF file. Jon (and anyone else who doesn't like ePubs with internal AND external ToC's can do their "happy, happy... joy, joy" dance.

Problem solved... without inventing bugs that don't exist.
That is a very nice solution to the problem. But most publishers don't do that and some of them actually link the chapter headers back to the internal ToC. That is just wrong. This is ePub, not Mobipocket. If the conversion software allowed specifying where the internal ToC (toc.ncx > internal ToC0 gets put, then we'd not have to put up with internal ToC from publishers that don't get it.
JSWolf is offline   Reply With Quote
Old 07-15-2011, 11:14 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: 27,532
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
some of them actually link the chapter headers back to the internal ToC. That is just wrong.
Correction: You just don't like it. It's too subjective for a right/wrong label.
DiapDealer is offline   Reply With Quote
Old 07-15-2011, 11:23 AM   #8
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: 73,835
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by DiapDealer View Post
Correction: You just don't like it. It's too subjective for a right/wrong label.
But doing it that way is not how it should be done. I know it's subjective. But ePub was designed with toc.ncx in mind as THE ToC. If publisher are going to do nonsence like internal ToC and chapter headers linked to the internal ToC, we may as well give up ePub and go back to text files. Hell, we may as well go back to writing on cave walls if the publishers are going to act like cavemen.

But seriously, it's a step backward to have an internal ToC for ePub. It's two steps backwards to then link the chapter headers to the internal ToC. The idea is to do away with Mobipocket since it's three steps back from ePub. Microsoft realized that ePub was better then MS Reader and that's why MS Reader is now dead. If it wasn't for the agency model, eReader would be dead too. But because of the agency model, it's what Fictionwise offers with DRM. Amazon is the only hold-out for Mobipocket. Yes, I know they own Mobipocket. But it's time to realize it's an obsolete format and lay it to rest.

The next step is to then do away with DRM so all ePub is the same (Apple doesn't count as it's not really true ePub).
JSWolf is offline   Reply With Quote
Old 07-15-2011, 11:35 AM   #9
Lazer
Groupie
Lazer ought to be getting tired of karma fortunes by now.Lazer ought to be getting tired of karma fortunes by now.Lazer ought to be getting tired of karma fortunes by now.Lazer ought to be getting tired of karma fortunes by now.Lazer ought to be getting tired of karma fortunes by now.Lazer ought to be getting tired of karma fortunes by now.Lazer ought to be getting tired of karma fortunes by now.Lazer ought to be getting tired of karma fortunes by now.Lazer ought to be getting tired of karma fortunes by now.Lazer ought to be getting tired of karma fortunes by now.Lazer ought to be getting tired of karma fortunes by now.
 
Lazer's Avatar
 
Posts: 174
Karma: 1498858
Join Date: Aug 2010
Device: Kindle 3
I wrote a forensic manual that simply HAD to have an "active" TOC for the book to be of any use and am quite happy with the way the ebook functions.

If you really wanted to write a book with a simple TOC that doesn't work as links to actual chapters you could certainly include it in the start of your book but I'd assume you'd also want the TOC.NCX too (as a linking TOC.)

With my book I wanted it to open at the Preface and certainly not at the TOC or metadata for that matter. I'll call it author (or self publisher's) preference. Having the TOC at the end of the book is also a bit of a "summary" for the reader to page through.

Tony Latham
Lazer is offline   Reply With Quote
Old 07-15-2011, 12:22 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: 27,532
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by JSWolf
But ePub was designed with toc.ncx in mind as THE ToC.
Jon, we're talking about creating mobipocket books here. For this particular discussion, just think of the ePub as "source-code" for generating mobi files (either with calibre or Kindlegen).

Are you seriously suggesting that people need to ensure their mobi source code complies to your personal ePub standards? That's just ridiculous. Not to mention presumptuous.

Last edited by DiapDealer; 07-15-2011 at 12:27 PM.
DiapDealer is offline   Reply With Quote
Old 07-15-2011, 01:54 PM   #11
osnova
Kindler of the Flame
osnova ought to be getting tired of karma fortunes by now.osnova ought to be getting tired of karma fortunes by now.osnova ought to be getting tired of karma fortunes by now.osnova ought to be getting tired of karma fortunes by now.osnova ought to be getting tired of karma fortunes by now.osnova ought to be getting tired of karma fortunes by now.osnova ought to be getting tired of karma fortunes by now.osnova ought to be getting tired of karma fortunes by now.osnova ought to be getting tired of karma fortunes by now.osnova ought to be getting tired of karma fortunes by now.osnova ought to be getting tired of karma fortunes by now.
 
osnova's Avatar
 
Posts: 582
Karma: 646016
Join Date: Oct 2009
Location: US of A
Device: K DX,3,KT,KP,KF, KFHD; Nook C, PRS600, iPad, Xoom, N900, N810, Zaurus
Quote:
Originally Posted by JSWolf View Post
a linked ToC internally which is not wanted and not needed.
Just my two cents: I would want both. The internal TOC is a tradition that makes book a book (as well as the title page, chapter division, preface, introduction, etc.). Without it, epub is just some text with navigation. I'll use the external one for convenience but the internal TOC is a must.

I am not a Luddite (see the list of my devices) and always on the lookout how the books can be improved. Even with the change from paper to electronic screen, a book should remain a book (not a twit, email, blog, etc.). It has a long history. It can gain new characteristics (video illustrations, etc.), yet it should be still recognizable.

=====

On another note. With all the talk of the superiority of epub, it does not have the dictionary or internal index support. I am not talking about one default dictionary, I am talking about a format that I can use. Come on, Mobipocket had it years ago. You can do fancy stuff with it (you can insert paradigm wordforms for a headword!)

I also have not seen a good, fast text search implementation (comparable to what Kindle offers). The Nook C only searches forward. The last may be not the format's fault but still.

You can put a gigabyte of structured text into a mobipocket on the Kindle (has been done with Wikipedia and such) and the search, indexing, navigation, etc. works great. Large epubs are slow (even if you do all the tricks). So, for a medium-sized novel, epub is great but for a large reference work it is nowhere near Mobipocket on the Kindle. I would love to see epub develop beyond eye-candy.

Last edited by osnova; 07-15-2011 at 02:31 PM.
osnova is offline   Reply With Quote
Old 07-29-2011, 04:05 AM   #12
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: 73,835
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by DiapDealer View Post
Jon, we're talking about creating mobipocket books here. For this particular discussion, just think of the ePub as "source-code" for generating mobi files (either with calibre or Kindlegen).

Are you seriously suggesting that people need to ensure their mobi source code complies to your personal ePub standards? That's just ridiculous. Not to mention presumptuous.
I'm not asking for my standards. I'm asking for ePub standards. ePub we designed with an external ToC for the express purpose of having an internal ToC.
JSWolf is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Page Mapping Using toc.ncx lorddon ePub 35 01-16-2018 12:18 PM
NCX From Html TOC Unno Kindle Formats 20 09-16-2011 09:31 AM
Toc.ncx question skypilotpete Workshop 3 07-09-2011 07:10 PM
Inline TOC from toc.ncx elmago79 Kindle Formats 38 03-25-2011 12:56 PM
Can you bypass first two items in TOC.ncx? sueneu Kindle Formats 4 07-14-2010 08:36 AM


All times are GMT -4. The time now is 03:57 AM.


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