View Single Post
Old 08-16-2012, 01:35 AM   #10
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,897
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
Quote:
Originally Posted by bizzybody View Post
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 View Post
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.

Last edited by DoctorOhh; 08-16-2012 at 01:40 AM.
DoctorOhh is offline   Reply With Quote