View Single Post
Old 08-15-2012, 09:02 PM   #8
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,079
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by bizzybody View Post
I removed the OPF from the zip file and renamed the A9781451637762_toc.htm file to toc.html in the ZIP.

They are NOT "random" html files. They are numbered in ascending order.

A9781451637762___1.htm
A9781451637762___2.htm
A9781451637762___3.htm
through
A9781451637762__91.htm

A program designed to assemble multiple files into a specially formatted container like Mobi or Epub should be able to follow a numerical sequence. That's one of the most basic elements of programming, sorting numerically or alphabetically.

Here's the contents of the toc.html, which displays fine in a browser. Must be something about it that Calibre doesn't like.
The are pseudo-random as the ASCII sort will sort 20 after 2, 80 after 8


Note padding all digits eg 08 will sort properly for 2 digits
theducks is offline   Reply With Quote