Skip to main content

Module segment

Module segment 

Source
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§

CaptionConfig
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.