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

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 03-29-2011, 03:58 PM   #1
hmf
Enthusiast
hmf doesn't litterhmf doesn't litter
 
Posts: 27
Karma: 108
Join Date: Oct 2010
Device: Kindle
Missing Table of Contents

I've got some epubs with working Table of Contents. When I add them to Calibre the TOC is not present . If I drag it directly to my E-reader the TOC is present. Why does Calibre seem to delete the TOC without any action on my part...just adding it to Calibre deletes it. It does the same thing with Mobis. Is there a setting I enabled that makes this happen?
hmf is offline   Reply With Quote
Old 03-29-2011, 04:04 PM   #2
Manichean
Wizard
Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!
 
Manichean's Avatar
 
Posts: 3,130
Karma: 80520
Join Date: Feb 2008
Location: Germany
Device: Cybook Gen3
How exactly did you determine that they have no TOC after you've added them to Calibre? Did you do anything except import them, an ePub->ePub conversion maybe?
The only thing Calibre does when adding a file to the library is copying that file into the folder and reading its metadata, so I highly doubt that only adding would cause this, except if something is horribly broken.
Manichean is offline   Reply With Quote
 
Advertisement
Old 03-29-2011, 04:11 PM   #3
hmf
Enthusiast
hmf doesn't litterhmf doesn't litter
 
Posts: 27
Karma: 108
Join Date: Oct 2010
Device: Kindle
I've opened them in Sigil, and loaded them on my e-reader. Neither show the TOC after simply adding the book to Calibre. As noted earlier dragging and dropping the file to my reader the TOC shows up. This is on a Kindle and the Chapter markings are not present on the Progress bar when using Calibre.

Moderator Notice
Oops, accidental edit removed

Last edited by theducks; 03-29-2011 at 09:35 PM.
hmf is offline   Reply With Quote
Old 03-29-2011, 04:48 PM   #4
itimpi
Wizard
itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.
 
Posts: 4,107
Karma: 780247
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
The moment you open the file is Sigil it will attempt to rebuild your table of contents. Your test would only be valid if you added the book to Calibre and then tried it on your device.

The TOC should be unchanged as when you add an epub book to calibre it simply copies it into its library area and makes no change to it.
itimpi is offline   Reply With Quote
Old 03-29-2011, 04:50 PM   #5
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 26,449
Karma: 5383257
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Umm, in any case how are you adding epubs directly to a Kindle?
kovidgoyal is offline   Reply With Quote
Old 03-29-2011, 04:51 PM   #6
Manichean
Wizard
Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!
 
Manichean's Avatar
 
Posts: 3,130
Karma: 80520
Join Date: Feb 2008
Location: Germany
Device: Cybook Gen3
There's some discontinuity there- you're saying that you've opened the book in Sigil, and next you're talking about chapter marks on the Kindle. Sigil only opens ePub books, and the Kindle only opens MOBI books. What happened between those two steps?
Manichean is offline   Reply With Quote
Old 03-29-2011, 05:03 PM   #7
hmf
Enthusiast
hmf doesn't litterhmf doesn't litter
 
Posts: 27
Karma: 108
Join Date: Oct 2010
Device: Kindle
Sorry for not being precise.
Kovid-I dragged and dropped the file to the Documents folder on the Kindle.
Manichean-If I open the file directly from Sigil the TOC shows up on the left side as well as in the TOC Editor. Then if I add the file to Calibre and then open the file in my Calibre library with Sigil the TOC is gone from the left side as well as any entries in the TOC Editor.
Converting the epub to mobi does nothing with the TOC. In other words its not there.
Very strange behavior to say the least.
hmf is offline   Reply With Quote
Old 03-29-2011, 05:09 PM   #8
Manichean
Wizard
Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!
 
Manichean's Avatar
 
