Repository navigation
Subtitles: stop cutting a cue off after three lines - #588
Merged
Merged
Conversation
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
This was referenced Oct 10, 2026
This was referenced Oct 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
These two images are not app captures. The line breaks come from the real
caption_linesfunction (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 branchclaude/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_linesinappkit/src/player_hud.rs. The regression testa_long_cue_keeps_every_line_past_threefailed against the old cap and passes now. Host-only verification:plx_appkitplayer_hud tests pass and the--no-default-featurescheck is clean. Fullmake checkin 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