transpect/epubtools-frontend ? reverse-engineered prompt

Reverse engineered prompt

Build me a small command line tool that takes an XHTML file and turns it into an EPUB 2 or EPUB 3 file, with support for both reflowable and fixed layouts.

It should follow the README behavior, so I can run it on Mac, Linux, or Windows, either with a simple wrapper command or through the XProc pipeline. I want to be able to pass in a source file and a configuration XML, choose an output folder, and turn on debug mode. The configuration should control things like EPUB format, layout, metadata, cover image, HTML subfolder name, indentation, and how the XHTML gets split into chapters or sections.

Please make sure referenced assets like CSS, JavaScript, and images are included in the EPUB automatically, and keep the setup working with Java 1.7 or newer. If anything about the current docs or dependencies is unclear, look up the current project docs online and wire it up the simplest way that works.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab