|09-29-2012, 03:24 PM||#1|
Join Date: Dec 2011
Location: Tokyo, Japan
Device: Kindle 3, iPad
Field length for first filename too long
I am working through the creation of my first epub file and am at the stage of testing it using http://validator.idpf.org/
One error I keep getting is this:
Extra field length for first filename must be 0, but was [BIG NUMBER]!
From what I've read, this is because one of the two folders in the .zip archive is getting read before the mimetype file. So... I'm trying to use 7-Zip via the command line, because using 7-Zip that way (probably command 'x') looks likely to be able to preserve the order in which the files & folders were added to the zip archive, i.e. keep mimetype at the top.
However - a whole new problem - I can't get the command prompt to do anything, even after having configured it to open directly in the folder of my choice.
I'm feeling stuck here. There must be a way of getting the mimetype file to get read first - and I would really appreciate it if anyone who's had the same problem could let me know.
|09-29-2012, 04:28 PM||#2|
Join Date: Dec 2010
Device: Kindle 3
|09-29-2012, 06:43 PM||#3|
Join Date: Jan 2010
Device: Kindle Fire HD, Kindle 2
Keep in mind that the mimetype file must be uncompressed in the zip archive as well as first. In my experience, there's very few "standard" archiving programs that give you enough control to guarantee everything gets put in the archive correctly (without jumping through a variety of hoops). It's best to use something specifically designed for ePubs. I've never used the one Doitsu mentioned, but it looks like it would do the trick. There's also an applescript floating around here somewhere that will do the job for OS X users.
|09-29-2012, 09:45 PM||#4|
temp. out of service
Join Date: May 2010
Location: Duisburg (DE)
Device: BeBook mini
As it was pointed out before, recompression of epubs is best done with tools which assure correct treatment of the mimetype file.
If you want to profit from 7zips higher zip compression use http://en.wikipedia.org/wiki/AdvanceCOMP on the finished epub. As it only works with compressed dataparts of the zip only it won't mess the uncompressed mimetype file.
|command line, compression, epub, mimetype, zip|
|Thread Tools||Search this Thread|
|Thread||Thread Starter||Forum||Replies||Last Post|
|Copy data from Title field to IDs field||rlh3||Library Management||9||09-24-2012 09:12 AM|
|Saved Search field length size||Sabardeyn||Library Management||1||11-12-2011 10:36 PM|
|Default value for read field (Yes/No-field)||opitzs||Library Management||3||11-09-2011 08:17 AM|
|Regex Help - Add Book - Insert Filename into Custom Field||nynaevelan||Library Management||3||10-12-2011 02:14 PM|
|Filename length||LGN||Calibre||8||10-21-2010 12:48 AM|