Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 03-08-2010, 06:07 AM   #1
droople
Connoisseur
droople has a complete set of Star Wars action figures.droople has a complete set of Star Wars action figures.droople has a complete set of Star Wars action figures.droople has a complete set of Star Wars action figures.
 
droople's Avatar
 
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.
droople is offline   Reply With Quote
Old 03-08-2010, 06:19 AM   #2
charleski
Wizard
charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.
 
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.
charleski is offline   Reply With Quote
Advert
Old 03-08-2010, 04:09 PM   #3
Valloric
Created Sigil, FlightCrew
Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.
 
Valloric's Avatar
 
Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
Quote:
Originally Posted by droople View Post
I just used epubcheck to validate some epub files made by Calibra, eCub, Sigil, quite interesting, none of them can pass the validation check.
If an epub you saved with Sigil doesn't pass epubcheck, then it's usually because the XHTML imported into Sigil had problems. If you see an instance where Sigil saves an epub that doesn't pass epubcheck where the original file did, then that's bug report (of high priority).

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).
Valloric is offline   Reply With Quote
Old 03-08-2010, 09:30 PM   #4
droople
Connoisseur
droople has a complete set of Star Wars action figures.droople has a complete set of Star Wars action figures.droople has a complete set of Star Wars action figures.droople has a complete set of Star Wars action figures.
 
droople's Avatar
 
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
Attached Files
File Type: epub test.epub (1.8 KB, 547 views)
droople is offline   Reply With Quote
Old 03-08-2010, 10:46 PM   #5
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
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.
kovidgoyal is offline   Reply With Quote
Advert
Old 03-08-2010, 11:08 PM   #6
awp
Addict
awp exercises by bench pressing the entire Harry Potter series in hardcoverawp exercises by bench pressing the entire Harry Potter series in hardcoverawp exercises by bench pressing the entire Harry Potter series in hardcoverawp exercises by bench pressing the entire Harry Potter series in hardcoverawp exercises by bench pressing the entire Harry Potter series in hardcoverawp exercises by bench pressing the entire Harry Potter series in hardcoverawp exercises by bench pressing the entire Harry Potter series in hardcoverawp exercises by bench pressing the entire Harry Potter series in hardcoverawp exercises by bench pressing the entire Harry Potter series in hardcoverawp exercises by bench pressing the entire Harry Potter series in hardcoverawp exercises by bench pressing the entire Harry Potter series in hardcover
 
awp's Avatar
 
Posts: 228
Karma: 16000
Join Date: Jun 2009
Device: Sony PRS-T1
Quote:
Originally Posted by droople View Post
PS: I found the epub file made by Atlantis can pass the validation check.
Any EPUB file generated by Atlantis is supposed to pass the EPUB validation test. If you have a document that Atlantis Word Processor does not convert to a "valid EPUB", please email it to support@AtlantisWordProcessor.com.

Quote:
Originally Posted by kovidgoyal View Post
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.
It is not completely meaningless. Some publishers do not accept EPUBs that do not pass the EPUB validation test.
awp is offline   Reply With Quote
Old 03-08-2010, 11:15 PM   #7
awp
Addict
awp exercises by bench pressing the entire Harry Potter series in hardcoverawp exercises by bench pressing the entire Harry Potter series in hardcoverawp exercises by bench pressing the entire Harry Potter series in hardcoverawp exercises by bench pressing the entire Harry Potter series in hardcoverawp exercises by bench pressing the entire Harry Potter series in hardcoverawp exercises by bench pressing the entire Harry Potter series in hardcoverawp exercises by bench pressing the entire Harry Potter series in hardcoverawp exercises by bench pressing the entire Harry Potter series in hardcoverawp exercises by bench pressing the entire Harry Potter series in hardcoverawp exercises by bench pressing the entire Harry Potter series in hardcoverawp exercises by bench pressing the entire Harry Potter series in hardcover
 
awp's Avatar
 
Posts: 228
Karma: 16000
Join Date: Jun 2009
Device: Sony PRS-T1
Quote:
Originally Posted by droople View Post
Here is the validation message
ERROR: test.epub/OEBPS/content.opf(6): unfinished element

And please find the attached file.
This is because some mandatory metadata items are missing.
awp is offline   Reply With Quote
Old 03-09-2010, 12:11 AM   #8
droople
Connoisseur
droople has a complete set of Star Wars action figures.droople has a complete set of Star Wars action figures.droople has a complete set of Star Wars action figures.droople has a complete set of Star Wars action figures.
 
