Crate ccap

Source

Structs§

Caption
Type for storing captions
CaptionBlock
Caption blocks contain an optional speaker, start and end times, and the text that will be displayed on the screen during the block. Not particularly useful on their own.
NegativeSimpleTime
Error type for trying to make a negative SimpleTime
SimpleTime
Simple time object to store hours, minutes, seconds, and milliseconds.
SrtParser
Parser utilities for SRT files This parser assumes a format of:
SrtWriter
Writer utilities for SRT files
VttParser
Type for parsing VTT caption files. This parser assumes a format of:
VttWriter
Associated Functions for VTT writing

Enums§

CaptionBlockError
Error types for CaptionBlock
CaptionParserError
Error for parser
SrtParserError
Error type for SrtParser
VttParserError
Error type for VttParser

Functions§

parse_file
General parser for any caption file
write_caption
General writer for any caption file