View Full Version : ePub check for iBookStore


itzfufu
05-08-2011, 02:47 PM
Hi there,

I just got finished with my .epub file, which I created in InDesign CS 5.5.

Everything seems to be fine, except including a cover before exporting the .epub file.

"No problem", I thought, because I use calibre for converting the .epub file into a .mobi file anyway. So I inserted the cover via calibre and exported the InDesign .epub to .epub and .mobi.

Both files look just fine in my eReaders, but I know, that you have to check your files, before uploading into the iBook Store.

I'm sure, everyone knows this site for checking ePubs:
http://threepress.org/document/epub-validate

When I check my file, the following messages appear:

Epubcheck Version 1.2

WARNING: /Users/mb/Desktop/ich bin intolerant (9)/ich bin intolerant - Laura Camprubi.epub: resource OEBPS/fonts/Times-Bold.ttf cannot be decrypted

WARNING: /Users/mb/Desktop/ich bin intolerant (9)/ich bin intolerant - Laura Camprubi.epub: resource OEBPS/fonts/Times-Roman.ttf cannot be decrypted

ERROR: /Users/mb/Desktop/ich bin intolerant (9)/ich bin intolerant - Laura Camprubi.epub/titlepage.xhtml(14): value of attribute "preserveAspectRatio" is invalid; must be a string matching the regular expression "\s*(none|xMinYMin|xMidYMin|xMaxYMin|xMinYMid|xMidY Mid|xMaxYMid|xMinYMax|xMidYMax|xMaxYMax)\s+(meet|s lice)?\s*"

Check finished with warnings or errors!

Does somebody know, what this really means?

I figured, that the first two warnings are about font copyright stuff. But does that mean, that the file will be rejected by the iBook Store?

The third error message is something, I cannot locate. I really don't know what to do with this :help:

mtrahan
05-08-2011, 03:11 PM
Well, seems there is an error with the value of attribute "preserveAspectRatio" on the titlepage.xhtml file in your ePub. What is the current value? Try to edit the ePub with Sigil, you will have access to this data easily. Also there is an ePub validation test included with Sigil (it's called Flight Crew), which I believe is better and gives easier to decrypt error messages. Someone please correct me if I'm wrong.

Also, I just checked an ePub I have worked on (one that passed the validation), and on my title page, the preserveAspectRatio is "xMidYMid meet".

Good luck.

Jellby
05-08-2011, 03:13 PM
I figured, that the first two warnings are about font copyright stuff. But does that mean, that the file will be rejected by the iBook Store?

Not about copyright, but probably about the font obfuscation used by InDesign, which is not supported by the standard. Whether Apple will allow it or not is something I don't know. You should not be including text fonts, anyway (IMO).

The third error message is something, I cannot locate. I really don't know what to do with this :help:

It's some SVG code, which has an invalid value, probably non-matching upper/lowercase ("xMidYMid" is valid, "xMidyMid" is not, for example).

itzfufu
05-08-2011, 03:34 PM
Not about copyright, but probably about the font obfuscation used by InDesign, which is not supported by the standard. Whether Apple will allow it or not is something I don't know. You should not be including text fonts, anyway (IMO).

Strange, because they are standard font types.

I got the "problem", that I haven't written my book in Word :rolleyes:
I am working with my iMac and had originally written my book in Quark XPress.
With Quark I produced my Printing PDF file, which was used from the printing shop for the paperback production.

Unfortunately even the newest Quark version (9.0) has problems with ePub export, so I finally hooked up with InDesign CS 5.5 .

As far as I can tell, InDesign embeds no fonts while exporting..there is no check mark active for embedding fonts.
The question is, how can I tell InDesign that I want no "font information" in my epub, to avoid this warning? :blink:

itzfufu
05-08-2011, 06:33 PM
wheeee, I got at least the fonts problem solved :D

I checked the .epub file from calibre and got the fonts warning.
So I double-checked on the InDesign .epub file and noticed that the warning was still there.

Educated guess: The problem has definitely to be in InDesign.

I double-checked all the settings for ePub export and found a small, inconspicious check mark, which was activated under "CSS" where InDesign embedded the fonts.

Well, it doesn't embed them now :D

So it is down to one error:

ERROR: /Users/mb/Desktop/ich bin intolerant (9)/ich bin intolerant - Laura Camprubi.epub/titlepage.xhtml(14): value of attribute "preserveAspectRatio" is invalid; must be a string matching the regular expression "\s*(none|xMinYMin|xMidYMin|xMaxYMin|xMinYMid|xMid YMid|xMaxYMid|xMinYMax|xMidYMax|xMaxYMax)\s+(meet| slice)?\s*"

I'm going to check this one with Sigil...:book2:

itzfufu
05-08-2011, 06:42 PM
That's what Sigil has to offer:

<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" xmlns:xml="http://www.w3.org/XML/1998/namespace">
<head>
<meta content="true" name="calibre:cover" />

<title>Cover</title>

<style type="text/css">
@page {padding: 0pt; margin:0pt}
body { text-align: center; padding:0pt; margin: 0pt; }
</style>
</head>

<body>
<div>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" preserveAspectRatio="none" version="1.1" viewBox="0 0 508 751" width="100%">
<image height="751" width="508" xlink:href="../Images/cover.jpeg"></image>
</svg>
</div>
</body>
</html>



preserveAspectRatio is set as "none", but I don't get where the problem is :blink:
The error message says, it has to match the regular expressions and "none" is listed as such.

itzfufu
05-08-2011, 06:52 PM
OH MY GOD, IT PASSED!

I found this thread: http://www.mobileread.com/forums/showthread.php?t=86293
and checked on the calibre export thingy and that did it!

localhost:~ mb$ java -jar /Users/mb/Desktop/epubcheck-1/epubcheck-1.2.jar /lauras\ stuff/Dropbox/FuFu+Sar/eBook\ Shice/ich\ bin\ intolerant\ \(11\)/ich\ bin\ intolerant\ -\ Laura\ Camprubi.epub
Epubcheck Version 1.2

No errors or warnings detected

:thanks: