libsub
Classes | Public Member Functions | Static Public Member Functions | List of all members
sub::SSAReader Class Reference

Reader for SubStation Alpha (SSA) and Advanced Substation Alpha (ASS) subtitles. More...

#include <ssa_reader.h>

Inheritance diagram for sub::SSAReader:
Inheritance graph
[legend]
Collaboration diagram for sub::SSAReader:
Collaboration graph
[legend]

Classes

class  Context
 

Public Member Functions

 SSAReader (FILE *f)
 
 SSAReader (std::string subs)
 
- Public Member Functions inherited from sub::Reader
std::vector< RawSubtitlesubtitles () const
 
virtual std::map< std::string, std::string > metadata () const
 

Static Public Member Functions

static std::vector< RawSubtitleparse_line (RawSubtitle base, std::string line, Context const &context)
 
static void parse_tag (RawSubtitle &sub, std::string style, Context const &context)
 

Additional Inherited Members

- Protected Member Functions inherited from sub::Reader
void warn (std::string) const
 
- Protected Attributes inherited from sub::Reader
std::vector< RawSubtitle_subs
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ SSAReader()

SSAReader::SSAReader ( FILE *  f)
Parameters
fSubtitle file encoded in UTF-8

Member Function Documentation

◆ parse_line()

vector< RawSubtitle > SSAReader::parse_line ( RawSubtitle  base,
std::string  line,
Context const &  context 
)
static
Parameters
baseRawSubtitle filled in with any required common values.
lineSSA line string (i.e. just the subtitle, possibly with embedded stuff)
Returns
List of RawSubtitles to represent line with vertical reference TOP_OF_SUBTITLE.

The documentation for this class was generated from the following files: