![]() |
#1 |
The Fumbler
![]() Posts: 66
Karma: 10
Join Date: Jun 2015
Device: android 4.2/fbreader
|
Validating Epub
The Sigil menu has an option to validate the file using FlightCrew. No such option is available in Calibre Editor. If (in Calibre Editor) I "Run the Bug" (i.e. Tools-Check Book) is that the same or comparable to validating with such as FlightCrew, or how do they compare?
Thanks |
![]() |
![]() |
![]() |
#2 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,047
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
IMHO A bit better
![]() It suggests some corrections which would be used if you were to use the full 'Try and correct all' (I belong to the Full-Auto-is undesired crowd. I do sometimes let it fix a category of issue.) It also does not (falsely?) flag some issues that Flight crew does? |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,342
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Check Book is designed to warn you of problems that might actually affect the working of your book on real world devices, unlike epubcheck and flight crew, which mostly perform useless schema validation.
Check Book also gives you detailed information on how to fix many errors and is smart enough to auto fix quite a few if you ask it to. But note, that passing Check Book is absolutely no guarantee that your book will later also pass epubcheck. |
![]() |
![]() |
![]() |
#4 |
The Fumbler
![]() Posts: 66
Karma: 10
Join Date: Jun 2015
Device: android 4.2/fbreader
|
Thank you, that explanation is helpful. There are no guarantees in life, but we try just the same.
|
![]() |
![]() |
![]() |
#5 | ||
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 82
Karma: 25684
Join Date: Sep 2014
Device: Kindle NT
|
Why not including also epub-check validation?
![]() Quote:
Code:
<p><p>text</p></p> Code:
<p>text</p><img alt="img" src="img01.png" /> or <i><p>text</p></i> or <p><div>text</div></p> Code:
<p><font size="2">text</font></p> or .font{size:2} Code:
<navMap><navPoint id="num_1" playOrder="2">
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> Code:
<package xmlns="http://www.idpf.org/2007/opf" unique-identifier="uuid-id" version="1.0"> Code:
<img src="img01.png" /> Quote:
Code:
ncx: <meta content="b" name="dtb:uid"/> opf: <dc:identifier opf:scheme="uuid" id="uuid_id">a</dc:identifier> Code:
<navPoint id="num_1" playOrder="1"> ... <navPoint id="num_2" playOrder="1"> Code:
preserveAspectRatio="yes" Last edited by senhal; 07-08-2015 at 03:17 AM. |
||
![]() |
![]() |
Advert | |
|
![]() |
#6 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,342
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Not a single one of those will prevent the book from working on any decent epub reading software. They are all examples of the mostly useless schema validation checks I talked about previously. And run the autofix html tool in the editor to fix half the html related "errors" automatically.
What people often fail to grasp is that HTML parsing is now a robustly solved problem. Regardless of what mess you make of your HTML, all modern HTML renders will parse it with the same algorithm to give you the same final result. That algorithm is codified in the HTML 5 standard. Therefore, all you need to do is check your html against a single rendering engine and you are largely done. XHTML and it's accompanying schema checks are trying to solve a problem that no longer exists. The problems that are very relevant today are deviations in different HTML renderers from what the standard specifies (and note I said renderer, not parser) or areas the standard does not cover. And epubcheck cannot help you with either of those, since, by its very nature it only checks against the standard. About the only use I have ever found for epubcheck is to detect typos in code areas made during hand crafting an epub file. This can often point out mistakes that you would otherwise only detect by actually looking at the book in a renderer. Your last example, of preserveAspectRatio is one such case. |
![]() |
![]() |
![]() |
#7 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 82
Karma: 25684
Join Date: Sep 2014
Device: Kindle NT
|
Thanks for your reply, everything's clear
![]() |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
validating epub fails - how do I correct? | BeccaPrice | ePub | 14 | 06-12-2013 02:01 PM |
Validating epub returns warning | writerkit | Conversion | 2 | 03-30-2013 02:35 AM |
Issues validating EPUB for iPad | godsmac | Calibre | 13 | 06-26-2011 09:02 PM |
ePub books validating in French or English for the iBookStore | lavomat | Introduce Yourself | 8 | 12-25-2010 08:39 AM |