4 stable releases
2.0.0 | Oct 10, 2019 |
---|---|
1.1.0 | Sep 10, 2019 |
1.0.1 | Aug 16, 2019 |
1.0.0 | Aug 14, 2019 |
#1181 in Algorithms
22 downloads per month
Used in 3 crates
130KB
2.5K
SLoC
alass-core
This Rust library contains the core algorithm for alass
, the "Automatic Language-Agnostic Subtitle Sychronization" tool. If you want to go to the command line tool instead, please click here.
How to use the library
Add this to your Cargo.toml
:
[dependencies]
alass-core = "2.0.0"
The library only contains one function that takes two sequences of time spans and returns the offsets to get the best possible alignment.
Documentaion
For much more information, please see the workspace information here.
lib.rs
:
alass
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.