Skip to content

ArteCheck: take an odd missing gap frame off the previous out time - #302

Merged
niksedk merged 1 commit into
mainfrom
claude/arte-check-gap-previous-out
Oct 7, 2026
Merged

niksedk merged 1 commit into
mainfrom
claude/arte-check-gap-previous-out

Conversation

@niksedk

@niksedk niksedk commented Oct 6, 2026

Copy link
Copy Markdown
Member

Follow-up to SubtitleEdit/subtitleedit#15185 (comment from @Triathlon-rally).

A gap 1 frame short of the minimum (e.g. 4 → 5 frames) was fixed by moving the next in time one frame later (missing / 2 = 0 for the previous out time). ARTE's web implementation takes that frame off the previous out time instead, so the two tools wrote different time codes.

  • The missing frames are still shared between out and in time, but the odd frame now comes off the previous out time ((missing + 1) / 2). A 4-frame gap now keeps the next in time unchanged.
  • Capacity fallback (minimum durations) unchanged.
  • Test MinimumGap_SharedBetweenOutAndInTime updated (5 missing → 3 out / 2 in), new test MinimumGap_OneMissingFrameComesOffThePreviousOutTime.
  • README line updated.

Tests: 89 passed.

No version bump / release in this PR.

🤖 Generated with Claude Code

A 4-frame gap (1 frame short of ARTE's 5) moved the next in time one
frame later. Take that frame off the previous out time instead, like
ARTE's own tooling does; larger shortfalls are still shared, with the
odd frame on the out time.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@niksedk
niksedk merged commit c2f60d7 into main Oct 7, 2026
10 checks passed
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.

1 participant