text: Fix handling of unbreakable-space in ssa subtitles
The character sequence \h is used for "unbreakable space". Replace these sequences with space to avoid strings of \h showing up on screen.
This commit is contained in:
parent
744c57c87d
commit
efd5265e87
@ -264,7 +264,8 @@ public final class SsaDecoder extends SimpleSubtitleDecoder {
|
||||
String text =
|
||||
SsaStyle.Overrides.stripStyleOverrides(rawText)
|
||||
.replaceAll("\\\\N", "\n")
|
||||
.replaceAll("\\\\n", "\n");
|
||||
.replaceAll("\\\\n", "\n")
|
||||
.replaceAll("\\\\h", " ");
|
||||
Cue cue = createCue(text, style, styleOverrides, screenWidth, screenHeight);
|
||||
|
||||
int startTimeIndex = addCuePlacerholderByTime(startTimeUs, cueTimesUs, cues);
|
||||
|
Loading…
x
Reference in New Issue
Block a user