|
|
@ -207,7 +207,9 @@ namespace MediaBrowser.MediaEncoding.Subtitles
|
|
|
|
text = text.Insert(start, "<font face=\"" + fontName + "\"" + extraTags + "><i>");
|
|
|
|
text = text.Insert(start, "<font face=\"" + fontName + "\"" + extraTags + "><i>");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
|
|
|
|
{
|
|
|
|
text = text.Insert(start, "<font face=\"" + fontName + "\"" + extraTags + ">");
|
|
|
|
text = text.Insert(start, "<font face=\"" + fontName + "\"" + extraTags + ">");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
int indexOfEndTag = text.IndexOf("{\\fn}", start);
|
|
|
|
int indexOfEndTag = text.IndexOf("{\\fn}", start);
|
|
|
|
if (indexOfEndTag > 0)
|
|
|
|
if (indexOfEndTag > 0)
|
|
|
@ -215,9 +217,11 @@ namespace MediaBrowser.MediaEncoding.Subtitles
|
|
|
|
text = text.Remove(indexOfEndTag, "{\\fn}".Length).Insert(indexOfEndTag, "</font>");
|
|
|
|
text = text.Remove(indexOfEndTag, "{\\fn}".Length).Insert(indexOfEndTag, "</font>");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
|
|
|
|
{
|
|
|
|
text += "</font>";
|
|
|
|
text += "</font>";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (text.Contains(@"{\fs"))
|
|
|
|
if (text.Contains(@"{\fs"))
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -236,7 +240,9 @@ namespace MediaBrowser.MediaEncoding.Subtitles
|
|
|
|
text = text.Insert(start, "<font size=\"" + fontSize + "\"" + extraTags + "><i>");
|
|
|
|
text = text.Insert(start, "<font size=\"" + fontSize + "\"" + extraTags + "><i>");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
|
|
|
|
{
|
|
|
|
text = text.Insert(start, "<font size=\"" + fontSize + "\"" + extraTags + ">");
|
|
|
|
text = text.Insert(start, "<font size=\"" + fontSize + "\"" + extraTags + ">");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
int indexOfEndTag = text.IndexOf("{\\fs}", start);
|
|
|
|
int indexOfEndTag = text.IndexOf("{\\fs}", start);
|
|
|
|
if (indexOfEndTag > 0)
|
|
|
|
if (indexOfEndTag > 0)
|
|
|
@ -244,10 +250,12 @@ namespace MediaBrowser.MediaEncoding.Subtitles
|
|
|
|
text = text.Remove(indexOfEndTag, "{\\fs}".Length).Insert(indexOfEndTag, "</font>");
|
|
|
|
text = text.Remove(indexOfEndTag, "{\\fs}".Length).Insert(indexOfEndTag, "</font>");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
|
|
|
|
{
|
|
|
|
text += "</font>";
|
|
|
|
text += "</font>";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (text.Contains(@"{\c"))
|
|
|
|
if (text.Contains(@"{\c"))
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -272,16 +280,20 @@ namespace MediaBrowser.MediaEncoding.Subtitles
|
|
|
|
text = text.Insert(start, "<font color=\"" + color + "\"" + extraTags + "><i>");
|
|
|
|
text = text.Insert(start, "<font color=\"" + color + "\"" + extraTags + "><i>");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
|
|
|
|
{
|
|
|
|
text = text.Insert(start, "<font color=\"" + color + "\"" + extraTags + ">");
|
|
|
|
text = text.Insert(start, "<font color=\"" + color + "\"" + extraTags + ">");
|
|
|
|
|
|
|
|
}
|
|
|
|
int indexOfEndTag = text.IndexOf("{\\c}", start);
|
|
|
|
int indexOfEndTag = text.IndexOf("{\\c}", start);
|
|
|
|
if (indexOfEndTag > 0)
|
|
|
|
if (indexOfEndTag > 0)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
text = text.Remove(indexOfEndTag, "{\\c}".Length).Insert(indexOfEndTag, "</font>");
|
|
|
|
text = text.Remove(indexOfEndTag, "{\\c}".Length).Insert(indexOfEndTag, "</font>");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
|
|
|
|
{
|
|
|
|
text += "</font>";
|
|
|
|
text += "</font>";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (text.Contains(@"{\1c")) // "1" specifices primary color
|
|
|
|
if (text.Contains(@"{\1c")) // "1" specifices primary color
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -306,7 +318,9 @@ namespace MediaBrowser.MediaEncoding.Subtitles
|
|
|
|
text = text.Insert(start, "<font color=\"" + color + "\"" + extraTags + "><i>");
|
|
|
|
text = text.Insert(start, "<font color=\"" + color + "\"" + extraTags + "><i>");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
|
|
|
|
{
|
|
|
|
text = text.Insert(start, "<font color=\"" + color + "\"" + extraTags + ">");
|
|
|
|
text = text.Insert(start, "<font color=\"" + color + "\"" + extraTags + ">");
|
|
|
|
|
|
|
|
}
|
|
|
|
text += "</font>";
|
|
|
|
text += "</font>";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|