View Single Post
Old 02-19-2010, 05:52 PM   #21
pdurrant
The Grand Mouse 高貴的老鼠
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 74,082
Karma: 315558332
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
Quote:
Originally Posted by zdavatz View Post
Well you can check the file here: http://admin.zenogentoo.zdavatz.oper...g.firefox.epub - let me know where the wrong design decisions are!
I'm sorry for the misunderstanding. It sounds like you've done sensible things with your ePub. I meant the software that was taking much too long to open your ePub had a wrong design decision.

Looking at your epub with epubcheck, I get over 8000 error and warnings reported. Checking them, here are things you ought to change:

(1) the id attribute if items in the opf is not allowed to start with a digit. (or several other charcaters). an id attribute value is an XML Name, and most conform to the Name specification: http://www.w3.org/TR/REC-xml/#NT-Name See especially

[4] NameStartChar ::= ":" | [A-Z] | "_" | [a-z] | [#xC0-#xD6] | [#xD8-#xF6] | [#xF8-#x2FF] | [#x370-#x37D] | [#x37F-#x1FFF] | [#x200C-#x200D] | [#x2070-#x218F] | [#x2C00-#x2FEF] | [#x3001-#xD7FF] | [#xF900-#xFDCF] | [#xFDF0-#xFFFD] | [#x10000-#xEFFFF]
[4a] NameChar ::= NameStartChar | "-" | "." | [0-9] | #xB7 | [#x0300-#x036F] | [#x203F-#x2040]

Your id attribute values are mostly hexadecimal values, which often start with a digit.

Since id values are referenced from idref attributes, you have errors on idrefs as well. So fixing the id attributes will get rid of about 4,400 errors. You have a similar problem *unsurprisingly) with idref.

(2) You have some (two?) non-unique id attributes.

(3) The other 3600 errors are all of the form:
ERROR: /Users/pdurrant/Downloads/compendium_ch.oddb.org.firefox.epub/OPS/3500_Volmax.html(1): elements from namespace "" are not allowed
But I'm not sure exactly what's causing that. If might be the way your files are mixing xhtml and html, but I don't really have time to track it down.


Otherwise it looks to be in fairly good shape. It migh be that fixing the id attribute value problem with speed things up, I don't know.
pdurrant is offline   Reply With Quote