View Single Post
Old 08-30-2020, 06:01 PM   #1
amckenzie4
Junior Member
amckenzie4 began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Aug 2020
Device: Kindle
Importing HTML files with the wrong chapter order

Hey folks. I've just created a few books out of HTML files, and the chapters come out in the wrong order. What I wind up with is a MOBI or EPUB book where the first page is the ToC I created, but the chapters are out of order. If I delete the MOBI/EPUB version and reconvert, the chapters still won't be in order, but they may be in a different order from the first time I tried. Fascinatingly, the ToC links work correctly.

Here's my process:

1) Create the individual HTML files, with no internal links.
2) Create a table of contents file called index.html, with links to the chapters in order. Something like

Code:
<html>
<body>
<a href="Chapter One.html">Chapter 1</a></br>
<a href="Chapter Two.html">Chapter 2</a></br>
...etc
</body>
</html>
3) Confirm I've actually spelled everything right and that the index.html file works correctly in a browser.
4) In Calibre, use the "Add Books" button to add the book by selecting the index.html file.
5) Use the "Convert Books" button to convert to Mobi.

I get the same result when converting to ePub. My current workaround is to first convert to ePub, use the book editing tool to manually arrange the chapters, and then convert to MOBI. it works, but it's really inefficient, and I could swear this used to work the way I expected.

Any advice?
amckenzie4 is offline   Reply With Quote