Copy link to clipboard
Copied
heeeeeeeeeeeeeeeeelp!
was able to output an InDesign CS4 file to epub. but had to make 1 slight change to CSS... I followed the directions to unzip and made my change. I zipped the files again and changed back to .epub. once I tried to upload to Digital Editions I get the following error message:
document appears to have minor errors that may cause it to be displayed incorrectly. --errorlistchange--
the file would not load at all. I also tried to run it through Calibre first and still would not load.
the same file loads perfectly when I dont unzip it first.
many thanks for your help!
Copy link to clipboard
Copied
This sounds most likely that when you re-zipped the file that you did not get the mimetype file to be uncompressed and to be the first file in the .zip file.
If you are just tweaking a CSS file you will have better luck if instead of re-zip the entire contents you just update the css file that modified. I usually do this by unzipping the .epub file into a new directory (say epub), editing the .css and then updating the .css file in the original .epub. On Mac/*nix this would go like
mkdir epub_contents
cd epub_contents
unzip ../my.epub
edit stylesheet.css
... finish editing...
zip update ../my.epub stylesheet.css
Copy link to clipboard
Copied
thank you Jim for replaying so quickly... Im a little confused.....
Im not sure how to get the mimetype file to be first as the files are in this order (when viewed by "Name"):
META-INF
mimetype
OEBPS
and in the second part to your response, Im not sure how I just edit the CSS with unzipping and rezipping the entire epub file. yes, Im am on a Mac. perhaps you explain the steps more clearly.
thanks again Jim, I really appreciate the help!
Copy link to clipboard
Copied
The usual approach to getting the mimetype to be first is to do the mimetype first in one command, and then to do the rest of the files in a second command:
zip -X0 ../my.epub mimetype
zip -rDX9 ../my.epub * -x mimetype
(again these are Mac/*nix based command lines)
And for just editing the CSS the steps I gave above will work as Terminal commands on Mac. Note for me the "edit" command opens the file in BareBones' excellent text editor TextWrangler (which is available for free)
Copy link to clipboard
Copied
hi Jim
thanks again for replying... I hope you stick with me here... Im still confused. I dont understand Mac based command lines. I zip files by holding down the control key while selecting the epub folder and then selecting the "Create archive of...."
does that help from my end?
thanks Jim
Copy link to clipboard
Copied
Unfortunately to do this correctly, you are going to need to use the Terminal. Or at least I don't know of any 3rd party utilities that'll do this for you, and the built in Mac utilities will not work for this.
Edit: Actually I take that back partially (the bullt in zip utilities are still best used in Termnail). However, you may want to see if eCub helps you out with editing your ePub files: http://www.juliansmart.com/ecub