mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-23 03:33:18 +01:00
Some improvements to ocr fix engine - thx Joel :)
This commit is contained in:
parent
3ccdd47f60
commit
5480cd58e9
@ -1470,6 +1470,9 @@ namespace Nikse.SubtitleEdit.Logic.OCR
|
|||||||
bool correct = DoSpell(word);
|
bool correct = DoSpell(word);
|
||||||
if (!correct)
|
if (!correct)
|
||||||
correct = DoSpell(word.Trim('\''));
|
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)
|
if (!correct)
|
||||||
correct = DoSpell(wordNoItalics);
|
correct = DoSpell(wordNoItalics);
|
||||||
if (!correct && _userWordList.Contains(wordNoItalics))
|
if (!correct && _userWordList.Contains(wordNoItalics))
|
||||||
|
Loading…
Reference in New Issue
Block a user