Expand description
Cue segmentation: phrase grouping, splitting, merging, line breaking.
Donor: CutRight cutright-captions (itself ported from video-media’s
caption model). Deterministic: identical words + config give identical cues.
Structs§
- Caption
Config - Per-profile segmentation limits.
- Cue
- One caption cue on the output timeline. Cues never overlap.
Enums§
- Profile
- Named segmentation profile (replaces CutRight’s timeline
Preset).
Functions§
- build_
cues - Builds non-overlapping cues from output-time words.
- normalize_
words - Trims, drops empty/zero-length words, collapses inner whitespace and clamps overlaps so each word ends no later than the next starts.