IlgnerBri / subtitleedit

Automatically exported from code.google.com/p/subtitleedit
0 stars 0 forks source link

Ebu Stl -Text allignment #155

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
(enter only *ONE* issue in each report)
What steps will reproduce the problem?
1.I've downloaded Subtitle Edit v3.1 (modified version for ebu-stl format)
2.It's available on Issue 24
3.It works great but all text appears on the bottom/left of the screen

What is the expected output? What do you see instead?
Latest version 3.3.6 doesn't work as well as version 3.1 did it with Ebu files.
What version of the product are you using? On what operating system?
Subtitle edit 3.1. Windows 7 64 bits

Please provide any additional information below.
Hi!
It's the greatest subtitle tool that i've ever tested.
The only issue is that it doesn't keep the font size, color and allignment text 
in the exported ebu stl file.

Thanks for your help

Original issue reported on code.google.com by mandin...@gmail.com on 22 Jun 2013 at 9:05

GoogleCodeExporter commented 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

GoogleCodeExporter commented 8 years ago
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