11-17-2009, 09:59 AM | #16 | |
Created Sigil, FlightCrew
Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
|
Quote:
I'm interested in your (and other people's) thoughts on this: what should it check for etc. This project is a couple of months away until I get Sigil to a somewhat more stable state and implement the redesign + a few other major features. But I will start work on this eventually. I plan on providing separate CLI and GUI applications (very simple things) that will use the library so that people who don't want to use Sigil can still benefit from this project. Of course, since the lib will be in C++, it could also be easily linked to by applications written in, say, Python. Last edited by Valloric; 11-17-2009 at 10:02 AM. |
|
11-17-2009, 12:38 PM | #17 | |
Chocolate Grasshopper ...
Posts: 27,600
Karma: 20821184
Join Date: Mar 2008
Location: Scotland
Device: Muse HD , Cybook Gen3 , Pocketbook 302 (Black) , Nexus 10: wife has PW
|
Quote:
wooooooo!!!! of more use would be the specific error found, not some vague error statement which leaves one headscratching .... again wwwooooOOOOOOO!!!! |
|
11-17-2009, 08:51 PM | #18 |
creator of calibre
Posts: 43,860
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
I'd vote for including reader specific checks. So for example there is a page in the calibre wiki that documents the various quirks of ADE. It would be good to check for those. For example, ADE refuses to handle anchors names that start with a number. Or top level <br> tags (though I believe that was fixed in recent releases). Then are the various quirks of webkit based renderers. A place they are documented is in the EPUB output plugin in calibre, which implements work arounds for all these quirks. And of course it needs to do checking of flow sizes. Even though the flow size restriction has been mitigated in recent Adobe SDKs, it's not unlimited nd I think it's good practice to encourage people to split up their HTML anyway.
But really the most important set of tests is rendering tests and those are impossible to automate, the best that could be done is identify certain constructs that are unlikely to render correctly and warn about them. Things like fixed whitespace containers, large (wide) tables and so on. And as GeoffC said it would be very important to make the error messages actually intelligible. I'm no dunce and I have a hard time figuring out what epubcheck error messages mean. I can only imagine how cryptic it must be for people that are not as familiar with XHTML. |
11-18-2009, 06:05 AM | #19 | |
frumious Bandersnatch
Posts: 7,516
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Quote:
ID and NAME tokens must begin with a letter ([A-Za-z]) and may be followed by any number of letters, digits ([0-9]), hyphens ("-"), underscores ("_"), colons (":"), and periods ("."). Maybe that's changed in XHTML, though. |
|
11-18-2009, 09:03 AM | #20 | |
creator of calibre
Posts: 43,860
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Quote:
|
|
11-19-2009, 03:32 PM | #21 | |
Wizard
Posts: 1,196
Karma: 1281258
Join Date: Sep 2009
Device: PRS-505
|
Quote:
It doesn't guarantee that an ePub will render on current or future devices, but it does filter out elementary errors and superfluous fluff. |
|
11-19-2009, 08:50 PM | #22 | |
Created Sigil, FlightCrew
Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
|
Quote:
But that's the problem of the users, not the tool. Epubcheck makes no claims that it is the be-all, end-all epub checker. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
attribute "scheme" from namespace error in epubcheck 1.0.5 | thunderune | ePub | 15 | 06-30-2011 10:57 AM |
Possible bug in 7.4 Tag Editor error | FizzyWater | Calibre | 3 | 06-20-2010 06:11 AM |
Error parsing attribute name? | seagull | Calibre | 1 | 01-01-2010 11:30 AM |
Attribute error? | jusmee | Calibre | 2 | 12-15-2009 08:22 PM |
'BookList' object has no attribute 'add_books' Error message | nomedia | Calibre | 4 | 09-29-2008 01:50 AM |