Fix "a.m." in ocr spell check - thx RedSoxFan04 :)

Related to #5380
This commit is contained in:
niksedk 2021-10-14 21:38:57 +02:00
parent cf0a1edb2a
commit f15f130704

View File

@ -1522,7 +1522,7 @@ namespace Nikse.SubtitleEdit.Logic.Ocr
.All(w => w.Length > 2 && (DoSpell(w) || IsWordKnownOrNumber(word, line)));
}
if (!correct && word.Length == 1 && i < words.Count - 1 && words[i + 1].Length == 1)
if (word.Length == 1 && i < words.Count - 1 && words[i + 1].Length == 1)
{
var abbreviation = word + "." + words[i + 1] + ".";
if (_abbreviationList.Contains(abbreviation) && line.Contains(abbreviation, StringComparison.Ordinal))