projects
/
libsub.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
96ea6d2
)
Support underline in SSA/ASS.
author
Carl Hetherington
<cth@carlh.net>
Sun, 3 Jul 2016 20:47:45 +0000
(21:47 +0100)
committer
Carl Hetherington
<cth@carlh.net>
Sun, 3 Jul 2016 20:47:45 +0000
(21:47 +0100)
src/ssa_reader.cc
patch
|
blob
|
history
diff --git
a/src/ssa_reader.cc
b/src/ssa_reader.cc
index 630eb29a47ff8442cd6a4a5ed13c4d93087990ad..58d2e7c3fe834e11b0b31db9699aae2e253f94be 100644
(file)
--- a/
src/ssa_reader.cc
+++ b/
src/ssa_reader.cc
@@
-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") {