diff --git a/Dictionaries/eng_OCRFixReplaceList.xml b/Dictionaries/eng_OCRFixReplaceList.xml index 84ed0d984..4962d5463 100644 --- a/Dictionaries/eng_OCRFixReplaceList.xml +++ b/Dictionaries/eng_OCRFixReplaceList.xml @@ -1322,6 +1322,7 @@ + diff --git a/Ocr/Latin.nocr b/Ocr/Latin.nocr index b301fa79a..cd7640bab 100644 Binary files a/Ocr/Latin.nocr and b/Ocr/Latin.nocr differ diff --git a/src/Logic/Ocr/MatchesToItalicStringConverter.cs b/src/Logic/Ocr/MatchesToItalicStringConverter.cs index 454e19ee1..438b48bda 100644 --- a/src/Logic/Ocr/MatchesToItalicStringConverter.cs +++ b/src/Logic/Ocr/MatchesToItalicStringConverter.cs @@ -1,8 +1,8 @@ -using System; +using Nikse.SubtitleEdit.Forms.Ocr; +using System; using System.Collections.Generic; using System.Linq; using System.Text; -using Nikse.SubtitleEdit.Forms.Ocr; namespace Nikse.SubtitleEdit.Logic.Ocr { @@ -57,7 +57,7 @@ namespace Nikse.SubtitleEdit.Logic.Ocr sbWord = new StringBuilder(); italicCount = 0; } - else if (m.Text != " ") + else { sbWord.Append(m.Text); if (m.Italic) @@ -81,7 +81,9 @@ namespace Nikse.SubtitleEdit.Logic.Ocr sb.Append(""); } var text = sb.ToString().Trim(); - text = text.Replace("-", "-") + text = text + .Replace("-", "-") + .Replace("-", "-") .Replace("s", "s") .Replace("s", "s") .Replace("!", "!") @@ -89,9 +91,11 @@ namespace Nikse.SubtitleEdit.Logic.Ocr .Replace("?", "?") .Replace("?", "?") .Replace("'", "'") - .Replace("''", "'") .Replace("'", "'") - .Replace("''", "'") + .Replace("''", "''") + .Replace("''", "''") + .Replace("\"", "\"") + .Replace("\"", "\"") .Replace(":", ":") .Replace(":", ":") .Replace(".", ".")