MobileRead Forums

MobileRead Forums (https://www.mobileread.com/forums/index.php)
-   Conversion (https://www.mobileread.com/forums/forumdisplay.php?f=235)
-   -   Multiple HTML files w/ TOC to MOBI, not added in order listed in TOC (https://www.mobileread.com/forums/showthread.php?t=230591)

dysfunction 01-03-2014 01:08 AM

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.

kovidgoyal 01-03-2014 01:12 AM

You need to set the breadth first option *before* importing the html index file into calibre.

dysfunction 01-03-2014 01:22 AM

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.

kovidgoyal 01-03-2014 01:40 AM

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.


All times are GMT -4. The time now is 10:56 PM.

Powered by: vBulletin
Copyright ©2000 - 3.8.5, Jelsoft Enterprises Ltd.
MobileRead.com is a privately owned, operated and funded community.