Posts: 3,130
Karma: 80520
Join Date: Feb 2008
Location: Germany
Device: Cybook Gen3
Quote:
Originally Posted by hmf View Post
Kovid-I dragged and dropped the file to the Documents folder on the Kindle.
It shouldn't be possible to open the file if you're talking about the original ePub format book here. The Kindle isn't able to read ePubs.
(The original format is ePub, right?)

Quote:
Manichean-If I open the file directly from Sigil the TOC shows up on the left side as well as in the TOC Editor. Then if I add the file to Calibre and then open the file in my Calibre library with Sigil the TOC is gone from the left side as well as any entries in the TOC Editor.
I don't know enough about Sigil to comment on that, but I still highly doubt that importing the file into Calibre could somehow wipe out the TOC. Importing the file is really all you do? After you've opened the file in Sigil the first time, do you, by any chance, save it before closing and importing?

Quote:
Converting the epub to mobi does nothing with the TOC. In other words its not there.
This is rather unsurprising, depending on the XPath expressions you set in chapter detection- if there is no TOC in the file, it can, of course, not be converted.
Manichean is offline   Reply With Quote
Old 03-29-2011, 05:13 PM   #9
hmf
Enthusiast
hmf doesn't litterhmf doesn't litter
 
Posts: 27
Karma: 108
Join Date: Oct 2010
Device: Kindle
Oops sorry...I have 2 versions of the book..in epub and mobi. If I drag the mobi version to my kindle the TOC markings are there. If I add the mobi to Calibre the TOC markings disappear when adding the mobi from Calibre (without any further conversion). Hope that's clear.
The same behavior as with the epub version.

Last edited by hmf; 03-29-2011 at 05:17 PM.
hmf is offline   Reply With Quote
Old 03-29-2011, 09:36 PM   #10
theducks
Grand Sorcerer
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: 15,284
Karma: 6022733
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by hmf View Post
I've opened them in Sigil, and loaded them on my e-reader. Neither show the TOC after simply adding the book to Calibre. As noted earlier dragging and dropping the file to my reader the TOC shows up. This is on a Kindle and the Chapter markings are not present on the Progress bar when using Calibre.
Sigil 3.x trashes TOC's that are not built solely from H# tags
Sigil 4 (now on beta) will allow existing TOC to be maintain (but you will have to do the edit yourself if you re-arrange the files in the EPUB)
theducks is offline   Reply With Quote
Old 03-30-2011, 12:12 AM   #11
ldolse
Wizard
ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.
 
Posts: 1,337
Karma: 123455
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
Quote:
Originally Posted by hmf View Post
Oops sorry...I have 2 versions of the book..in epub and mobi. If I drag the mobi version to my kindle the TOC markings are there. If I add the mobi to Calibre the TOC markings disappear when adding the mobi from Calibre (without any further conversion). Hope that's clear.
The same behavior as with the epub version.
You continue to be clear as mud. Calibre won't delete a TOC of an already created file using any basic library management function. You mention having an epub and a mobi, but you make no mention of how you got two different formats, or what Sigil has to do with the process, which you already mention using.

Here are the basics -

1. Calibre will use the existing TOC when doing a conversion from epub->mobi or mobi->epub. If the TOC has been trashed then Calibre may attempt to autodetect/auto-generate a new one, but this will often fail unless you've properly configured it. Based on this thread it's highly unlikely you've configured the detection.

2. Opening an epub in Sigil 0.3.x will destroy your existing TOC and build a new one. With many ebooks the automatically generated TOC that Sigil creates will have no content, i.e. Sigil destroys the TOC. Sigil beta will preserve the TOC as theducks mentioned.

If you used Sigil and this happened this brings you back to point 1.

Last edited by ldolse; 03-30-2011 at 12:17 AM.
ldolse is offline   Reply With Quote
Old 03-30-2011, 02:53 AM   #12
hmf
Enthusiast
hmf doesn't litterhmf doesn't litter
 
