libsub
|
Reader for SubStation Alpha (SSA) and Advanced Substation Alpha (ASS) subtitles. More...
#include <ssa_reader.h>
Classes | |
class | Context |
Public Member Functions | |
SSAReader (FILE *f) | |
SSAReader (std::string subs) | |
![]() | |
std::vector< RawSubtitle > | subtitles () const |
virtual std::map< std::string, std::string > | metadata () const |
Static Public Member Functions | |
static std::vector< RawSubtitle > | parse_line (RawSubtitle base, std::string line, Context const &context) |
static void | parse_tag (RawSubtitle &sub, std::string style, Context const &context) |
Additional Inherited Members | |
![]() | |
void | warn (std::string) const |
![]() | |
std::vector< RawSubtitle > | _subs |
Reader for SubStation Alpha (SSA) and Advanced Substation Alpha (ASS) subtitles.
This reader implements some of the SSA and ASS "standards", as gathered from various documents on the web.
SSAReader::SSAReader | ( | FILE * | f | ) |
f | Subtitle file encoded in UTF-8 |
|
static |
base | RawSubtitle filled in with any required common values. |
line | SSA line string (i.e. just the subtitle, possibly with embedded stuff) |