03-08-2010, 06:07 AM | #1 |
Connoisseur
Posts: 95
Karma: 388
Join Date: Jan 2010
Device: Nook,Nook Simple Touch, Nook Color
|
epubcheck, any software can pass its validiation check?
Hi
I just used epubcheck to validate some epub files made by Calibra, eCub, Sigil, quite interesting, none of them can pass the validation check, although all the books can be read on the machine. Does this mean that actually no one care about the epub specification? Cheers PS: I found the epub file made by Atlantis can pass the validation check. |
03-08-2010, 06:19 AM | #2 |
Wizard
Posts: 1,196
Karma: 1281258
Join Date: Sep 2009
Device: PRS-505
|
A lot of files fail because they're using xhtml that doesn't precisely comply with the relevant specification. Most of these errors are trivial at the moment, but may become non-trivial in the future as the xhtml spec evolves.
The purpose of the spec is to make sure that you'll be able to read your epubs on future devices as well as the ones you have now, so yes, it's a good idea to make sure they're compliant. |
Advert | |
|
03-08-2010, 04:09 PM | #3 | |
Created Sigil, FlightCrew
Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
|
Quote:
I try to make Sigil epubcheck-clean; that is, I try my best to makes sure Sigil doesn't introduce non-compliance. But if the original file was non-compliant, there's a good chance Sigil won't be able to make it compliant (although it usually can). |
|
03-08-2010, 09:30 PM | #4 |
Connoisseur
Posts: 95
Karma: 388
Join Date: Jan 2010
Device: Nook,Nook Simple Touch, Nook Color
|
Hi Valloric
Thank you for the reply. What I did with Sigil epub file is type in "test" in the text field, without import any external files. Here is the validation message ERROR: test.epub/OEBPS/content.opf(6): unfinished element And please find the attached file. Cheers |
03-08-2010, 10:46 PM | #5 |
creator of calibre
Posts: 44,399
Karma: 23798586
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Just so you know: epubcheck is totally meaningless. A file that *passes* epubcheck may or may not work with any given epub renderer. A file that *does not pass* epubcheck may or may not work with any given epub renderer.
The best that could possibly be said about epubcheck (and I wouldn't be comfortable saying this without actual data) is that a file that passes epubcheck may be more likely than a file that does not pass to render correctly with most epub viewers. Even if this were true it would most likely be so because files that tend to pass epubcheck tend, on average, to have extremely simple markup, as they are typically the product of machine translation from some extremely simple format. What I'm trying to say is that the things that epubcheck checks are those things that it is easiest to write software to check, not those things that are most likely to cause problems, or those things that are most likely to occur in the wild. What epubcheck is good for, is those situations where you have absolutely no idea why your epub file is not rendering with a particular renderer. In that case, you can try running epubcheck on it and fix the errors it points out. Of course, that may or may not fix your actual problem. And even for this use case, epubcheck is extremely sub-optimal since its error messages are incredibly unhelpful. That's my epubcheck jeremiad for this week. |
Advert | |
|
03-08-2010, 11:08 PM | #6 | |
Addict
Posts: 228
Karma: 16000
Join Date: Jun 2009
Device: Sony PRS-T1
|
Quote:
It is not completely meaningless. Some publishers do not accept EPUBs that do not pass the EPUB validation test. |
|
03-08-2010, 11:15 PM | #7 |
Addict
Posts: 228
Karma: 16000
Join Date: Jun 2009
Device: Sony PRS-T1
|
|
03-09-2010, 12:11 AM | #8 | |
Connoisseur
Posts: 95
Karma: 388
Join Date: Jan 2010
Device: Nook,Nook Simple Touch, Nook Color
|
Quote:
Last edited by droople; 03-09-2010 at 12:14 AM. |
|
03-09-2010, 01:03 AM | #9 |
creator of calibre
Posts: 44,399
Karma: 23798586
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
03-09-2010, 02:44 AM | #10 |
Connoisseur
Posts: 95
Karma: 388
Join Date: Jan 2010
Device: Nook,Nook Simple Touch, Nook Color
|
|
03-09-2010, 03:21 AM | #11 | |
Addict
Posts: 228
Karma: 16000
Join Date: Jun 2009
Device: Sony PRS-T1
|
Quote:
"Invalid" EPUBs might be accepted by the currently available EPUB readers. But there is no guarantee that they will be accepted by future readers. |
|
03-09-2010, 04:04 AM | #12 |
The Grand Mouse 高貴的老鼠
Posts: 72,269
Karma: 309000000
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
|
It's a design decision not to add random values to the metadata for the required metadata fields.
If you use the metadata editing interface in Sigil, and enter values for the required items, Sigil ePubs pass epubcheck if you also have valid XHTML in the content. |
03-09-2010, 09:19 AM | #13 |
Wizard
Posts: 1,196
Karma: 1281258
Join Date: Sep 2009
Device: PRS-505
|
Lol, I was expecting Kovid to take the chance to bang on about epubcheck again.
While it's not perfect (and desperately needs another release) I've found it very useful as a basic 'sanity check' to make sure that all the required elements are in the right places. Unfortunately many converters still output deprecated xhtml attributes, which is what causes most of the errors. |
03-09-2010, 09:22 AM | #14 | |
creator of calibre
Posts: 44,399
Karma: 23798586
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Quote:
epubcheck should have been named epub-schema-check to help make it clear that all it does is validate a few XML schemas. |
|
03-09-2010, 09:24 AM | #15 |
creator of calibre
Posts: 44,399
Karma: 23798586
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
epubcheck bugs? | capidamonte | ePub | 2 | 06-13-2010 07:38 AM |
PRS-600 Possible to check out library books w/o Sony Reader Software Installed? | 45MPHK9 | Sony Reader | 5 | 03-27-2010 03:16 PM |
Web-based epubcheck upgraded to epubcheck 1.0.5 | kjk | ePub | 4 | 02-09-2010 09:53 PM |
Epub check tool: ePubs do not pass | Portnull | Calibre | 32 | 11-04-2009 08:27 AM |
epubcheck | GeoffC | ePub | 3 | 11-03-2009 04:26 AM |