mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-25 04:33:04 +01:00
Merge branch 'master' of https://github.com/SubtitleEdit/subtitleedit
This commit is contained in:
commit
e864dbbe18
@ -10,10 +10,10 @@ namespace Nikse.SubtitleEdit.Forms
|
|||||||
{
|
{
|
||||||
public partial class TimedTextProperties : PositionAndSizeForm
|
public partial class TimedTextProperties : PositionAndSizeForm
|
||||||
{
|
{
|
||||||
private Subtitle _subtitle;
|
private readonly Subtitle _subtitle;
|
||||||
private XmlDocument _xml;
|
private readonly XmlDocument _xml;
|
||||||
private XmlNamespaceManager _nsmgr;
|
private readonly XmlNamespaceManager _nsmgr;
|
||||||
private string _NA;
|
private readonly string _NA;
|
||||||
|
|
||||||
public TimedTextProperties(Subtitle subtitle)
|
public TimedTextProperties(Subtitle subtitle)
|
||||||
{
|
{
|
||||||
@ -40,7 +40,10 @@ namespace Nikse.SubtitleEdit.Forms
|
|||||||
_xml.LoadXml(subtitle.Header); // load default xml
|
_xml.LoadXml(subtitle.Header); // load default xml
|
||||||
}
|
}
|
||||||
_nsmgr = new XmlNamespaceManager(_xml.NameTable);
|
_nsmgr = new XmlNamespaceManager(_xml.NameTable);
|
||||||
_nsmgr.AddNamespace("ttml", "http://www.w3.org/ns/ttml");
|
_nsmgr.AddNamespace("ttml", TimedText10.TtmlNamespace);
|
||||||
|
_nsmgr.AddNamespace("ttp", TimedText10.TtmlParameterNamespace);
|
||||||
|
_nsmgr.AddNamespace("tts", TimedText10.TtmlStylingNamespace);
|
||||||
|
_nsmgr.AddNamespace("ttm", TimedText10.TtmlMetadataNamespace);
|
||||||
|
|
||||||
XmlNode node = _xml.DocumentElement.SelectSingleNode("ttml:head/ttml:metadata/ttml:title", _nsmgr);
|
XmlNode node = _xml.DocumentElement.SelectSingleNode("ttml:head/ttml:metadata/ttml:title", _nsmgr);
|
||||||
if (node != null)
|
if (node != null)
|
||||||
|
@ -10,10 +10,10 @@ namespace Nikse.SubtitleEdit.Forms
|
|||||||
{
|
{
|
||||||
public partial class TimedTextPropertiesItunes : PositionAndSizeForm
|
public partial class TimedTextPropertiesItunes : PositionAndSizeForm
|
||||||
{
|
{
|
||||||
private Subtitle _subtitle;
|
private readonly Subtitle _subtitle;
|
||||||
private XmlDocument _xml;
|
private readonly XmlDocument _xml;
|
||||||
private XmlNamespaceManager _nsmgr;
|
private readonly XmlNamespaceManager _nsmgr;
|
||||||
private string _NA;
|
private readonly string _NA;
|
||||||
|
|
||||||
public TimedTextPropertiesItunes(Subtitle subtitle)
|
public TimedTextPropertiesItunes(Subtitle subtitle)
|
||||||
{
|
{
|
||||||
@ -40,7 +40,10 @@ namespace Nikse.SubtitleEdit.Forms
|
|||||||
_xml.LoadXml(subtitle.Header); // load default xml
|
_xml.LoadXml(subtitle.Header); // load default xml
|
||||||
}
|
}
|
||||||
_nsmgr = new XmlNamespaceManager(_xml.NameTable);
|
_nsmgr = new XmlNamespaceManager(_xml.NameTable);
|
||||||
_nsmgr.AddNamespace("ttml", "http://www.w3.org/ns/ttml");
|
_nsmgr.AddNamespace("ttml", TimedText10.TtmlNamespace);
|
||||||
|
_nsmgr.AddNamespace("ttp", TimedText10.TtmlParameterNamespace);
|
||||||
|
_nsmgr.AddNamespace("tts", TimedText10.TtmlStylingNamespace);
|
||||||
|
_nsmgr.AddNamespace("ttm", TimedText10.TtmlMetadataNamespace);
|
||||||
|
|
||||||
XmlNode node = _xml.DocumentElement.SelectSingleNode("ttml:head/ttml:metadata/ttml:title", _nsmgr);
|
XmlNode node = _xml.DocumentElement.SelectSingleNode("ttml:head/ttml:metadata/ttml:title", _nsmgr);
|
||||||
if (node != null)
|
if (node != null)
|
||||||
|
Loading…
Reference in New Issue
Block a user