mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-22 03:02:35 +01:00
Added extra TTML inline attribute
This commit is contained in:
parent
e94935623a
commit
cb4ada3ef6
@ -497,6 +497,14 @@ namespace Nikse.SubtitleEdit.Core.SubtitleFormats
|
||||
paragraph.Attributes.Append(ttsExtentAttribute);
|
||||
}
|
||||
|
||||
string ttsTextAlign = GetEffect(p, "tts:textAlign");
|
||||
if (!string.IsNullOrEmpty(ttsTextAlign))
|
||||
{
|
||||
XmlAttribute ttsTextAlignAttribute = xml.CreateAttribute("tts:textAlign", "http://www.w3.org/ns/10/ttml#style");
|
||||
ttsTextAlignAttribute.InnerText = ttsTextAlign;
|
||||
paragraph.Attributes.Append(ttsTextAlignAttribute);
|
||||
}
|
||||
|
||||
if (subtitle.Header != null && p.Style != null && headerStyles.Contains(p.Style))
|
||||
{
|
||||
if (p.Style != defaultStyle)
|
||||
@ -680,6 +688,10 @@ namespace Nikse.SubtitleEdit.Core.SubtitleFormats
|
||||
{
|
||||
SetEffect(p, "tts:extent", node.Attributes["tts:extent"].Value);
|
||||
}
|
||||
if (node.Attributes["tts:textAlign"] != null)
|
||||
{
|
||||
SetEffect(p, "tts:textAlign", node.Attributes["tts:textAlign"].Value);
|
||||
}
|
||||
|
||||
if (node.ParentNode.Name == "div")
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user