06-24-2011, 08:39 PM | #1 |
Read, don't parrot.
Posts: 224
Karma: 110242
Join Date: Apr 2011
Device: Kindle Fire, Kobo Touch, Aldiko for Android
|
EPubCheck errors -- any idea how to fix?
Hi:
I'm using the ePub export function in InDesign. My ePub passed ePubCheck but with the following errors/warnings: 1. ERROR: Baby Jane.epub/OEBPS/content.opf(4): date value '' is not valid. The date must be in the form YYYY, YYYY-MM or YYYY-MM-DD (e.g., "1993", "1993-05", or "1993-05-01"). See http://www.w3.org/TR/NOTE-datetime. 2. WARNING: Baby Jane.epub: item (OEBPS/Fonts/times.ttf) exists in the zip file, but is not declared in the OPF file 3. WARNING: Baby Jane.epub: item (OEBPS/Fonts/timesi.ttf) exists in the zip file, but is not declared in the OPF file 4. Check finished with warnings or errors! Does anyone have any idea how I fix these? Thanks in advance. |
06-24-2011, 08:40 PM | #2 |
Read, don't parrot.
Posts: 224
Karma: 110242
Join Date: Apr 2011
Device: Kindle Fire, Kobo Touch, Aldiko for Android
|
Sorry, should add that's InDesign CS5 for PC. I'm using 64-bit Win 7 Pro.
|
Advert | |
|
06-25-2011, 12:47 AM | #3 |
Booklegger
Posts: 1,801
Karma: 7999816
Join Date: Jun 2009
Location: Toronto, Ontario, Canada
Device: BeBook(1 & 2010), PEZ, PRS-505, Kobo BT, PRS-T1, Playbook, Kobo Touch
|
These errors can be fixed by using a simple text editor - wordpad, not word - to make changes to the .opf file after you unzup the epub file. InDesign always leaves little crumbs that need fixing. See Liz Castro's book - EPUB Straight to the Point - which you can find at her blog. Two other points: I'm not sure the Times font family is licensed for redistribution in the clear, and it is not really a good font for reading anything but newspapers. I'd recommend checking out Droid or Liberation font families, which were designed for computers displays and are licensed under the Open Font License. Of course, others will insist that you shouldn't be embedding a body font anyway. Anyway, go get the book and read it; it'll solve most of your problems with ebooks.
|
06-25-2011, 02:17 AM | #4 |
Read, don't parrot.
Posts: 224
Karma: 110242
Join Date: Apr 2011
Device: Kindle Fire, Kobo Touch, Aldiko for Android
|
Don't really have time to try to get a book during a postal strike...
The date thing is an O/S issue -- I've figure out how to change it in Windows but I'm still getting an error, so it's a problem with InDesign. Thing is, there is no date anywhere in the XML, and certainly not where the error claims it is. As for the font, I'm using an Open Type version. The problem isn't the font, it's whether I need to remove the font definitions from the CSS template or add them to the OPF. |
06-25-2011, 04:09 AM | #5 | |
I mess around with Epubs
Posts: 82
Karma: 1566
Join Date: Mar 2011
Location: Cambridge, MA
Device: mac, ipad, nook, kindle
|
do you want embedded fonts in your epub, or just let the device choose the font? If your ok with letting the device pick the font, just delete the "fonts" folder, and it should validate. I usually stick to basic font, and don't embed any.
The date thing is just metadata. All epub have to have a date, and for some reason InDesign doesn't export the date in metadata. In your content.opf file put in: Quote:
|
|
Advert | |
|
06-25-2011, 04:29 AM | #6 | ||
Read, don't parrot.
Posts: 224
Karma: 110242
Join Date: Apr 2011
Device: Kindle Fire, Kobo Touch, Aldiko for Android
|
Quote:
Quote:
So in Dreamweaver I changed it to <dc:date>2011-07</dc:date>. But when I rezip the file and change the zip extension to epub, the file no longer opens in ADE. I've also tried editing the code in Notepad, but no difference. If I do the unpack, rezip, change extension back to epub without amending the code, the epub opens again fine in ADE. And it's that date that is all that now stands between me and a error-free epub. I could bang my head against the wall. |
||
06-25-2011, 07:53 AM | #7 |
Color me gone
Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
|
The files must be in a certain order inside the epub.
This free tool allows you to edit the contents of the epub in your favorite text editor and puts it back together in order. http://atlantiswordprocessor.blogspo...-zip-file.html This capability is found in Sigil and Calibre also. |
06-25-2011, 12:20 PM | #8 | |
I mess around with Epubs
Posts: 82
Karma: 1566
Join Date: Mar 2011
Location: Cambridge, MA
Device: mac, ipad, nook, kindle
|
Quote:
I usually don't embed fonts myself. Too much hassel, and half of the readers I tested on ignore the embedded fonts anyways. so I use the fon't family property in the CSS. Last edited by SamL; 06-25-2011 at 12:27 PM. |
|
06-25-2011, 12:27 PM | #9 | |
I mess around with Epubs
Posts: 82
Karma: 1566
Join Date: Mar 2011
Location: Cambridge, MA
Device: mac, ipad, nook, kindle
|
Quote:
Try this thread: https://www.mobileread.com/forums/showthread.php?t=84675 it should help. |
|
06-25-2011, 01:36 PM | #10 | |
Read, don't parrot.
Posts: 224
Karma: 110242
Join Date: Apr 2011
Device: Kindle Fire, Kobo Touch, Aldiko for Android
|
Quote:
Michelle |
|
06-25-2011, 02:24 PM | #11 |
Read, don't parrot.
Posts: 224
Karma: 110242
Join Date: Apr 2011
Device: Kindle Fire, Kobo Touch, Aldiko for Android
|
SamL:
Just downloaded and tried epubTweak - YEAHHHHHHHHHHHHHHHHHHHHHHHHHH! You are officially my hero today for directing me to it. FYI, to Indesign users: not only does InDesign not export the date into the metadata, or the opening code, but the closing code it exports is also wrong: instead of </dc:date> it writes <dc:date/> (seriously, Adobe, you have HOW many techies working for you??). So I had to add <dc:date>[my date here] and also change the closing code, so I ended up with this: <dc:date>2011-07</dc:date> And voila! I am so happy now. |
06-25-2011, 03:38 PM | #12 | |
I mess around with Epubs
Posts: 82
Karma: 1566
Join Date: Mar 2011
Location: Cambridge, MA
Device: mac, ipad, nook, kindle
|
Quote:
Ya the date problem is a know bug in InDesign, they should wise-up to it eventually. |
|
07-25-2011, 08:33 PM | #13 |
Junior Member
Posts: 5
Karma: 506
Join Date: Jul 2011
Location: Canada
Device: none
|
EPubCheck errors
Hello all
I see others have hit the dreaded EPubCheck wall. As a rank amateur, I'm somewhat daunted by what I might have to do to fix my error message from EPubCheck: tmp_bbf8c22100ab10d723cd85f4d391274a_Hp3_YA.ch.fix ed.fc.tidied.stylehacked.xfixed_split_004.html(174 ): attribute "clear" not allowed here; expected attribute "class", "id", "style" or "title" I used Smashwords and Word. There are no images in my book. The message on the screen seemed to suggest the file was too big. Is this possible? It's a file of 85,000 words. Anyone in the community have a similar problem or who can interpret the error message for me? Many thanks in advance. |
07-25-2011, 08:49 PM | #14 |
Resident Curmudgeon
Posts: 76,333
Karma: 136006010
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Can you post the code? Without, we can only guess.
|
07-25-2011, 09:12 PM | #15 |
Booklegger
Posts: 1,801
Karma: 7999816
Join Date: Jun 2009
Location: Toronto, Ontario, Canada
Device: BeBook(1 & 2010), PEZ, PRS-505, Kobo BT, PRS-T1, Playbook, Kobo Touch
|
It looks like either Word or the meatgrinder put a 'clear' attribute inside a <p ...> tag where only the above listed attributes are allowed. Just why this happened may become apparent if you look at line 174 in xfixed_split_004.html and relate that back to what is in your Word file in that area. It could be a bug in the meatgrinder, or in your use of the rules in Smashwords style guide. I gather that they are fairly complicated, although I haven't tried to publish anything anywhere.
|
Tags |
epub, errors, warnings |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
epubcheck errors regarding NCX - can you help me translate these? | Dusk | ePub | 27 | 06-14-2011 10:58 PM |
beginner needs help with epubcheck errors... | jeanina | ePub | 10 | 01-25-2011 09:49 PM |
Can anyone tell me how to fix these validation errors? | grapplegirl | ePub | 9 | 12-18-2010 10:23 AM |
Idea to fix screen glare on PRS 600 | grzy7316 | Sony Reader | 19 | 07-02-2010 10:50 AM |
Web-based epubcheck upgraded to epubcheck 1.0.5 | kjk | ePub | 4 | 02-09-2010 10:53 PM |