Open walkingthehills opened 6 months ago
Thanks for the report!
I fixed the cover image issue for HTML output in 7a105c5 just now.
The epub build error you’re seeing is because the system commands used to package the epub are specific to Unix-like OSs. The most durable solution is probably to do the zipping operation using Racket code rather than try building a Windows equivalent sequence of commands.
I've downloaded the code, installed Racket and Pollen, and then did as the README.MD file says, i.e. raco pollen render book.html. Everything works fine, but the book cover doesn't appear. When I checked book.html there was no image quoted on this line:
. When I check book.poly.pmd this line is present: ◊(define-meta cover-image "img/king-cover.jpg"). If I edit book.html and include the name of the image file, everything works fine. Any thoughts?
My other problem, is that when I try to create the ebook, I get the following error:
C:\Webmaster,pnfs.org.uk\web\projects\books\original>raco pollen render book.epub pollen: rendering book.epub pollen: rendering /book.poly.pmd as epub The system cannot find the path specified. Error building epub file! context...: body of 'g5781 C:\Users\melba\AppData\Roaming\Racket\8.11.1\pkgs\pollen\pollen\render.rkt:411:0: render-markup-or-markdown-source C:\Users\melba\AppData\Roaming\Racket\8.11.1\pkgs\pollen\pollen\render.rkt:337:25: render C:\Users\melba\AppData\Roaming\Racket\8.11.1\pkgs\pollen\pollen\private\cache-utils.rkt:124:2: generate-dest-file C:\Program Files\Racket\collects\file\cache.rkt:63:2: fetch-and-continue C:\Program Files\Racket\collects\racket\contract\private\arrow-val-first.rkt:555:3 C:\Users\melba\AppData\Roaming\Racket\8.11.1\pkgs\pollen\pollen\private\cache-utils.rkt:114:0: cache-ref! C:\Program Files\Racket\collects\racket\private\more-scheme.rkt:377:2: hash-ref! C:\Users\melba\AppData\Roaming\Racket\8.11.1\pkgs\pollen\pollen\render.rkt:277:0: render-to-file-base C:\Users\melba\AppData\Roaming\Racket\8.11.1\pkgs\pollen\pollen\render.rkt:183:25: render-batch C:\Users\melba\AppData\Roaming\Racket\8.11.1\pkgs\pollen\pollen\private\external\logging.rkt:46:0: with-intercepted-logging body of (submod "C:\Users\melba\AppData\Roaming\Racket\8.11.1\pkgs\pollen\pollen\private\command.rkt" raco) C:\Program Files\Racket\collects\raco\raco.rkt:41:0 body of "C:\Program Files\Racket\collects\raco\raco.rkt" body of "C:\Program Files\Racket\collects\raco\main.rkt"
Again, any thoughts