![]() |
#16 |
Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 629
Karma: 1623086
Join Date: Jan 2012
Device: iPad, iPhone, Nook Simple Touch
|
IIRC, the folder name should also not be there. On OS X, I just do:
Code:
cd extracted_book_directory zip -Xr9D ../filename.epub mimetype * -x .DS_Store BTW, if you want to squeeze an extra few percent from your delivery costs, I highly recommend installing advzip and doing: Code:
advzip --recompress filename.epub |
![]() |
![]() |
![]() |
#17 | |
The Grand Mouse 高貴的老鼠
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 73,620
Karma: 315126578
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
|
Quote:
If you're on OSX, I'm astonished that you're using the command line instead of the easy drag&drop applescript mentioned earlier. |
|
![]() |
![]() |
![]() |
#18 |
Hmm.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 124
Karma: 2016606
Join Date: Oct 2015
Device: Android 4.2 Google Play Reader
|
Shortly after I posted my last post in this thread, my programs stopped running from the flash drive I develop on. The flash drive is only a year old. I tried installing Strawberry Perl and my other tools on 2 more flash drives with the same error: the program just locks up if run from the flash drive.
I'm currently installing all my tools to my c: drive, which seems to work, and leaving my project files on the flash drive. |
![]() |
![]() |
![]() |
#19 | ||
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Quote:
![]() ![]() Quote:
In order to get away with using one command, instead of two, in a shell script, I don't see why you should be making that assumption. Last edited by eschwartz; 12-05-2015 at 07:54 PM. Reason: fixed quote |
||
![]() |
![]() |
![]() |
#20 |
Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 629
Karma: 1623086
Join Date: Jan 2012
Device: iPad, iPhone, Nook Simple Touch
|
|
![]() |
![]() |
![]() |
#21 |
Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 629
Karma: 1623086
Join Date: Jan 2012
Device: iPad, iPhone, Nook Simple Touch
|
It is pretty much guaranteed. The string "application/epub+zip" is only 20 bytes long. Using the DEFLATE algorithm more than doubles its length to 42 bytes. No zip tool worth its weight in manure is going to choose to use the DEFLATE output if doing so would more than double the length of the file.
![]() |
![]() |
![]() |
![]() |
#22 | |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Quote:
But even a zip tool that isn't worth its weight in manure but is technically creating a perfectly valid ZIP, might exist. Since I would anyway suggest scripting the EPUB zipping (much less typing of exclusions plus various magical incantations, and you can pass a directory + auto-name the EPUB), there is no loss in adding an extra line, and it doesn't really take longer to zip... so why rely on "should"s? It is just generally a bad idea to rely on undocumented assumed (rightly so) behavior, but especially when there is literally no downside to being extra careful! |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Validating Epub | Thom* | Editor | 6 | 07-08-2015 04:17 AM |
validating epub fails - how do I correct? | BeccaPrice | ePub | 14 | 06-12-2013 02:01 PM |
Validating epub returns warning | writerkit | Conversion | 2 | 03-30-2013 02:35 AM |
Issues validating EPUB for iPad | godsmac | Calibre | 13 | 06-26-2011 09:02 PM |