From 1e97fde4976e8ae5920b2d035cc909f0d34aeef4 Mon Sep 17 00:00:00 2001 From: niksedk Date: Sun, 6 Dec 2015 10:38:39 +0100 Subject: [PATCH] Some fixes for last commits - thx xylographe :) --- libse/Forms/RemoveTextForHI.cs | 6 ++---- libse/Settings.cs | 2 ++ 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libse/Forms/RemoveTextForHI.cs b/libse/Forms/RemoveTextForHI.cs index 76b2225c1..d48d86d61 100644 --- a/libse/Forms/RemoveTextForHI.cs +++ b/libse/Forms/RemoveTextForHI.cs @@ -751,12 +751,10 @@ namespace Nikse.SubtitleEdit.Core.Forms "whispers", "whistles" }); + private bool IsHIDescription(string text) { - text = text.Trim(' ', '(', ')', '[', ']', '?', '{', '}'); - text = text.ToLower(); - - text = text.ToLower(); + text = text.Trim(' ', '(', ')', '[', ']', '?', '{', '}').ToLower(); if (text.Trim().Replace("mr. ", string.Empty).Replace("mrs. ", string.Empty).Replace("dr. ", string.Empty).Contains(' ')) AddWarning(); diff --git a/libse/Settings.cs b/libse/Settings.cs index c3500d44b..f1553f8f7 100644 --- a/libse/Settings.cs +++ b/libse/Settings.cs @@ -2886,6 +2886,8 @@ namespace Nikse.SubtitleEdit.Core textWriter.WriteElementString("BatchConvertSetMinDisplayTimeBetweenSubtitles", settings.Tools.BatchConvertSetMinDisplayTimeBetweenSubtitles.ToString()); textWriter.WriteElementString("BatchConvertLanguage", settings.Tools.BatchConvertLanguage); textWriter.WriteElementString("BatchConvertFormat", settings.Tools.BatchConvertFormat); + textWriter.WriteElementString("BatchConvertAssStyles", settings.Tools.BatchConvertAssStyles); + textWriter.WriteElementString("BatchConvertSsaStyles", settings.Tools.BatchConvertSsaStyles); textWriter.WriteElementString("ModifySelectionRule", settings.Tools.ModifySelectionRule); textWriter.WriteElementString("ModifySelectionText", settings.Tools.ModifySelectionText); textWriter.WriteElementString("ModifySelectionCaseSensitive", settings.Tools.ModifySelectionCaseSensitive.ToString());