Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 04-18-2014, 07:53 AM   #16
mrmikel
Color me gone
mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.
 
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.
mrmikel is offline   Reply With Quote
Old 04-18-2014, 08:00 AM   #17
JLius
Village idiot
JLius ought to be getting tired of karma fortunes by now.JLius ought to be getting tired of karma fortunes by now.JLius ought to be getting tired of karma fortunes by now.JLius ought to be getting tired of karma fortunes by now.JLius ought to be getting tired of karma fortunes by now.JLius ought to be getting tired of karma fortunes by now.JLius ought to be getting tired of karma fortunes by now.JLius ought to be getting tired of karma fortunes by now.JLius ought to be getting tired of karma fortunes by now.JLius ought to be getting tired of karma fortunes by now.JLius ought to be getting tired of karma fortunes by now.
 
JLius's Avatar
 
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.
JLius is offline   Reply With Quote
Old 04-18-2014, 08:31 AM   #18
skreutzer
Software Developer
skreutzer considers 'yay' to be a thoroughly cromulent word.skreutzer considers 'yay' to be a thoroughly cromulent word.skreutzer considers 'yay' to be a thoroughly cromulent word.skreutzer considers 'yay' to be a thoroughly cromulent word.skreutzer considers 'yay' to be a thoroughly cromulent word.skreutzer considers 'yay' to be a thoroughly cromulent word.skreutzer considers 'yay' to be a thoroughly cromulent word.skreutzer considers 'yay' to be a thoroughly cromulent word.skreutzer considers 'yay' to be a thoroughly cromulent word.skreutzer considers 'yay' to be a thoroughly cromulent word.skreutzer considers 'yay' to be a thoroughly cromulent word.
 
skreutzer's Avatar
 
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.
skreutzer is offline   Reply With Quote
Old 04-18-2014, 08:41 AM   #19
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
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:
What you need for that is a tool that checks the book for known causes of error. Not a mindless tool that validates it against a DTD. The only reason epub validation exists at all is because, it is, quite literally, the simplest thing to program a tool that check HTML against a DTD and pops up lots of meaningless errors, as opposed to writing a tool that intelligently checks the HTML for things that are known to be problematic in real world usage.
And that is a valid point.
Toxaris is offline   Reply With Quote
Old 04-18-2014, 08:45 AM   #20
mrmikel
Color me gone
mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.
 
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.
mrmikel is offline   Reply With Quote
Old 04-18-2014, 09:08 AM   #21
skreutzer
Software Developer
skreutzer considers 'yay' to be a thoroughly cromulent word.skreutzer considers 'yay' to be a thoroughly cromulent word.skreutzer considers 'yay' to be a thoroughly cromulent word.skreutzer considers 'yay' to be a thoroughly cromulent word.skreutzer considers 'yay' to be a thoroughly cromulent word.skreutzer considers 'yay' to be a thoroughly cromulent word.skreutzer considers 'yay' to be a thoroughly cromulent word.skreutzer considers 'yay' to be a thoroughly cromulent word.skreutzer considers 'yay' to be a thoroughly cromulent word.skreutzer considers 'yay' to be a thoroughly cromulent word.skreutzer considers 'yay' to be a thoroughly cromulent word.
 
skreutzer's Avatar
 
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.
skreutzer is offline   Reply With Quote
Old 04-18-2014, 09:37 AM   #22
odedta
Addict
odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.
 
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.
Attached Files
File Type: epub test.epub (76.4 KB, 134 views)

