|
|
#1 |
|
Member
![]() Posts: 14
Karma: 10
Join Date: May 2009
Device: Sony 505
|
Epub check tool: ePubs do not pass
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: 22,519
Karma: 2944574
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.
__________________
Get calibre Notice to all: I can not provide assistance with DRM removal, for legal reasons, so please do not contact me about it. |
|
|
|
|
Enthusiast
|
|
|
|
#3 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,507
Karma: 2150615
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Nexus 7, Nexus S, iPad 2, Notion Ink Adam Qi, Kindle WiFi
|
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.
__________________
DRM is EVIL! /Tommy Persson |
|
|
|
|
|
#4 |
|
Mobile Reader Geek
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 34,227
Karma: 13801376
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad
|
But how do we know that epubcheck actually works properly?
__________________
|
|
|
|
|
|
#5 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,507
Karma: 2150615
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Nexus 7, Nexus S, iPad 2, Notion Ink Adam Qi, Kindle WiFi
|
Does it matter how we get confidence in a program? I would say we know that it works properly in the same way we know how a computer program works properly. We look at the evidence.
__________________
DRM is EVIL! /Tommy Persson |
|
|
|
|
|
#6 |
|
Creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,519
Karma: 2944574
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.
__________________
Get calibre Notice to all: I can not provide assistance with DRM removal, for legal reasons, so please do not contact me about it. |
|
|
|
|
|
#7 | |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,507
Karma: 2150615
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Nexus 7, Nexus S, iPad 2, Notion Ink Adam Qi, Kindle WiFi
|
Quote:
I think it is a big problem if the set of ePub files floating around is not standard compliant.
__________________
DRM is EVIL! /Tommy Persson |
|
|
|
|
|
|
#8 | |
|
Creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,519
Karma: 2944574
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Quote:
__________________
Get calibre Notice to all: I can not provide assistance with DRM removal, for legal reasons, so please do not contact me about it. |
|
|
|
|
|
|
#9 |
|
eBook Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 54,668
Karma: 26165759
Join Date: Nov 2006
Location: UK
Device: Kindle Touch, PW, Fire HD, iPad 3, iPhone 4, Samsung Tab 2 7 + More
|
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?
__________________
Harry Currently proofreading The Poison Belt, by Sir Arthur Conan Doyle. |
|
|
|
|
|
#10 | |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,507
Karma: 2150615
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Nexus 7, Nexus S, iPad 2, Notion Ink Adam Qi, Kindle WiFi
|
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.
__________________
DRM is EVIL! /Tommy Persson |
|
|
|
|
|
|
#11 |
|
eBook Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 54,668
Karma: 26165759
Join Date: Nov 2006
Location: UK
Device: Kindle Touch, PW, Fire HD, iPad 3, iPhone 4, Samsung Tab 2 7 + More
|
But being standard-compliant is no guarantee that an ePub file will work on all readers, Tommy.
__________________
Harry Currently proofreading The Poison Belt, by Sir Arthur Conan Doyle. |
|
|
|
|
|
#12 | |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,507
Karma: 2150615
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Nexus 7, Nexus S, iPad 2, Notion Ink Adam Qi, Kindle WiFi
|
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.
__________________
DRM is EVIL! /Tommy Persson |
|
|
|
|
|
|
#13 | |
|
Creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,519
Karma: 2944574
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.
__________________
Get calibre Notice to all: I can not provide assistance with DRM removal, for legal reasons, so please do not contact me about it. |
|
|
|
|
|
|
#14 | |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,507
Karma: 2150615
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Nexus 7, Nexus S, iPad 2, Notion Ink Adam Qi, Kindle WiFi
|
Quote:
So what will happen when a new reader that is more restrictive in what is accepted is released?
__________________
DRM is EVIL! /Tommy Persson |
|
|
|
|
|
|
#15 | |
|
Creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,519
Karma: 2944574
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Quote:
And if someone were to develop a stricter EPUB reader, it would fail, miserably.
__________________
Get calibre Notice to all: I can not provide assistance with DRM removal, for legal reasons, so please do not contact me about it. |
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
Similar Threads
|
||||
| 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 |