Book format

Writing a good book

Audio, ids, images and a lesson rhythm that works.

  • Target text is never translated in place. fa holds the language taught; meanings go in gloss. Romanization goes in pron, never in fa.
  • Give every target line audio where you can: one mp3 per line, mono, 44.1 or 48 kHz, trimmed, normalized to similar loudness. Name files by lesson (audio/lesson-3/…).
  • Keep ids stable. Readers’ progress, bookmarks and review cards follow block and section ids. Rename text freely; keep the ids.
  • One idea per block. Prefer several small blocks to one large text block; the reader scrolls, searches and bookmarks by block.
  • Lesson rhythm that works: lessonOpener → listen (dialogue or chat) → words (vocab) → grammar (note, rule, legend) → quickCheck along the way → exercises → goalCheck.
  • Images under 300 KB each where possible (jpg for scenes, png for diagrams). The cover is 2:3 portrait.
  • Right-to-left books set direction: "rtl". The reader lays out target text right to left and base text in its own direction.