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

Go Back   MobileRead Forums > E-Book Software > Calibre > Editor

Notices

Reply
 
Thread Tools Search this Thread
Old 02-24-2015, 08:34 PM   #1
fishmech
Junior Member
fishmech began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Feb 2015
Device: Kindle Voyage
Unhappy Trouble generating working chapters for Kindle

When creating books out of multiple webpages, I often end up having problems getting the table of contents data to work correctly on my Kindle Paperwhite and Voyage. Specifically, it often results in the reader falsely reporting "chapter complete" for the time left in each chapter (which is typically a single original web page) rather than the appropriate reading time. Additionally, the display that normally shows the title of the chapter or the title of the heading in the TOC will instead just display the top entry in the table of contents, when it's working incorrectly.

All this happens despite the actual text rendering fine on the device and being able to at least go between "chapters" correctly through the menu. I don't really understand how to troubleshoot this.
fishmech is offline   Reply With Quote
Old 02-24-2015, 09:28 PM   #2
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Can you attach a sample AZW3 with this problem?
eschwartz is offline   Reply With Quote
Advert
Old 02-24-2015, 09:33 PM   #3
fishmech
Junior Member
fishmech began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Feb 2015
Device: Kindle Voyage
Quote:
Originally Posted by eschwartz View Post
Can you attach a sample AZW3 with this problem?
Yeah, this is an AZW3 that has the problem:
http://fishmech.net/Creepypasta.com%...pasta.com.azw3

And this is an AZW3 that doesn't have the problem, and has the same content as the second half of the first file:
http://fishmech.net/Creepypasta.com%...pasta.com.azw3

Edit: Just to be clear, these both originate from Microsoft Word 2010 DOCX documents, converted to AZW3 using Calibre. I also do some conversion from AZW3 to EPUB for editing things, since while editing AZW3 files directly it'll randomly lose the attribute that allows you to "share" text from the Kindle itself to twitter/goodreads/facebook.

Last edited by fishmech; 02-24-2015 at 10:15 PM.
fishmech is offline   Reply With Quote
Old 02-24-2015, 11:16 PM   #4
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: 45,359
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
This is almost certainly caused by something in the trailing bits at the end of each text record. Unfortunately, that is a part of the mobi format that is the least well understood (it is an absolute nightmare that took me days of reverse engineering). Amazon's engineering really, really sucks. As such the effort to fix issues in it is really not worth it for me. Patches are welcome, but be warned it is not going to be simple to fix.

One thing to check in your input files is that the ToC entries are in correct order and dont have duplicates. That is every toc entry points to some location in the file strictly after the previous entry.
kovidgoyal is offline   Reply With Quote
Old 02-24-2015, 11:20 PM   #5
fishmech
Junior Member
fishmech began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Feb 2015
Device: Kindle Voyage
Quote:
Originally Posted by kovidgoyal View Post
This is almost certainly caused by something in the trailing bits at the end of each text record. Unfortunately, that is a part of the mobi format that is the least well understood (it is an absolute nightmare that took me days of reverse engineering). Amazon's engineering really, really sucks. As such the effort to fix issues in it is really not worth it for me. Patches are welcome, but be warned it is not going to be simple to fix.

One thing to check in your input files is that the ToC entries are in correct order and dont have duplicates. That is every toc entry points to some location in the file strictly after the previous entry.
Where should I look in the text records to try to fix it manually? Would it be in the body text files themselves or in metadata.opf and toc.ncx?
fishmech is offline   Reply With Quote
Advert
Old 02-24-2015, 11:45 PM   #6
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: 45,359
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
This is not something you can fix manually. It's in the binary trailer at the end of every text record in a MOBI/azw3 file.

https://wiki.mobileread.com/wiki/MOBI#Trailing_entries
kovidgoyal is offline   Reply With Quote
Old 02-24-2015, 11:46 PM   #7
fishmech
Junior Member
fishmech began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Feb 2015
Device: Kindle Voyage
Quote:
Originally Posted by kovidgoyal View Post
This is not something you can fix manually. It's in the binary trailer at the end of every text record in a MOBI/azw3 file.

https://wiki.mobileread.com/wiki/MOBI#Trailing_entries
Ah, ok. Thank you for the response.
fishmech is offline   Reply With Quote
Old 02-24-2015, 11:54 PM   #8
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
The ToC entries are of course in the ToC.ncx. You can also use the ToC editor in the calibre ebook-editor.
eschwartz 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
Chapters not working right on Kobo H2O OrangeFlavored Conversion 2 12-06-2014 01:46 PM
Brand new Calibre user - confusion about auto-gen chapters not working nowefg Editor 11 05-16-2014 11:02 AM
Anyone else having trouble with app alarms not working?? Hope Kindle Fire 2 12-09-2011 09:48 PM
TOC - Kindle - Not Generating superted Conversion 2 05-15-2011 07:28 AM
Trouble generating a TOC foghat Calibre 2 05-07-2010 06:00 PM


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


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