View Single Post
Old 09-15-2010, 04:14 PM   #13
etienne66
Groupie
etienne66 knows what is on the back of the AURYN.etienne66 knows what is on the back of the AURYN.etienne66 knows what is on the back of the AURYN.etienne66 knows what is on the back of the AURYN.etienne66 knows what is on the back of the AURYN.etienne66 knows what is on the back of the AURYN.etienne66 knows what is on the back of the AURYN.etienne66 knows what is on the back of the AURYN.etienne66 knows what is on the back of the AURYN.etienne66 knows what is on the back of the AURYN.etienne66 knows what is on the back of the AURYN.
 
Posts: 185
Karma: 9832
Join Date: Jul 2009
Location: Texas, US
Device: Kindle 2, PRS-600 Black, PRS-650 Red, Adam w/ Pixel Qi(pre-ordered)
Quote:
Originally Posted by Amalthia View Post
I'm a bit confused by what you mean first? Like first in the folder with all the other contents? or first in the OPF file?
If you find this confusing, I would not worry about how to do it manually, but to use Calibre or Sigil to make the necessary changes like the others have already mentioned. Both programs will make sure the file is compressed properly.

However to explain the technical details:

The mimetype file is not supposed to be listed in the OPF file.

The mimetype file has to be the first file in the epub file and uncompressed. If you were to look at the epub file from a binary level. It would be the first file. This is so that it makes it quick to identify this zip file as an epub file. If you look in the mimetype file with notepad or some other text editor you will see the text application/epub+zip. You don't need to be able to unzip a file to identify it as an epub. This text will always be a set number of bytes from the beginning of the file and because it is not compressed it is easily identified.

You could open up a epub file with notepad, most of the text would be unreadable, but you wold notice the application/epub+zip clearly visible at the same spot in every file.

Etienne66
etienne66 is offline   Reply With Quote