Open GoogleCodeExporter opened 8 years ago
I corrected the problem when exporting to EBU STL. Only one line is modified.
Here's the code block:
Src/Logic/SubtitleFormatsEbu.cs
Lines: 502 to 516
-------------------------------------------------------------------------
tti.JustificationCode = saveOptions.JustificationCode;
if (p.Text.StartsWith("{\\an1}") || p.Text.StartsWith("{\\an4}") ||
p.Text.StartsWith("{\\an7}"))
{
tti.JustificationCode = 1; // 01h=left-justified text
}
else if (p.Text.StartsWith("{\\an3}") || p.Text.StartsWith("{\\an6}") ||
p.Text.StartsWith("{\\an9}"))
{
tti.JustificationCode = 3; // 03h=right-justified
}
//else if (p.Text.StartsWith("{\\an2}") || p.Text.StartsWith("{\\an5}") ||
p.Text.StartsWith("{\\an8}"))
// If it's not left- or right-justified, it's centred.
else
{
tti.JustificationCode = 2; // 02h=centred text
}
-------------------------------------------------------------------------
Additionally, italics is not working properly. When a subtitle has both lines
in italics, only the first one gets the formatting.
Original comment by adrianbe...@gmail.com
on 22 Dec 2013 at 3:45
SE has moved to GitHub - please re-add this issue at GitHub if it's still
important :)
https://github.com/SubtitleEdit/subtitleedit/issues
Original comment by nikse.dk@gmail.com
on 4 Feb 2014 at 5:24
Original issue reported on code.google.com by
mandin...@gmail.com
on 22 Jun 2013 at 9:05