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

@ -3964,7 +3964,16 @@ namespace Nikse.SubtitleEdit.Forms.Ocr
}
else
{
matches.Add(new CompareMatch("*", false, 0, null));
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;
@ -4384,7 +4402,16 @@ namespace Nikse.SubtitleEdit.Forms.Ocr
}
else
{
matches.Add(new CompareMatch("*", false, 0, null));
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;
@ -4419,7 +4446,16 @@ namespace Nikse.SubtitleEdit.Forms.Ocr
}
else
{
matches.Add(new CompareMatch("*", false, 0, null));
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;