diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-06-11 23:32:05 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-06-11 23:32:05 +0100 |
| commit | 3e299e5610b5e5929769a9ced21f8b45f8820d81 (patch) | |
| tree | 306449fa7c922d560f4ea7751c4eb635c6a68e26 /src/ssa_reader.cc | |
| parent | f7769c330bed741d39c713c206b2445b8feddfd1 (diff) | |
Support an commands in SSA.
Diffstat (limited to 'src/ssa_reader.cc')
| -rw-r--r-- | src/ssa_reader.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ssa_reader.cc b/src/ssa_reader.cc index d3555cb..c1614a8 100644 --- a/src/ssa_reader.cc +++ b/src/ssa_reader.cc @@ -239,6 +239,12 @@ SSAReader::parse_line (RawSubtitle base, string line) current.italic = true; } else if (style == "\\i0" || style == "\\i") { current.italic = false; + } else if (style == "\\an1" || style == "\\an2" || style == "\\an3") { + current.vertical_position.reference = sub::BOTTOM_OF_SCREEN; + } else if (style == "\\an4" || style == "\\an5" || style == "\\an6") { + current.vertical_position.reference = sub::CENTRE_OF_SCREEN; + } else if (style == "\\an7" || style == "\\an8" || style == "\\an9") { + current.vertical_position.reference = sub::TOP_OF_SCREEN; } style = ""; state = TEXT; |
