Use typed character (if available) instead of * when skipping

This commit is contained in:
Martijn van Berkel (Flitskikker) 2022-08-31 20:44:43 +02:00
parent 2b23813c4c
commit 5c7c2d84b1

View File

@ -3963,9 +3963,18 @@ namespace Nikse.SubtitleEdit.Forms.Ocr
_abort = true;
}
else
{
string text = _vobSubOcrCharacter.ManualRecognizedCharacters;
if (text != "")
{
matches.Add(new CompareMatch(text, _vobSubOcrCharacter.IsItalic, 0, null));
}
else
{
matches.Add(new CompareMatch("*", false, 0, null));
}
}
_italicCheckedLast = _vobSubOcrCharacter.IsItalic;
}
@ -4020,7 +4029,16 @@ namespace Nikse.SubtitleEdit.Forms.Ocr
}
else
{
matches.Add(new CompareMatch("*", false, 0, null, item));
string text = _vobSubOcrCharacter.ManualRecognizedCharacters;
if (text != "")
{
matches.Add(new CompareMatch(text, _vobSubOcrCharacter.IsItalic, 0, null));
}
else
{
matches.Add(new CompareMatch("*", false, 0, null));
}
}
_italicCheckedLast = _vobSubOcrCharacter.IsItalic;
@ -4383,9 +4401,18 @@ namespace Nikse.SubtitleEdit.Forms.Ocr
_abort = true;
}
else
{
var text = _vobSubOcrNOcrCharacter.NOcrChar.Text;
if (text != "")
{
matches.Add(new CompareMatch(text, _vobSubOcrNOcrCharacter.IsItalic, 0, null));
}
else
{
matches.Add(new CompareMatch("*", false, 0, null));
}
}
_italicCheckedLast = _vobSubOcrNOcrCharacter.IsItalic;
}
@ -4418,9 +4445,18 @@ namespace Nikse.SubtitleEdit.Forms.Ocr
_abort = true;
}
else
{
var text = _vobSubOcrNOcrCharacter.NOcrChar.Text;
if (text != "")
{
matches.Add(new CompareMatch(text, _vobSubOcrNOcrCharacter.IsItalic, 0, null));
}
else
{
matches.Add(new CompareMatch("*", false, 0, null));
}
}
_italicCheckedLast = _vobSubOcrNOcrCharacter.IsItalic;
}