View Single Post
Old 01-22-2010, 02:30 PM   #26
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,558
Karma: 19620479
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by Peter Sorotokin View Post
This is all documented in EPUB Best Practices Guide (http://www.adobe.com/devnet/digitalpublishing/):
Of course, I had read it some time ago, but it didn't register in my head

Quote:
It may be "obvious" to you that uncompressed size should be used, but it would not work reliably.
What is obvious to me is that page numbers are not reliable anyway Just like for paper books, page numbers are only useful if you refer to a specific particular edition of a book, or if you keep them for your own private use, like estimating how long it will take you to read a book or finish a chapter.

But... doesn't the zip file store (or isn't it "easy" to get) the uncompressed size of the files? I think I usually see the uncompressed size in GUI zip apps, and it doesn't seem like they really uncompress the files. Or maybe is it because I strip all permissions and such when zipping?

Quote:
Originally Posted by DaleDe View Post
There is a discrepancy between step 2 and 3. In 2 you say bytes and in 3 you say unicode characters.
But step 2 refers to the compressed size, and there are no characters there, only bytes. With the compressed size you calculate the number of pages. Then, after you uncompress the resource (file), you can place the pagebreaks by distributing the characters.
Jellby is offline   Reply With Quote