9 releases (breaking)
0.7.0 | Apr 11, 2021 |
---|---|
0.6.2 | Sep 30, 2019 |
0.6.1 | Aug 16, 2019 |
0.5.0 | Feb 28, 2019 |
0.1.0 | Mar 12, 2017 |
#1807 in Parser implementations
266 downloads per month
Used in 8 crates
94KB
2K
SLoC
Introduction
subparse
is a Rust library that lets use load, change and store subtitle files in various formats. Formatting and other data will be preserved.
You can find an examples how to use this library under examples/
.
Currently supported are:
- SubStationAlpha
.ssa
/.ass
- MicroDVD
.sub
- SubRip
.srt
- VobSub
.idx
and.sub
How to use the library
Add this to your Cargo.toml
:
[dependencies]
subparse = "0.7.0"
lib.rs
:
This crate provides a common interface for popular subtitle formats (.srt
, .ssa
, .ass
, .idx
, .sub
).
Files can be parsed, modified and saved again - some formats can be created from scratch. The focus is on non-destructive parsing, meaning that formatting and other information are preserved if not explicitely changed.
Dependencies
~14–20MB
~341K SLoC