Skip to content

Subtitles: stop cutting a cue off after three lines - #588

Merged
GLinnik21 merged 1 commit into
mainfrom
claude/fix-subtitle-cutoff-up4ng9
Oct 10, 2026
Merged

GLinnik21 merged 1 commit into
mainfrom
claude/fix-subtitle-cutoff-up4ng9

Conversation

@GLinnik21

@GLinnik21 GLinnik21 commented Oct 10, 2026 •

Copy link
Copy Markdown
Collaborator

Requested by BEB · project thread

Closes #585

Before: A plain-text subtitle cue kept only its first three wrapped lines, so a cue with its own line breaks lost its tail (more showed at Small, less at Large).

After: Every line of an ordinary long cue is drawn. The block grows upward from its baseline.

Before (3-line cap) After
before after

These two images are not app captures. The line breaks come from the real caption_lines function (same cue, Medium size), drawn at the app's caption geometry (36 px bold, 48 px pitch, baseline 100 px from the bottom, 4-offset outline) over a plain gradient. The "before" image is the first three of those lines, which is what the old cap kept. A TV or simulator capture is still owed. The images live on the throwaway branch claude/pr-588-screenshots, which is not for merge.

The cap on caption lines is now a safety bound of 8 instead of 3. The Timing capsule keeps its fixed y and still clears three lines (CAPSULE_CLEAR_LINES); a rarer taller cue can overlap it.

How: the wrap/cap logic moved into a pure caption_lines in appkit/src/player_hud.rs. The regression test a_long_cue_keeps_every_line_past_three failed against the old cap and passes now. Host-only verification: plx_appkit player_hud tests pass and the --no-default-features check is clean. Full make check in the cloud shows only the known root/sandbox filesystem and network failures, none in caption code.

🤖 Generated with Claude Code

https://claude.ai/code/session_011FYQTiyjibbYeg97yWe5em

The plain-text caption kept only the first three wrapped lines, so a cue with
its own line breaks lost its tail (more at Small, fewer at Large). The cap is
now a safety bound of eight; the Timing capsule keeps clearing three lines.

Closes #585

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_011FYQTiyjibbYeg97yWe5em
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Subtitles longer than 3 lines are cut off

2 participants