For self-publishers, a professionally formatted ePub is non-negotiable. The core challenge is ensuring your book’s reflowable text renders beautifully across thousands of devices, from a phone to an e-ink reader. AI-assisted automation is revolutionizing this technical process, but strategic human oversight remains critical for true ePub excellence.
The AI-Assisted Foundation: Semantic Structure
Begin by instructing your AI tool with precision: “Convert this DOCX to ePub3 with semantic HTML and a mobile-first CSS.” This command sets the stage for clean, device-agnostic code. The most crucial step is using Heading Styles (H1, H2, H3) exclusively in your manuscript. These become the semantic backbone for your table of contents and navigation. Always validate that the generated NCX/nav document matches this structure exactly—click every link.
Smart, Reflowable Styling with CSS
Automation excels at applying consistent, resilient CSS. A key directive is to “Apply a CSS reset that normalizes margins and uses `rem` units.” Relative units like `rem` and `em` are essential for reflow. For example, replace bad, fixed declarations like font-size: 12pt; margin-left: 50px; with good, flexible ones like font-size: 1rem; margin-left: 2em;. This ensures text scales appropriately when a user changes the font size or rotates their screen.
For images, the rule is absolute: “Ensure all images have `max-width: 100%` and are wrapped in `
Critical AI QA Checks You Must Perform
Automation can introduce subtle reflow bugs. You must test rigorously. A common problem is a floated image at the bottom of a chapter causing the next chapter heading to wrap awkwardly. Check special formatting: do drop caps using ::first-letter cause indentation issues? Avoid any manual tabs, spaces for indentation, or text boxes.
Test all internal links—cross-references and endnotes—and verify the “Back” button functionality. Use tools like Reedsy Studio’s built-in preview to test reflow instantly, but also test on real devices. Open the file in Apple Books, send it to your Kindle via “Send to Kindle,” and, if possible, test on a Kobo or Nook app.
For a comprehensive guide with detailed workflows, templates, and additional strategies, see my e-book: AI-Assisted E-book Formatting for Self-Publishers.