Book to App Framework

My book to app framework is designed to produce 'book apps' simply by swapping new content into a reusable structure. Built with Flutter, TextPainter proved too unreliable for fitting hundreds of words into the available space on a phone screen. I use a method that incrementally fills the available space until it might be overfilled, providing content does not run out, and then backtracks a word or two to find the exact page boundary.

The current code is tuned for reliability rather than raw speed, but in practice it still paginates at roughly 1000 words per second, device dependent.

Features

  • Font and device dependent page at a time rendering.
  • A long scroll mode that allows for image insertion.
  • Text to speech with page at a time mode, with optional automatic page turn.
  • Page selection, if previously rendered.
  • Reliable pagination.

Basic Use

  • A plain text file sets the book content.
  • A plain text file sets the book title.
  • A plain text file sets the book author.
  • A plain text file sets a publisher preamble.
  • A png determines the book cover.

Advanced Use

  • A JSON file determines text decoration, in pages and long scroll mode.
  • A JSON file determines image insertion, in long scroll mode only.
Menu page of framework app, and a rendered page.

An example Android book app made using the framework - H.G. Wells, The Time Machine.

Download Android APK - The Time Machine