Skip to content

Conversation

@cycomachead
Copy link

It looks like you had a working EPUB, but I thought I'd try to draft a
script which would help with the described idea of one wisdom per page.
I've been working on a 500 page manual with pandoc lately so I thought this would be a fun distraction. It snowballed a bit.

Since someone else already made a nice GitHub action, it seems like maybe the script here would be a possibly useful contribution. :)

# This makes the ebook, then tries to open it, by default in Apple Books.
./ebooks/compile.sh
# This will unzip the EPUB file, so you can inspect the raw html.
./ebooks/compile.sh --debug

ChatGPT and Claude are pretty good at getting started and drafting lua filters, but it will usually take a few iterations to get them right. (Debugging pandoc/lua is not the easiest thing to do.)

Cheers!

P.S. I deeply miss the SF meetups. They were great.

This tries to get one wisdom per page as a scaffold.'
Some improvements to the script to debugging and tweaks for trying to center content.
@cycomachead
Copy link
Author

This is how pages look, but there are some bugs.

Screenshot 2025-08-15 at 1 45 17 AM Screenshot 2025-08-15 at 1 45 14 AM I'm sure this can be resolved, but CSS and epub is a bit different than the browser... I have less experience with epub specifically...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant