rpub
rpub copied to clipboard
Default project files don't pass epubcheck 3.0.1
Running rpub generate followed by rpub compile generates an ePub that throws the following error in epubcheck 3.0.1.
ERROR: /Users/bkhour/Development/rpub_test/untitled-book-0.0.0.epub/OEBPS/content.opf: Obsolete or irregular DOCTYPE statement. The DOCTYPE can be removed.
ERROR: /Users/bkhour/Development/rpub_test/untitled-book-0.0.0.epub/OEBPS/content.opf(20,11): element "spine" incomplete; missing required element "itemref"
ERROR: /Users/bkhour/Development/rpub_test/untitled-book-0.0.0.epub/OEBPS/toc.ncx(14,12): element "navMap" incomplete; missing required element "navPoint"
WARNING: /Users/bkhour/Development/rpub_test/untitled-book-0.0.0.epub/OEBPS/toc.ncx: Irregular DOCTYPE: found '-//W3C//DTD XHTML 1.1//EN', expecting '<!DOCTYPE ncx PUBLIC "-//NISO//DTD ncx 2005-1//EN" "http://www.daisy.org/z3986/2005/ncx-2005-1.dtd">'.
Check finished with warnings or errors
Interesting. Would you care to submit a pull request for (some of) these errors?
I'd love to but I'm afraid it's a bit beyond my ability at the moment—if by pull request you mean that I could attempt a solution? I'm an editor and publisher by trade and have only been studying code for about 6 months. Hope to help more as my skills improve.
I'd love to but I'm afraid it's a bit beyond my ability at the moment—if by pull request you mean that I could attempt a solution
Yes, attempt to change the code to address these warnings. If you do want to give it a try and need any help, let me know. If not, no worries, I'll see if I can tackle them somewhere soon. Regardless, thanks for reporting the issue!
Thanks for the offer of help—I'll have a look at the code and see if I can understand enough to make more of a contribution.