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

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

Notices

Reply
 
Thread Tools Search this Thread
Old 01-03-2014, 01: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, 01: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: 33,618
Karma: 10209576
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 offline   Reply With Quote
Advert
Old 01-03-2014, 01: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, 01: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: 33,618
Karma: 10209576
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 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
Kindler previewer not recognizing toc.ncx file, my html toc, or the start point... petercrowell Kindle Formats 2 05-01-2012 09:14 AM
Out of Order Converting HTML Files with a TOC PeterPark Conversion 3 03-03-2012 09:36 PM
Mobi Creator, Word HTML, and TOC schmoe Kindle Formats 1 03-27-2011 08:15 AM
html to MOBI: TOC question robijunior Conversion 2 03-22-2011 03:44 AM
TOC filter and Multiple HTML Files Beedrew Calibre 1 07-20-2010 11:32 PM


All times are GMT -4. The time now is 11:51 AM.


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