Some improvements to ocr fix engine - thx Joel :)

This commit is contained in:
niksedk 2014-05-14 19:25:58 +02:00
parent 3ccdd47f60
commit 5480cd58e9

View File

@ -1470,6 +1470,9 @@ namespace Nikse.SubtitleEdit.Logic.OCR
bool correct = DoSpell(word);
if (!correct)
correct = DoSpell(word.Trim('\''));
if (!correct && word.Length > 3 && !word.EndsWith("ss") && !string.IsNullOrEmpty(_threeLetterIsoLanguageName) &&
(_threeLetterIsoLanguageName == "eng" || _threeLetterIsoLanguageName == "dan" || _threeLetterIsoLanguageName == "swe"|| _threeLetterIsoLanguageName == "nld"))
correct = DoSpell(word.TrimEnd('s'));
if (!correct)
correct = DoSpell(wordNoItalics);
if (!correct && _userWordList.Contains(wordNoItalics))