Last edited by odedta; 04-18-2014 at 09:39 AM.
odedta is offline   Reply With Quote
Old 04-18-2014, 09:43 AM   #23
skreutzer
Software Developer
skreutzer considers 'yay' to be a thoroughly cromulent word.skreutzer considers 'yay' to be a thoroughly cromulent word.skreutzer considers 'yay' to be a thoroughly cromulent word.skreutzer considers 'yay' to be a thoroughly cromulent word.skreutzer considers 'yay' to be a thoroughly cromulent word.skreutzer considers 'yay' to be a thoroughly cromulent word.skreutzer considers 'yay' to be a thoroughly cromulent word.skreutzer considers 'yay' to be a thoroughly cromulent word.skreutzer considers 'yay' to be a thoroughly cromulent word.skreutzer considers 'yay' to be a thoroughly cromulent word.skreutzer considers 'yay' to be a thoroughly cromulent word.
 
skreutzer's Avatar
 
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?).
skreutzer is offline   Reply With Quote
Old 04-18-2014, 09:43 AM   #24
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
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">.
Jellby is offline   Reply With Quote
Old 04-18-2014, 09:44 AM   #25
odedta
Addict
odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.
 
Posts: 398
Karma: 96448
Join Date: Dec 2013
Device: iPad
Quote:
Originally Posted by skreutzer View Post
Your file is EPUB3 and <u> is valid according HTML5, on which EPUB3 is based upon. Calibre doesn't support EPUB3 (yet?).
It doesn't support ePub3? :P

Anyhow, he has all the answers he can hope for
odedta is offline   Reply With Quote
Old 04-18-2014, 09:48 AM   #26
skreutzer
Software Developer
skreutzer considers 'yay' to be a thoroughly cromulent word.skreutzer considers 'yay' to be a thoroughly cromulent word.skreutzer considers 'yay' to be a thoroughly cromulent word.skreutzer considers 'yay' to be a thoroughly cromulent word.skreutzer considers 'yay' to be a thoroughly cromulent word.skreutzer considers 'yay' to be a thoroughly cromulent word.skreutzer considers 'yay' to be a thoroughly cromulent word.skreutzer considers 'yay' to be a thoroughly cromulent word.skreutzer considers 'yay' to be a thoroughly cromulent word.skreutzer considers 'yay' to be a thoroughly cromulent word.skreutzer considers 'yay' to be a thoroughly cromulent word.
 
skreutzer's Avatar
 
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.
skreutzer is offline   Reply With Quote
Old 04-18-2014, 01:05 PM   #27
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
Quote:
Originally Posted by odedta View Post
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.
The problem is, that even if the validation is green, it is saying nothing. It can still be a broken. It checks several things, but not if the ePUB will work. The real issue is that all readers (and applications) have their own interpretation of the specifications and that the specifications give room for interpretation.

Sticking to the specifications and standards is always a good idea, but the validation will not help you with that.
Toxaris is offline   Reply With Quote
Old 04-18-2014, 01:35 PM   #28
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,588
Karma: 204624552
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by Toxaris View Post
Sticking to the specifications and standards is always a good idea, but the validation will not help you with that.
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.
DiapDealer is online now   Reply With Quote
Old 04-18-2014, 02:06 PM   #29
odedta
Addict
odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.
 
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.
odedta is offline   Reply With Quote
Old 04-18-2014, 04:19 PM   #30
skreutzer
Software Developer
skreutzer considers 'yay' to be a thoroughly cromulent word.skreutzer considers 'yay' to be a thoroughly cromulent word.skreutzer considers 'yay' to be a thoroughly cromulent word.skreutzer considers 'yay' to be a thoroughly cromulent word.skreutzer considers 'yay' to be a thoroughly cromulent word.skreutzer considers 'yay' to be a thoroughly cromulent word.skreutzer considers 'yay' to be a thoroughly cromulent word.skreutzer considers 'yay' to be a thoroughly cromulent word.skreutzer considers 'yay' to be a thoroughly cromulent word.skreutzer considers 'yay' to be a thoroughly cromulent word.skreutzer considers 'yay' to be a thoroughly cromulent word.
 
skreutzer's Avatar
 
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.
skreutzer is offline   Reply With Quote
Reply

Tags
validation error


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 08:37 AM.


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