[−][src]Crate subparse
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.
Modules
| errors | Error-chain generated error types. |
| timetypes | Types that represent a time point, duration and time span. |
Structs
| IdxFile | Represents a reconstructable |
| MdvdFile | Represents a reconstructable |
| SrtFile | Represents a |
| SsaFile | Represents a reconstructable |
| SubtitleEntry | The data which can be read from/written to a subtitle file. |
| VobFile | Represents a |
Enums
| SubtitleFormat | All formats which are supported by this library. |
Traits
| ClonableSubtitleFile | This trick works around the limitation, that trait objects can not require Sized (or Clone). |
| SubtitleFile | This trait represents the generic interface for reading and writing subtitle information across all subtitle formats. |
Functions
| get_subtitle_format | Returns the subtitle format by the file ending and provided content. |
| get_subtitle_format_by_ending | Returns the subtitle format by the file ending. |
| get_subtitle_format_by_ending_err | Returns the subtitle format by the file ending. |
| get_subtitle_format_err | Returns the subtitle format by the file ending and provided content. |
| parse_bytes | Parse all subtitle formats, invoking the right parser given by |
| parse_str | Parse text subtitles, invoking the right parser given by |