From b0d4bf45bee2a3d694e2ba6ee40cd186cbf2c303 Mon Sep 17 00:00:00 2001 From: niksedk Date: Mon, 21 Oct 2013 07:47:28 +0000 Subject: [PATCH] small fix for issue Issue 171 (again;) git-svn-id: https://subtitleedit.googlecode.com/svn/trunk@2154 99eadd0c-20b8-1223-b5c4-2a2b2df33de2 --- src/Forms/VobSubOcr.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/Forms/VobSubOcr.cs b/src/Forms/VobSubOcr.cs index 6b0bdf881..7eecc7d57 100644 --- a/src/Forms/VobSubOcr.cs +++ b/src/Forms/VobSubOcr.cs @@ -4913,7 +4913,15 @@ namespace Nikse.SubtitleEdit.Forms if (checkBoxTesseractMusicOn.Checked) { - if ((line.StartsWith("J' ") || line.StartsWith("J“ ") || line.StartsWith("J* ") || line.StartsWith("♪ ")) && unItalicText.Length > 3 && unItalicText.Substring(1, 2) == "' ") + if ((line.StartsWith("J' ") || line.StartsWith("J“ ") || line.StartsWith("J* ") || line.StartsWith("♪ ")) && unItalicText.Length > 3 && unItalicText.Replace("", string.Empty).Replace("", string.Empty).Substring(1, 2) == "' ") + { + unItalicText = "♪ " + unItalicText.Remove(0, 2).TrimStart(); + } + if ((line.StartsWith("J' ") || line.StartsWith("J“ ") || line.StartsWith("J* ") || line.StartsWith("♪ ")) && unItalicText.Length > 3 && unItalicText.Replace("", string.Empty).Replace("", string.Empty).Substring(1, 1) == " ") + { + unItalicText = "♪ " + unItalicText.Remove(0, 2).TrimStart(); + } + if ((line.StartsWith("J' ") || line.StartsWith("J“ ") || line.StartsWith("J* ") || line.StartsWith("♪ ")) && unItalicText.Length > 3 && unItalicText.Replace("", string.Empty).Replace("", string.Empty).Substring(2, 1) == " ") { unItalicText = "♪ " + unItalicText.Remove(0, 2).TrimStart(); }