mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-10-27 22:42:38 +01:00
Use typed character (if available) instead of * when skipping
This commit is contained in:
parent
2b23813c4c
commit
5c7c2d84b1
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user