Repository navigation
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 --selftestnow 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 kmstays together), inside Arabic vowel marks, or in the middle of a word in unpunctuated Japanese. - A book sets its caption width with
--caption-charsinlib/book.css(default 42); a bad value is named in the console. A short's caption position can be changed from the book's ownbook.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.pystops on a missing picture,eleven.py --max-pauseno longer crashes on ffmpeg 9,lint.pychecks chapter folders not namedchNN,frames.pydrops grey paper,perf.pymeasures listen-and-find scenes,new_book.pyrefuses a slug that would write outsidesite/. - Kits name a misspelt picture, clip, cue, meme, icon or region in the console, and
check.pyfails 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-cutmarks 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,thinkCloudthat follows a moving head,pageTurn,picPuppet(a builder for image-model figures), a documentary's credits section written fromSOURCES.tsv(commons.py credits),say()marks,closeups()labels that follow their subject,clip()for real footage, andmoment()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 tofilms/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 infilms.md.
Books made with the v2.15 kits need this engine.