Support underline in SSA/ASS.
authorCarl Hetherington <cth@carlh.net>
Sun, 3 Jul 2016 20:47:45 +0000 (21:47 +0100)
committerCarl Hetherington <cth@carlh.net>
Sun, 3 Jul 2016 20:47:45 +0000 (21:47 +0100)
src/ssa_reader.cc

index 630eb29a47ff8442cd6a4a5ed13c4d93087990ad..58d2e7c3fe834e11b0b31db9699aae2e253f94be 100644 (file)
@@ -248,6 +248,10 @@ SSAReader::parse_line (RawSubtitle base, string line)
                                        current.bold = true;
                                } else if (style == "\\b0") {
                                        current.bold = false;
+                               } else if (style == "\\u1") {
+                                       current.underline = true;
+                               } else if (style == "\\u0") {
+                                       current.underline = 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") {