PHP Classes

validator epub

Recommend this page to a friend!

      EPub  >  All threads  >  validator epub  >  (Un) Subscribe thread alerts  
Subject:validator epub
Summary:Peter
Messages:21
Author:Peter
Date:2013-12-21 14:22:18
Update:2013-12-24 16:17:35
 
  1 - 10   11 - 20   21 - 21  

  1. validator epub   Reply   Report abuse  
Picture of Peter Peter - 2013-12-21 14:22:18
validator.idpf.org



Detected version: EPUB 2.0

Results: The following problems were found in Example.epub:
Type File Line Position Message
ERROR Body.html 5 40 elements from namespace "" are not allowed
ERROR Body.html 7 6 The markup in the document following the root element must be well-formed.
ERROR Body.html - - The markup in the document following the root element must be well-formed.

  2. Re: validator epub   Reply   Report abuse  
Picture of Asbjorn Grandt Asbjorn Grandt - 2013-12-21 16:08:55 - In reply to message 1 from Peter
I'll be needing a bit more information.

Which version of EPub, and if possible a copy of the epub in question.

You can send it to php@grandt.com


  3. Re: validator epub   Reply   Report abuse  
Picture of Peter Peter - 2013-12-22 15:47:57 - In reply to message 2 from Asbjorn Grandt
excuse my english I'm Italian .....
I'm using the whole package that you can find at this address:
github.com/benskay/PHP-Digital-Form ...

EPub.inc.php

class EPub {
const VERSION = 2.04;
const REQ_ZIP_VERSION = 1.23;


  4. Re: validator epub   Reply   Report abuse  
Picture of Asbjorn Grandt Asbjorn Grandt - 2013-12-22 16:23:30 - In reply to message 3 from Peter
That package was an experiment that failed. Besides, the EPub.php in it is *VERY* old, and the rest is suspect, as I never managed to fix the problems in the original package I cloned it from.

If you need just the EPub, please use the PHPePub package on GitHub, preferably the 3.20 branch.

  5. Re: validator epub   Reply   Report abuse  
Picture of Peter Peter - 2013-12-22 16:32:39 - In reply to message 4 from Asbjorn Grandt
ok thanks ... I try and come back here to let you know

  6. Re: validator epub   Reply   Report abuse  
Picture of Peter Peter - 2013-12-23 12:25:09 - In reply to message 5 from Peter
other tests done ... but with http://validator.idpf.org result:


Type File Line Position Message
ERROR /Body.html 5 40 elements from namespace "" are not allowed
ERROR /Body.html 7 6 The markup in the document following the root element must be well-formed.
ERROR /Body.html - - The markup in the document following the root element must be well-formed.


Version:
class EPub {
const VERSION = 3.10;
const REQ_ZIP_VERSION = 1.50;



also use EpubController.php to dynamically generate epub

Try it at this address:

ellepi.us/epub/documenti



  7. Re: validator epub   Reply   Report abuse  
Picture of Asbjorn Grandt Asbjorn Grandt - 2013-12-23 13:21:58 - In reply to message 6 from Peter
The names in the file needs to be fixed.
I get //Body.html
This is wrong, maybe EPub should filter that, but it's the first time I see it done.

The Body.html itself is quite frankly a mess.
One, it is missing the everything in the header, as well as the </body> </html> at the end.

As I said, PHP-Digital-Format-Convert-Epub-Mobi-PDF is broken. It is not mine either, I forked (copied) the project on GitHub because someone managed to coax me into give it a try, to fix it.
I couldn't at the time, not without a large investment in time.

The docx reader in it is providing a very messy result, probably because MS Word and its doc/docx format itself IS a mess, and have never been usable for any serious use. Certainly the document formats is provides is ridiculously bad.
The reader implementation in PHP-Digital-Format-Convert-Epub-Mobi-PDF just messes up the HTML the Docx reader provides even more.

  8. Re: validator epub   Reply   Report abuse  
Picture of Asbjorn Grandt Asbjorn Grandt - 2013-12-23 13:39:04 - In reply to message 6 from Peter
Did you make any modifications to the EPub.php class?

  9. Re: validator epub   Reply   Report abuse  
Picture of Peter Peter - 2013-12-23 14:20:27 - In reply to message 8 from Asbjorn Grandt
no ... I'm using http://www.phpdocx.com/sites/default/files/phpdocx_community.tar.gz without changes

  10. Re: validator epub   Reply   Report abuse  
Picture of Peter Peter - 2013-12-23 14:23:12 - In reply to message 9 from Peter
then perhaps it depends on:

EpubModel.php
TransformModel.php

 
  1 - 10   11 - 20   21 - 21