cl-cookbook icon indicating copy to clipboard operation
cl-cookbook copied to clipboard

epub doesn't work in Google Play books

Open vchudnov opened this issue 9 months ago • 5 comments

Thanks for putting together and maintaining this very helpful resource! I've been using the Cookbook extensively on the web, and decided to pay for an epub via https://lispcookbook.github.io/cl-cookbook/#download-in-epub. However, when I try to upload the epub to my Google Play Books account, after a while the book title is listed with a warning "Processing Failed". Is there something missing/incorrect in the epub file?

Image

vchudnov avatar Mar 10 '25 14:03 vchudnov

I get the error too. When Google Play Books issues that error there's no way of convincing it to accept the file, so there's nothing you can do at yours of Google's end.

pamoroso avatar Mar 10 '25 15:03 pamoroso

Thanks for your support and glad the Cookbook was useful to you.

Is there something missing/incorrect in the epub file?

this needs more investigation :/

vindarel avatar Mar 10 '25 15:03 vindarel

It would help to run the file through an ePub validator. Warnings are usually mostly not a problem, but there's some correlation between errors and Google Play Books refusing the file.

pamoroso avatar Mar 10 '25 16:03 pamoroso

Validating using EPUB version 3.3 rules.
ERROR(RSC-005): common-lisp-cookbook.epub/EPUB/text/ch002.xhtml(40,18): Error while parsing file: Duplicate ID "two-cols"
ERROR(RSC-005): common-lisp-cookbook.epub/EPUB/text/ch002.xhtml(63,18): Error while parsing file: Duplicate ID "two-cols"
ERROR(RSC-005): common-lisp-cookbook.epub/EPUB/text/ch002.xhtml(80,18): Error while parsing file: Duplicate ID "two-cols"
ERROR(RSC-005): common-lisp-cookbook.epub/EPUB/text/ch014.xhtml(392,8): Error while parsing file: element "style" not allowed here; expected the element end-tag, text, element "a", "abbr", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "blockquote", "br", "button", "canvas", "cite", "code", "data", "datalist", "del", "details", "dfn", "dialog", "div", "dl", "em", "embed", "epub:switch", "epub:trigger", "fieldset", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hgroup", "hr", "i", "iframe", "img", "input", "ins", "kbd", "label", "link", "main", "map", "mark", "menu", "meta", "meter", "nav", "ns1:math", "ns2:svg", "object", "ol", "output", "p", "picture", "pre", "progress", "q", "ruby", "s", "samp", "script", "section", "select", "slot", "small", "span", "strong", "sub", "sup", "table", "template", "textarea", "time", "u", "ul", "var", "video" or "wbr" (with xmlns:ns1="http://www.w3.org/1998/Math/MathML" xmlns:ns2="http://www.w3.org/2000/svg") or an element from another namespace
FATAL(RSC-016): common-lisp-cookbook.epub/EPUB/text/ch025.xhtml(464,16): Fatal Error while parsing file: Attribute name "me" associated with an element type "PERSON" must be followed by the ' = ' character.
ERROR(RSC-005): common-lisp-cookbook.epub/EPUB/text/ch039.xhtml(203,49): Error while parsing file: element "uri" not allowed here; expected the element end-tag, text, element "a", "abbr", "area", "audio", "b", "bdi", "bdo", "br", "button", "canvas", "cite", "code", "data", "datalist", "del", "dfn", "em", "embed", "epub:switch", "i", "iframe", "img", "input", "ins", "kbd", "label", "link", "map", "mark", "meta", "meter", "ns1:math", "ns2:svg", "object", "output", "picture", "progress", "q", "ruby", "s", "samp", "script", "select", "slot", "small", "span", "strong", "sub", "sup", "template", "textarea", "time", "u", "var", "video" or "wbr" (with xmlns:ns1="http://www.w3.org/1998/Math/MathML" xmlns:ns2="http://www.w3.org/2000/svg") or an element from another namespace
FATAL(RSC-016): common-lisp-cookbook.epub/EPUB/text/ch039.xhtml(203,79): Fatal Error while parsing file: The element type "uri" must be terminated by the matching end-tag "</uri>".
ERROR(RSC-012): common-lisp-cookbook.epub/EPUB/toc.ncx(2776,79): Fragment identifier is not defined.
[…]
ERROR(RSC-012): common-lisp-cookbook.epub/EPUB/nav.xhtml(17,50695): Fragment identifier is not defined.
[…]
ERROR(RSC-007): common-lisp-cookbook.epub/EPUB/text/ch002.xhtml(47,53): Referenced resource "EPUB/text/strings.html" could not be found in the EPUB.
ERROR(RSC-007): common-lisp-cookbook.epub/EPUB/text/ch002.xhtml(51,29): Referenced resource "EPUB/text/equality.html" could not be found in the EPUB.
ERROR(RSC-007): common-lisp-cookbook.epub/EPUB/text/ch002.xhtml(72,28): Referenced resource "EPUB/text/process.html" could not be found in the EPUB.
ERROR(RSC-007): common-lisp-cookbook.epub/EPUB/text/ch006.xhtml(236,122): Referenced resource "EPUB/text/packages.html" could not be found in the EPUB.
ERROR(RSC-007): common-lisp-cookbook.epub/EPUB/text/ch008.xhtml(271,68): Referenced resource "EPUB/text/debugging.html" could not be found in the EPUB.
ERROR(RSC-007): common-lisp-cookbook.epub/EPUB/text/ch008.xhtml(368,94): Referenced resource "EPUB/text/getting-started.html" could not be found in the EPUB.
ERROR(RSC-007): common-lisp-cookbook.epub/EPUB/text/ch009.xhtml(222,106): Referenced resource "EPUB/text/error_handling.md" could not be found in the EPUB.
ERROR(RSC-007): common-lisp-cookbook.epub/EPUB/text/ch012.xhtml(707,182): Referenced resource "EPUB/text/equality.html" could not be found in the EPUB.
ERROR(RSC-007): common-lisp-cookbook.epub/EPUB/text/ch012.xhtml(797,89): Referenced resource "cl-cookbook/iteration.html" could not be found in the EPUB.
ERROR(RSC-007): common-lisp-cookbook.epub/EPUB/text/ch022.xhtml(179,120): Referenced resource "EPUB/text/clos.html" could not be found in the EPUB.
ERROR(RSC-007): common-lisp-cookbook.epub/EPUB/text/ch026.xhtml(234,86): Referenced resource "EPUB/text/clos.html" could not be found in the EPUB.
ERROR(RSC-007): common-lisp-cookbook.epub/EPUB/text/ch030.xhtml(101,278): Referenced resource "EPUB/text/getting-started.html" could not be found in the EPUB.
ERROR(RSC-007): common-lisp-cookbook.epub/EPUB/text/ch034.xhtml(277,44): Referenced resource "EPUB/text/type.html" could not be found in the EPUB.
ERROR(RSC-007): common-lisp-cookbook.epub/EPUB/text/ch035.xhtml(561,54): Referenced resource "EPUB/text/testing.html" could not be found in the EPUB.
ERROR(RSC-007): common-lisp-cookbook.epub/EPUB/text/ch037.xhtml(507,287): Referenced resource "EPUB/text/clos.html" could not be found in the EPUB.
ERROR(RSC-007): common-lisp-cookbook.epub/EPUB/text/ch038.xhtml(184,138): Referenced resource "EPUB/text/in%20the%20works" could not be found in the EPUB.
ERROR(RSC-007): common-lisp-cookbook.epub/EPUB/text/ch040.xhtml(89,142): Referenced resource "EPUB/text/process.html" could not be found in the EPUB.

Check finished with errors
Messages: 2 fatals / 122 errors / 0 warnings / 0 infos

EPUBCheck completed

2 fatals:

FATAL(RSC-016): common-lisp-cookbook.epub/EPUB/text/ch025.xhtml(464,16): Fatal Error while parsing file: Attribute name "me" associated with an element type "PERSON" must be followed by the ' = ' character.

FATAL(RSC-016): common-lisp-cookbook.epub/EPUB/text/ch039.xhtml(203,79): Fatal Error while parsing file: The element type "uri" must be terminated by the matching end-tag "</uri>".

with epubcheck (apt install epubcheck) or https://www.epubvalidation.com/validate

vindarel avatar Mar 11 '25 11:03 vindarel

I am using

pandoc 2.5

calibre (calibre 6.4)

vindarel avatar Mar 11 '25 11:03 vindarel