Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 09-29-2012, 02:24 PM   #1
djstormer
Member
djstormer began at the beginning.
 
djstormer's Avatar
 
Posts: 18
Karma: 10
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.
djstormer is offline   Reply With Quote
Old 09-29-2012, 03:28 PM   #2
Doitsu
Wizard
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 1,902
Karma: 4632610
Join Date: Dec 2010
Device: Kindle PW2
7Zip is a great tool, but in my experience, you cannot use it to modify files in an .epub.
Try ePubPack instead or simply open and save your book with Sigil. (Since Sigil will change your folder structure, don't use it, if you must maintain your current folder structure.)
Doitsu is offline   Reply With Quote
Old 09-29-2012, 05:43 PM   #3
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 8,916
Karma: 40404040
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
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.
DiapDealer is online now   Reply With Quote
Old 09-29-2012, 08:45 PM   #4
Freeshadow
temp. out of service
Freeshadow ought to be getting tired of karma fortunes by now.Freeshadow ought to be getting tired of karma fortunes by now.Freeshadow ought to be getting tired of karma fortunes by now.Freeshadow ought to be getting tired of karma fortunes by now.Freeshadow ought to be getting tired of karma fortunes by now.Freeshadow ought to be getting tired of karma fortunes by now.Freeshadow ought to be getting tired of karma fortunes by now.Freeshadow ought to be getting tired of karma fortunes by now.Freeshadow ought to be getting tired of karma fortunes by now.Freeshadow ought to be getting tired of karma fortunes by now.Freeshadow ought to be getting tired of karma fortunes by now.
 
Posts: 2,255
Karma: 12572656
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.
Freeshadow is offline   Reply With Quote
Reply

Tags
command line, compression, epub, mimetype, zip

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy data from Title field to IDs field rlh3 Library Management 9 09-24-2012 08:12 AM
Saved Search field length size Sabardeyn Library Management 1 11-12-2011 09:36 PM
Default value for read field (Yes/No-field) opitzs Library Management 3 11-09-2011 07:17 AM
Regex Help - Add Book - Insert Filename into Custom Field nynaevelan Library Management 3 10-12-2011 01:14 PM
Filename length LGN Calibre 8 10-20-2010 11:48 PM


All times are GMT -4. The time now is 11:46 AM.


MobileRead.com is a privately owned, operated and funded community.