![]() |
#16 |
Color me gone
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
|
It may not be a waste of time, if you are publishing commercially. I think they all use some kind of validation, whether valid or not. You will need to do what they demand in that case.
|
![]() |
![]() |
![]() |
#17 |
Village idiot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 157
Karma: 519566
Join Date: Mar 2014
Location: Belgium
Device: sony PRS T-1
|
I'm not publishing, but I'll take your advice in consideration for future reference.
|
![]() |
![]() |
![]() |
#18 |
Software Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 190
Karma: 89000
Join Date: Jan 2014
Location: Germany
Device: PocketBook Touch Lux 3
|
Then obviously using Calibre for EPUB creation is a waste of time, because you have to fix errors introduced by Calibre anyway.
Last edited by skreutzer; 04-18-2014 at 12:09 PM. |
![]() |
![]() |
![]() |
#19 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
In all fairness, Kovid did put it that harsh but he has a good explanation.
Quote:
|
|
![]() |
![]() |
![]() |
#20 |
Color me gone
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
|
I am not publishing commercially so it is a waste of time to check for things that are not issues in real world readers. There are many of us that place our books in the library here that do it for our own use and the benefit of others.
Not everything worth doing is worth doing is worth doing perfectly according to some abstract standard. |
![]() |
![]() |
![]() |
#21 |
Software Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 190
Karma: 89000
Join Date: Jan 2014
Location: Germany
Device: PocketBook Touch Lux 3
|
Well, such explanation might sound pragmatic, but it is part of the problem instead of the solution. There's off-the-shelf EPUB validation (based upon off-the-shelf XHTML validation according to W3C's specification) according to IDPF's specification, and if some software creates invalid EPUB output, it will deliberately break all reading/processing software which benefits from those off-the-shelf solutions. Further, the goal of creating an EPUB initially is to be compliant to an industry standard, because otherwise why not just create plain HTML output and maybe zip it? Oh, maybe because you have to be HTML compliant if you want browsers and other HTML software to work properly. One might question the value of standards in general, so please go ahead and specify your own binary data format which nobody then will be able to read.
Especially in the context of the future of the web, we can't afford to repeat the mess of the past with browser-specific HTML rendering, which hurts us badly with all kinds of incompatibilities up to the present day. Last edited by skreutzer; 04-18-2014 at 09:11 AM. |
![]() |
![]() |
![]() |
#22 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 398
Karma: 96448
Join Date: Dec 2013
Device: iPad
|
I disagree with what kovid said about validation being a waste of time and I agree with skreutzer. None-conformance to standards is what got us in this mess in the first place, each reader requires it's own quirks.
I am all for validating any document you make, sticking to standards when writing code is more than good practice, it's crucial. On the subject matter: I create an ePub 3 with <u> tags and it passed validation with no errors. View attached. Last edited by odedta; 04-18-2014 at 09:39 AM. |
![]() |
![]() |
![]() |
#23 |
Software Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 190
Karma: 89000
Join Date: Jan 2014
Location: Germany
Device: PocketBook Touch Lux 3
|
Your file is EPUB3 and <u> is valid according HTML5, on which EPUB3 is based upon. Calibre doesn't support EPUB3 (yet?).
|
![]() |
![]() |
![]() |
#24 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,550
Karma: 19500001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
The "correct" way to add underline is probably just <em> or <em class="whatever">, as underline is very likely added for emphasis.
If the only way to emphasize in a book is with underlines, use <em> and set: em { font-style: normal; text-decoration: underline; } If underlines cohabit with italics, bold, colors, etc. use <em class="whatever">. |
![]() |
![]() |
![]() |
#25 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 398
Karma: 96448
Join Date: Dec 2013
Device: iPad
|
|
![]() |
![]() |
![]() |
#26 |
Software Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 190
Karma: 89000
Join Date: Jan 2014
Location: Germany
Device: PocketBook Touch Lux 3
|
I don't think that Calibre necessarily needs EPUB3 support, because besides some additional features (like footnotes), EPUB3 is primarily for multimedia and interaction (JavaScript), so an editor would look more like a programming IDE combined with an animation program rather than a book management tool.
|
![]() |
![]() |
![]() |
#27 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Quote:
Sticking to the specifications and standards is always a good idea, but the validation will not help you with that. |
|
![]() |
![]() |
![]() |
#28 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,588
Karma: 204624552
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
And there's the rub. The specs (ePub 2) are about as wishy-washy about as you can get, with regard to what a compliant reading system "may" do and still remain compliant. Epub3 is not worded much better. How can you effectively "validate" what is left far too open-to-interpretation by the specs themselves?
Last edited by DiapDealer; 04-18-2014 at 01:37 PM. |
![]() |
![]() |
![]() |
#29 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 398
Karma: 96448
Join Date: Dec 2013
Device: iPad
|
I'd like to see some example of a validated ePub3 that doesn't work on an ePub3 reader. Not that I don't believe you, I want to learn.
|
![]() |
![]() |
![]() |
#30 |
Software Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 190
Karma: 89000
Join Date: Jan 2014
Location: Germany
Device: PocketBook Touch Lux 3
|
Well, but you guys are missing one important point here: the standard specifications are for machine readability, a check for formal correctness. They too define how a device manufacturer should render the defined constructs, but of course they can't force them to react on constructs according to the standard, they can't provide implementations for every combination of constructs, and they even leave some decisions up to the implementor (such as footnote rendering in EPUB3), which is perfectly fine. There is other reading software than the renderer software in e-reading devices, such as webservers and processing tools, which might have a completely different rendering or no rendering at all, and as devices change over time, the standard definition serves as common protocol about how information should be encoded, so that software and devices of the future might access the encoded information in the best possible way.
@odedta: There are many features of EPUB3 which aren't supported by even one single implementation, and it will stay this way for a while, because EPUB3 is far ahead of its time, while at the same time it is closely connected what's happening with HTML5 in the browser area, so it somehow tracks the progress made in modern web technology. |
![]() |
![]() |
![]() |
Tags |
validation error |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
The element type "p" must be terminated by the matching end-tag "</p>". | uieluck | ePub | 10 | 02-12-2013 07:04 PM |
element "img" not allowed in this context | graniton | Calibre | 5 | 05-14-2012 11:39 PM |
ePub validation error: 'element "span" not allowed here' | nannygoats | ePub | 5 | 11-30-2011 08:47 AM |
element "span" not allowed in this context | jihwan | Calibre | 4 | 07-17-2010 09:25 PM |
Crash on nonexistent "title" metadata element | Valloric | EPUBReader | 3 | 12-10-2009 01:46 PM |