mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-03 04:38:33 +00:00
Replaces the hand-authored BLOCKS literal with hfMakeBlocks, a heuristic that groups words into blocks/lines from timing (pauses, punctuation, max words per block) and hfIsEmphasisWord (long, non-stopword content words) to decide which word gets the large Playfair Display emphasis treatment and its own slide-in line. computeLineSize/buildBlocks/fitBlocks and timeline construction now live inside hfBuild, closing over layout-scaled font sizes and widths. Adds the shared Blocks A-E caption-data runtime (attach/gate/brand config) and the .word/.word--emphasis CSS brand hook for --hf-caption-primary. This is the last of the five caption identities to go data-driven. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>