Quote:
Originally Posted by bizzybody
It's not *difficult* to write code to correctly order numbers that don't have leading zeros, one just has to decide you're going to write your sorting code to handle either case.
'Course that doesn't explain how Calibre "sorted" the files starting at 30, descended to 1 then back up.
|
It is not up to calibre to figure out the proper order for a html book, it is up to the TOC, Index or whatever you choose to call the main html page. When you have a zip with a bunch of html files any file can be the index, toc or main page there is no standard for naming. So any htmls already zipped up ARE "random" html files, since calibre has no idea which file controls the rest.
Quote:
Originally Posted by bizzybody
Here's the contents of the toc.html, which displays fine in a browser. Must be something about it that Calibre doesn't like.
|
If you dumped all of the files from your zip file into a folder. Checked out the toc in a browser to ensure it all works fine. Once verified that it is working from a completely local setup, simply add the toc.html to calibre. Calibre will gather up all associated files as described in the TOC and zip them up as the book is added to calibre and everything would work perfect.
As Kovid suggested you might want to
reread this section of the FAQ. Specifically the last line where it says "Then just
add this HTML file to the GUI." The FAQ does not say to add the revised html to your zip file and then add that zip file to calibre.