View Single Post
Old 12-29-2011, 06:21 PM   #21
rkomar
Wizard
rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.
 
Posts: 2,986
Karma: 18343081
Join Date: Oct 2010
Location: Sudbury, ON, Canada
Device: PRS-505, PB 902, PRS-T1, PB 623, PB 840, PB 633
Quote:
Originally Posted by rkomar View Post
There is another complication in that EPUB files have to be zipped in a special way. The "mimetype" file should be first and uncompressed, and the rest of the files can be compressed (I'm not sure if they have to be in any particular order).
Just played around with zipping an epub by hand and found that the following works (from inside the folder with the book contents):

Code:
zip mybook.epub -0 mimetype
zip -r mybook.epub * -x mimetype
Of course, replace mybook.epub with whatever name you want. Hope this helps someone wanting to make simple changes to epubs.
rkomar is offline   Reply With Quote