![]() |
#1 |
Member
![]() Posts: 14
Karma: 10
Join Date: May 2009
Device: Sony 505
|
Epub check tool: ePubs do not pass
Hey all (once again ;-))
I'm using the java epub check tool up on Google Code to validate my epub files. Unfortunately, up till now I haven't managed to create an epub book that passes 100%. Most of the work to get around these errors has to be done by creating valid XHTML files. Which in itself is rather tough already, when you're working on educational material (consequently: lots of tables, figures, lists, footnotes, example boxes, remark boxes, notification boxes, and the like). But even XHTML that validates, runs into errors when converting them into epub. The best I got was the tool finishing with a few 'unfinished element' messages. I think these have to do with the process of Calibre splitting the XHTML document into multiple HTML files before compressing them into epub format. Defining TOC levels instead of splitting may be a solution, but I haven't found a way yet to *not* have Calibre split my XHMTL into multiple files, and just keeping one big HTML file with multiple TOC elements. |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,963
Karma: 27109050
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Use the dont split on page breaks option and set maximum flow size to something very large.
You should also know that epubcheck is completely useless. The errors it complains about mostly work on all EPUB renderers and the things that it doesn't complain about cause EPUBs to break on Adobe Digital Editions. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
|
That should not matter. A tool should always produce standard conformant documents or if not clearly indicate that the documents do not follow the standard.
|
![]() |
![]() |
![]() |
#4 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 78,402
Karma: 142887248
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
But how do we know that epubcheck actually works properly?
|
![]() |
![]() |
![]() |
#5 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
|
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,963
Karma: 27109050
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Umm come up with an automated way to take arbitrarily bad HTML ad produce standards compliant XHTML from it while still preserving its meaning to human readers and I will be happy to implement it.
|
![]() |
![]() |
![]() |
#7 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
|
Quote:
I think it is a big problem if the set of ePub files floating around is not standard compliant. |
|
![]() |
![]() |
![]() |
#8 | |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,963
Karma: 27109050
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Quote:
|
|
![]() |
![]() |
![]() |
#9 |
eBook Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
So an ePub file could, for example, be completely compliant with the standard, and yet not work on, say, the Sony PRS-505 because the flow size was too large?
|
![]() |
![]() |
![]() |
#10 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
|
Quote:
So what is produced is files that will work on specific readers and we will loose a lot of the advantages with having a standard. |
|
![]() |
![]() |
![]() |
#11 |
eBook Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
But being standard-compliant is no guarantee that an ePub file will work on all readers, Tommy.
|
![]() |
![]() |
![]() |
#12 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
|
Quote:
The bigger problem is that people writing new readers have to implement all quirks and non standard behaviour in other readers since the ePub files that are available on the net or sold is not standard compliant. |
|
![]() |
![]() |
![]() |
#13 | |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,963
Karma: 27109050
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Quote:
While I agree that EPUB tools should not introduce new incompatibilities as far as possible, running epubcheck on EPUBs remains pointless, for someone trying to create EPUBs taht work on actual devices. |
|
![]() |
![]() |
![]() |
#14 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
|
Quote:
So what will happen when a new reader that is more restrictive in what is accepted is released? |
|
![]() |
![]() |
![]() |
#15 | |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,963
Karma: 27109050
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Quote:
And if someone were to develop a stricter EPUB reader, it would fail, miserably. |
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
epubcheck, any software can pass its validiation check? | droople | ePub | 96 | 08-16-2011 01:38 PM |
epub - force a 2nd pass to improve structure detection ? | cybmole | Calibre | 10 | 10-08-2010 01:00 AM |
errors after epub check | ericp20 | Sigil | 2 | 06-13-2010 10:40 AM |
epub check mentiones an error | NASCARaddicted | Calibre | 13 | 02-15-2010 09:50 AM |
ePub Corrections Check - Help. | nboshart | ePub | 3 | 10-01-2009 04:25 PM |