View Single Post
Old 02-17-2010, 05:17 PM   #622
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,937
Karma: 6361444
Join Date: Nov 2009
Device: many
Hi,

You ran into the bad zip format where the internal name for a file and the central directory name for a file differed.

You should **NOT** have renamed

OPS/xhtml/chapter52.html

to

OPS/xhtml/chapter52.htmr

The first name was correct, it just did not match the name used in either the central directory of the zip archive or the local name in the zip archive. To fix this you simply have to put the right name on the file and properly rezip things (this time without the mistake between the two names for a file inside the zip archive).


So start with the original copy of the book, unzip it using an unzip tool.

If the file is called OPS/xhtml/chapter52.html then the right name was chosen for the file and all is well. Do not rename it.

Simply (and correctly - neither the mimetype nor the info on encryption should be compressed) rezip the archive and now if the zip software you have is correct, you should have the central name is the zip archive match the local name in the zip archive and both should be chapter52.html.

This happens on of the time under Mac OSX so if I double-click the zip archive it will unpack things to the correct name. Then I think someone (Paul?) has a re-zipping tools that will properly recreate the book zip archive.

Hope this helps,

KevinH
KevinH is offline   Reply With Quote