Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 01-03-2014, 12:08 AM   #1
dysfunction
Junior Member
dysfunction began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jan 2014
Device: iPhone Kindle app
Multiple HTML files w/ TOC to MOBI, not added in order listed in TOC

I'm trying to convert multiple HTML files to MOBI. I have a Table of Contents that lists the files in the correct order, that looks like this:

<html>
<body>
<h1>Table of Contents</h1>
<p style="text-indent:0pt">
<a href="file1.01.html">Chapter 1.01</a><br>
<a href="file1.02.html">Chapter 1.02</a><br>
...
<a href="file11.01.html">Chapter 11.01</a><br>
...
</p>
</body>
</html>

However after opening the TOC file in Calibre, converting to MOBI, and opening the converted book, I can see the TOC looking correct, but the linked files are not added in that order; for example here the contents of file11.01 are first in the book. I've tried setting the breadth-first search option to no avail, and don't have any other ideas.
dysfunction is offline   Reply With Quote
Old 01-03-2014, 12:12 AM   #2
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: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You need to set the breadth first option *before* importing the html index file into calibre.
kovidgoyal is online now   Reply With Quote
Advert
Old 01-03-2014, 12:22 AM   #3
dysfunction
Junior Member
dysfunction began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jan 2014
Device: iPhone Kindle app
Yes, I did that. Nevermind anyway, I just went and rewrote the script to download these files to write everything into one html file. Thanks.
dysfunction is offline   Reply With Quote
Old 01-03-2014, 12:40 AM   #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: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
If you a re using ebook-convert, as opposed to importing the html into calibre, you need to use the --breadth-first option as the plugin customization has no effect on that.
kovidgoyal is online now   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Kindler previewer not recognizing toc.ncx file, my html toc, or the start point... petercrowell Kindle Formats 2 05-01-2012 08:14 AM
Out of Order Converting HTML Files with a TOC PeterPark Conversion 3 03-03-2012 08:36 PM
Mobi Creator, Word HTML, and TOC schmoe Kindle Formats 1 03-27-2011 07:15 AM
html to MOBI: TOC question robijunior Conversion 2 03-22-2011 02:44 AM
TOC filter and Multiple HTML Files Beedrew Calibre 1 07-20-2010 10:32 PM


All times are GMT -4. The time now is 05:22 AM.


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