View Full Version : ePub passes validation - won't upload to Nook Press


lissie
05-04-2013, 07:13 PM
OK this one has me stumped. I have a book created the html by hand, created the mobi, and then used calibre to convert to epub. This approach has worked fine in the past and the books have been accepted with Smashwords and pass http://validator.idpf.org/application/validate

However when the book is uploaded to NookPress - I am getting an error of:
..../titlepage.xhtml(14): bad value for attribute "preserveAspectRatio"

Any ideas? There are a number of images in the book - but the cover seems to be the problem - the cover image is approx 1400pxX1800px and I get the same error with or without it

DaleDe
05-04-2013, 07:45 PM
what value did you give preserveAspectRatio? The error message is quite clear.

Dale

lissie
05-04-2013, 08:30 PM
Calibre appears to have added:
<svg xmlns="http://www.w3.org/2000/svg" height="100%" preserveAspectRatio="none" version="1.1" viewBox="0 0 566 724" width="100%" xmlns:xlink="http://www.w3.org/1999/xlink">

What I don't understand is how the epub can pass the validator and then not upload to Nook as an ePub? Surely a validated ePub should work for any retailor that allows ePubs?

JSWolf
05-04-2013, 09:11 PM
You do not want to sell an ePub that has a cover where the aspect ratio is off.

So what you should have is...

preserveAspectRatio="xMidYMid meet"

And if that doesn't work, take out preserveAspectRatio altogether as you don't actually need it.

lissie
05-05-2013, 02:04 AM
That did work thanks! I ended up spending a few hours having to change the NCX file though and re-doing stuff in Sigil Most annoying

eping
05-07-2013, 10:36 PM
What I don't understand is how the epub can pass the validator and then not upload to Nook as an ePub? Surely a validated ePub should work for any retailor that allows ePubs?

Because the industry is in disarray, no unified standard.
That's why ePub can not surpass Amazon's Kindel format, mobi.

And epubcheck is intolerant, retailors are more intolerant.
there's no mobicheck, and we never heard PDF check.
Making publishing difficult is the ugly side of ADE and epubcheck.

lissie
05-07-2013, 10:38 PM
I disagree eping - there is certainly a MOBI check - called Kindle Previewer - it gives detailed reasons about why your file failed to compile. Upload an incorrect pdf to Createspace and you'll certainly hear about it and they will reject it

eping
05-07-2013, 10:44 PM
If previewer can be called checker, so why you don't just use Adobe Digital Editions?
I don't deny somebody would have fun to write some checker for PDF, but is it a necessary step before you publish your PDF?

lissie
05-08-2013, 12:35 AM
Because ADE doesn't create (or read) MOBI files - KP runs kindlegen which crates the MOBI.

Yes you have to pass the pdf checks at createspace before they will print your book

DaleDe
05-08-2013, 01:12 AM
Because the industry is in disarray, no unified standard.
That's why ePub can not surpass Amazon's Kindel format, mobi.

And epubcheck is intolerant, retailors are more intolerant.
there's no mobicheck, and we never heard PDF check.
Making publishing difficult is the ugly side of ADE and epubcheck.

Actually Kindle is abandoning mobi for KF8 which is just a repackaged ePub. Making a good ePub is now tantamount to creating a good KF8 file. Read about KF8 in our wiki.

dale

JSWolf
05-09-2013, 05:54 PM
Actually Kindle is abandoning mobi for KF8 which is just a repackaged ePub. Making a good ePub is now tantamount to creating a good KF8 file. Read about KF8 in our wiki.

dale

The only reason Amazon still sends out Mobi is for the original Kindle and the Kindle 2 which don't support KF8 (probably never will) and for all of the older eBooks that aren't getting remade so there is a KF8 version.