FA-78117 / Subtitle cue timing / Member archive
Proportional cue splitting: part weight · case 02
Empty fragments become zero-length cues.
Case contract
Split cue [start,end] into len(parts) consecutive cues. Each part weighs max(1, len(part.strip())). Boundary after part k is start + floor(dur * cumulative_weight_k / total_weight); pieces are contiguous and the last ends at end. Output [s,e,part.strip()].
Why this case matters
Subtitle timing defects shift, hide or overlap captions that viewers depend on for comprehension and accessibility.
One recorded failure
Sample boundary fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| regression: part weight | [[1000, 1199, "ok"], [1199, 1199, ""], [1199, 1799, "friend"], [1799, 1999, "ok"]] | [[1000, 1181, "ok"], [1181, 1272, ""], [1272, 1817, "friend"], [1817, 1999, "ok"]] | Failed |
MEMBER ARCHIVE
The complete case is available to members.
This record includes three runnable implementations, regression fixtures, execution results, and source hashes.
Member access is invitation-based. Sign in with your invited account to inspect the sources.
Sign in to the archive ↗