Skip to content

Engine v2.15

Latest

Choose a tag to compare

@DozenTwelve DozenTwelve released this 30 Nov 10:12
· 18 commits to main since this release

The fixes from a full review of the Skill, and the overhaul that followed. Sync with python3 .claude/skills/papermorph/scripts/engine.py site.

Engine

  • A book inside an iframe (a SCORM package in an LMS) no longer crashes Chromium's renderer on "Open the book": framed pages skip the cover and page view transitions. check_scorm.py --selftest now runs in CI and names the step a crash happens at.
  • On iPhone and iPad the volume slider now reaches the narration, listen-and-find lines and the chime: after the first tap they play through Web Audio, the only volume iOS lets a page set. Not yet checked on a device.
  • Captions no longer split at a no-break space (330 000 km stays together), inside Arabic vowel marks, or in the middle of a word in unpunctuated Japanese.
  • A book sets its caption width with --caption-chars in lib/book.css (default 42); a bad value is named in the console. A short's caption position can be changed from the book's own book.css.
  • <html data-hold="0.3"> sets the hold after each beat (default 0.6 s), for a short with a hard length limit.
  • No lookbehind regular expressions, which Safari before 16.4 could not parse. Not yet checked on a device.
  • Listen-and-find no longer keeps an audio element per clip or downloads each clip twice; the follow camera keeps moving while a question waits; smaller accessibility fixes on the cover and the step list.

Skill and kits

  • Tools say what they could not do: export.py stops on a missing picture, eleven.py --max-pause no longer crashes on ffmpeg 9, lint.py checks chapter folders not named chNN, frames.py drops grey paper, perf.py measures listen-and-find scenes, new_book.py refuses a slug that would write outside site/.
  • Kits name a misspelt picture, clip, cue, meme, icon or region in the console, and check.py fails on console errors, on text cut by the frame and on a palette whose title cannot be read; it warns on text under the caption. data-cut marks words a close-up crops on purpose.
  • Music is judged by one test: every word is heard over it (music.py mix).
  • Moved from reference books into the kits: markAt, thinkCloud that follows a moving head, pageTurn, picPuppet (a builder for image-model figures), a documentary's credits section written from SOURCES.tsv (commons.py credits), say() marks, closeups() labels that follow their subject, clip() for real footage, and moment() for a film's question beats. Series and end cards are optional helpers; puppets can be shot upright, and shorts have X's 4:5 frame.
  • The globe no longer stalls for a third of a second the first time it appears.
  • Docs: right-to-left notes moved to core/rtl.md, effects and music to films/effects-and-music.md; the shared core is under 12,000 words again. A sixth rule for changing the Skill: what a book tells its readers is checked against the original record, with a "Checking the facts" section in films.md.

Books made with the v2.15 kits need this engine.