View Full Version : Epub Error - newbie needs help


mathisbrogers
05-14-2011, 09:58 PM
Hi, all.
I've published my eBooks through Smashwords.com and their "meatgrinder" program converted them to epub format for me. I have no idea what epub means, but it's important for ereaders.

Now they're telling me there's an error so it can't be sent to Apple.

So, I downloaded the epub file and ran it through http://threepress.org/document/epub-validate/

And it tells me: 5-the-wrong-crowd.epub is not valid or contains warnings!

ERROR: 5-the-wrong-crowd.epub/tmp_ed699923f69d4422a3343109d29b67dc_gqAjuG.ch.fix ed.fc.tidied.stylehacked.xfixed.html(3707): attribute "width" not allowed here; expected attribute "abbr", "align", "axis", "char", "charoff", "class", "colspan", "dir", "headers", "id", "rowspan", "scope", "style", "title", "valign" or "xml:lang"
ERROR: 5-the-wrong-crowd.epub/tmp_ed699923f69d4422a3343109d29b67dc_gqAjuG.ch.fix ed.fc.tidied.stylehacked.xfixed.html(3711): attribute "width" not allowed here; expected attribute "abbr", "align", "axis", "char", "charoff", "class", "colspan", "dir", "headers", "id", "rowspan", "scope", "style", "title", "valign" or "xml:lang"
Check finished with warnings or errors!

I used Word 2007 to create the file and saved it in DOC format 1998-2003 compatible. There are no images in the file and nothing that has to do with "width" at all. So how do I get rid of these "width" errors?

I followed their instructions on this one, even doing the "Nuclear Method" (http://www.smashwords.com/epubcheck) and uploaded again, then downloaded what it created and ran it through the Epub Validate thing again and it gave me the same errors. The "Width" error isn't listed in anything they mention on their site.

I published 17 eBooks, so the others will probably be needing the same thing in the not-to-distant future. This is just the first one they've tried to send, I guess, because I used the same Style for all of them.

Thanks for any help anyone might be able to supply. Oh, and the only document that I have access to is the .doc file in Word 2007.

Mathis....

mathisbrogers
05-14-2011, 11:26 PM
FYI,
I still haven't figured anything out about the "width" error, but the good news is that I did run the rest of my eBooks through the validate thing and they're okay. So this is the only eBook I'm having a problem with.

Mathis...

DaleDe
05-16-2011, 12:49 PM
FYI,
I still haven't figured anything out about the "width" error, but the good news is that I did run the rest of my eBooks through the validate thing and they're okay. So this is the only eBook I'm having a problem with.

Mathis...

the message is very clear. You will need to remove the width attribute and accomplish whatever it was doing a different way. I suggest you download Sigil (available in a separate forum here at MobileRead). It is a direct ePUB editor and you can use it to fix the problem you are having with the book.

Dale

mathisbrogers
05-20-2011, 12:46 PM
Thank you, Dale. I understood the error, I just didn't know how to get into the epub file to correct it.

I have corrected it.

Thanks again.
Mathis...

iambsatyam
05-31-2011, 04:47 AM
I cann't figure out about the ERROR: C:\Documents and Settings\Administrator\Desktop\BW Work\out\one.epub: length of first filename in archive must be 8, but was 23

Toxaris
05-31-2011, 12:27 PM
Wasn't there something about epubcheck not being able to handle spaces in filenames? Not quite sure, never use epubcheck anymore.

Run it through Flightcrew to see if you have any issues.

DaleDe
05-31-2011, 01:48 PM
I cann't figure out about the ERROR: C:\Documents and Settings\Administrator\Desktop\BW Work\out\one.epub: length of first filename in archive must be 8, but was 23

The first filename in any ePub file must be the mimetype. In your case this is not the first file or you mistyped it. Opening the file in Sigil or Calibre and regenerating will likely fix this.

Dale

pholy
05-31-2011, 11:58 PM
I get the length=23 error when I forget to use the -X (or --no-extra) option to exclude extra file attributes. In Linux, you can do 'man zip' or 'zip -h' or 'zip -?' or -last resort - 'zip -h2' if they think -X is one of the obscure options :)