The docbook epub directory includes a Ruby script that can build an epub2 book. 
 Have you tried epub/bin/db2epub?

Bob Stayton
Sagehill Enterprises
[email protected]


From: Robert Nagle 
Sent: Friday, October 11, 2013 1:28 PM
To: apps docbook ; [email protected] 
Subject: Re: [docbook-apps] producing epub 2 (NOT epub 3s) -- how to do it?


I assumed that the /epub directory is still supported (although the ruby script 
might not work). 


If it is the case that /epub/docbook.xsl is no longer supported, then there 
would probably be a need to have a epub2 backward compatibility option for the 
epub3/ stylesheet. 


The Smashword error messages indicate that they are unable to read epub2 
features: 


********************from smashwords


We have run EPUBcheck on your file, and unfortunately, it has not passed 
validation. The errors found were: 

  a.. attribute "lang" from namespace "http://www.w3.org/XML/1998/namespace"; 
not allowed at this point; ignored 
  b.. attribute "properties" not allowed at this point; ignored (repeats 2 
times) 
  c.. attribute "property" not allowed at this point; ignored (repeats 10 
times) 
  d.. attribute "type" from namespace "http://www.idpf.org/2007/ops"; not 
allowed at this point; ignored (repeats 50 times) 
  e.. bad value for attribute "version" 
  f.. required attributes missing (repeats 11 times) 
  g.. text not allowed here (repeats 10 times) 
  h.. unfinished element (repeats 6 times) 
  i.. unknown element "footer" from namespace "http://www.w3.org/1999/xhtml"; 
(repeats 8 times) 
  j.. unknown element "header" from namespace "http://www.w3.org/1999/xhtml"; 
(repeats 8 times) 
  k.. unknown element "nav" from namespace "http://www.w3.org/1999/xhtml"; 
  l.. unknown element "section" from namespace "http://www.w3.org/1999/xhtml"; 
(repeats 6 times)


Smashwords is quickly becoming a major distributor of ebooks -- although 
they've been using an older verison of epubcheck. They accept only epub files 
which can pass the older test. 




Robert, 

If I remember correctly there is an epub  directory in the stylesheet 
distribution that creates epub2. It is unsupported as Keith is no longer 
maintaining it.  It may still be a good starting point. 

Carlos

-- 
Robert Nagle
6121 Winsome Ln #56C, Houston TX 77057-5581
(H) 713 893 3424/ (W) 832-251-7522 Carbon Neutral Since Jan 2010
http://www.robertnagle.info 

Reply via email to