Posts: 27
Karma: 108
Join Date: Oct 2010
Device: Kindle
Sorry for being so imprecise in my explanations but all I'm doing is adding the book to Calibre. Then opening the added book in Sigil 4 beta. No TOC...The same book if opened in Sigil without first adding to Calibre show the Chapters and TOC.
Just to check i've got a mobi file of the same book. (I downloaded two copies of the same book in different formats.) If I load it directly in my Kindle the Chapter markings are there. If I add the book to Calibre and then load it to the Kindle from Calibre the Chapter marklings disappear.
It seems the act of loading the book into Calibre affects the TOC despite what you say. Could it be a setting in Calibre I've overlooked or some interaction with a plugin I've added. I know this is grasping at straws but I can't seem to resolve this issue.

Last edited by hmf; 03-30-2011 at 03:19 AM.
hmf is offline   Reply With Quote
Old 03-30-2011, 03:04 AM   #13
cybmole
Wizard
cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.
 
Posts: 2,997
Karma: 1285294
Join Date: Sep 2010
Device: Kobo aura HD, Kobo Arc, Kindle Fire HDX 8.9 , Kindle for PC
Quote:
Originally Posted by hmf View Post
(I downloaded two copies of the same book in different formats.).
and there we have it - your 2 downloads are clearly not the same, even if they were bundled together, they may be of the same book text but features like TOC are not the same in both format downloads. not calibre's fault.

suggest you add only the epub version to calibre - fix it up with sigil or via an epub to epub conversion in calibre with various boxes ticked. once your epub is good to go with with all bells n whistles working, then convert it to mobi
cybmole is offline   Reply With Quote
Old 03-30-2011, 03:14 AM   #14
hmf
Enthusiast
hmf doesn't litterhmf doesn't litter
 
Posts: 27
Karma: 108
Join Date: Oct 2010
Device: Kindle
Huh..?? They both show the TOC and Chapters...the epub in Sigil and the mobi on my Kindle. While they may not be exactly the same their basic character...showing the TOC and chapters in Sigil and the Kindle respectively speak to that. Intuitively I know that Calibre should not do what its doing but it is. (If someone has access to Demonoid I can direct you to the book in question. I hope this isn't improper.)

What's even stranger...If I save the book to Disk and open the saved book the TOC and Chapters suddenly reappear. The same file if (in the Calibre library, if opened in Sigil do not show the Chapters or TOC in the editor.

Last edited by hmf; 03-30-2011 at 03:28 AM.
hmf is offline   Reply With Quote
Old 03-30-2011, 04:03 AM   #15
ldolse
Wizard
ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.
 
Posts: 1,337
Karma: 123455
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
You are confusing the issue and this forum's ability to support you if you are discussing epub files and Sigil if you're only reading original mobi files on your Kindle. Cybmole is correct that the two different formats are entirely unrelated to one another, it doesn't matter what you see that's 'similar'.

The only theory I can come up with is you bought a book on Amazon which contains a TOC. Possibly you didn't understand how to remove the DRM or get that into your local Calibre library so you downloaded epub and mobi copies from the Darknet. Darknet does not equal Retail - they are not the same thing at all in most cases. Of course I'm just making up theories since you still haven't provided any of this sort of detail.

If you want help you need to start describing what happens from A to Z (including how you got the books and steps taken to transfer them, etc), and leave out extraneous details like what alternative ebook downloads in other formats look like.


on a side note, based on your descriptions of Sigil's GUI it's fairly clear you don't have a good grasp of what an epub TOC is. The left hand side pane of Sigil is not a 'TOC' - an epub is made up of many files and the left hand side shows the file list.
ldolse 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
Table of Contents taraboom11 Sigil 20 04-30-2011 12:18 PM
Table of Contents ucoa Calibre 1 01-07-2011 10:01 PM
iBooks, Table of Contents, Missing Cover image. Daddy Warpig Apple Devices 2 04-15-2010 11:09 AM
Help with my Table of Contents Skylinefranc Calibre 0 03-19-2010 01:55 AM
only the table of contents wang960 Sony Reader 3 08-29-2008 01:45 PM


All times are GMT -4. The time now is 06:46 AM.


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