Crate aligner

Source
Expand description

aligner takes two timespan arrays (e.g. from two subtitle files) and tries to align the incorrect subtitles to the reference subtitle. It automatically fixes offsets and introduces/removes breaks between subtitles in the incorrect subtitle to achive the best alignment.

Structs§

TimeDelta
This struct represents a time difference between two TimePoints. Internally its an integer type.
TimePoint
Represents a timepoint in your own metric.
TimeSpan
Represents a time span from “start” (included) to “end” (excluded).

Traits§

ProgressHandler
Use this trait if you want more detailed information about the progress of the align operation (which might take some seconds).

Functions§

align
Matches an incorrect subtitle list to a reference subtitle list.