View Single Post
Old 02-27-2013, 04:13 AM   #30
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,561
Karma: 20150435
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by dgatwood View Post
Those flags (-X -r -9 -D and "-x .DS_Store") are pretty much required for proper spec conformance.
Not really. -r is, because otherwise the files in the subdirectories are not stored. But the rest just make the epub file somewhat smaller. -9 simply uses highest compression level, -D does not include entries for the directories themself, and -X does not store additional file attributes. As far as I know, neither -X nor -D are required for ePub compliance. And "-x .DS_Store" may be required only if .DS_Store files exist (in a Mac?)

Anyway, for the problem is here, which is adding a specific file to an existing ePub, creating one from scratch is a bit of an overkill...
Jellby is offline   Reply With Quote