droople's Avatar
 
Posts: 95
Karma: 388
Join Date: Jan 2010
Device: Nook,Nook Simple Touch, Nook Color
Quote:
Originally Posted by kovidgoyal View Post
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.
Oh, ok

Last edited by droople; 03-09-2010 at 12:14 AM.
droople is offline   Reply With Quote
Old 03-09-2010, 01:03 AM   #9
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 44,399
Karma: 23798586
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by awp View Post
It is not completely meaningless. Some publishers do not accept EPUBs that do not pass the EPUB validation test.
That just goes to show that those publishers don't have a clue.
kovidgoyal is offline   Reply With Quote
Old 03-09-2010, 02:44 AM   #10
droople
Connoisseur
droople has a complete set of Star Wars action figures.droople has a complete set of Star Wars action figures.droople has a complete set of Star Wars action figures.droople has a complete set of Star Wars action figures.
 
droople's Avatar
 
Posts: 95
Karma: 388
Join Date: Jan 2010
Device: Nook,Nook Simple Touch, Nook Color
Quote:
Originally Posted by kovidgoyal View Post
That just goes to show that those publishers don't have a clue.
oh, ok.
droople is offline   Reply With Quote
Old 03-09-2010, 03:21 AM   #11
awp
Addict
awp exercises by bench pressing the entire Harry Potter series in hardcoverawp exercises by bench pressing the entire Harry Potter series in hardcoverawp exercises by bench pressing the entire Harry Potter series in hardcoverawp exercises by bench pressing the entire Harry Potter series in hardcoverawp exercises by bench pressing the entire Harry Potter series in hardcoverawp exercises by bench pressing the entire Harry Potter series in hardcoverawp exercises by bench pressing the entire Harry Potter series in hardcoverawp exercises by bench pressing the entire Harry Potter series in hardcoverawp exercises by bench pressing the entire Harry Potter series in hardcoverawp exercises by bench pressing the entire Harry Potter series in hardcoverawp exercises by bench pressing the entire Harry Potter series in hardcover
 
awp's Avatar
 
Posts: 228
Karma: 16000
Join Date: Jun 2009
Device: Sony PRS-T1
Quote:
Originally Posted by kovidgoyal View Post
That just goes to show that those publishers don't have a clue.
Maybe. But it is always safer to follow the specifications. If the OPF specification says that the "title", "identifier" and "language" metadata items are "required", why not include them in any EPUB file?

"Invalid" EPUBs might be accepted by the currently available EPUB readers. But there is no guarantee that they will be accepted by future readers.
awp is offline   Reply With Quote
Old 03-09-2010, 04:04 AM   #12
pdurrant
The Grand Mouse 高貴的老鼠
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
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.

Quote:
Originally Posted by droople View Post
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
pdurrant is offline   Reply With Quote
Old 03-09-2010, 09:19 AM   #13
charleski
Wizard
charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.
 
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.
charleski is offline   Reply With Quote
Old 03-09-2010, 09:22 AM   #14
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 44,399
Karma: 23798586
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by awp View Post
Maybe. But it is always safer to follow the specifications. If the OPF specification says that the "title", "identifier" and "language" metadata items are "required", why not include them in any EPUB file?

"Invalid" EPUBs might be accepted by the currently available EPUB readers. But there is no guarantee that they will be accepted by future readers.
Don't get me wrong, I'm not advocating that people ignore the standards on purpose. I just want people to realize that having your book passed by epubcheck is a guarantee of precisely nothing. I think having something like epubcheck does more harm than good, simply because everybody automatically assumes that if you have an EPUB that passes epubcheck's tests, it will work correctly.

epubcheck should have been named epub-schema-check to help make it clear that all it does is validate a few XML schemas.
kovidgoyal is offline   Reply With Quote
Old 03-09-2010, 09:24 AM   #15
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 44,399
Karma: 23798586
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by charleski View Post
Lol, I was expecting Kovid to take the chance to bang on about epubcheck again.
Yeah, I just can't resist There's something about epubcheck's naivete that really gets me going.
kovidgoyal is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

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


All times are GMT -4. The time now is 06:21 PM.


MobileRead.com is a privately owned, operated and funded community.