mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-24 04:02:36 +01:00
Merge pull request #2202 from ivandrofly/vobsubocr
[VobSubOcr] - Minor optimizations.
This commit is contained in:
commit
46eb599c17
@ -6012,9 +6012,8 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
if (!_ocrFixEngine.IsDictionaryLoaded || !_ocrFixEngine.SpellCheckDictionaryName.StartsWith("en_"))
|
||||
return false;
|
||||
|
||||
if (line.Contains('[') && line.Contains(']'))
|
||||
line = line.Replace("[", string.Empty).Replace("]", string.Empty);
|
||||
|
||||
line = line.Replace("[", string.Empty);
|
||||
line = line.Replace("]", string.Empty);
|
||||
line = HtmlUtil.RemoveOpenCloseTags(line, HtmlUtil.TagItalic);
|
||||
|
||||
int count = 0;
|
||||
@ -6024,7 +6023,10 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
foreach (string s in arr)
|
||||
{
|
||||
if (s.Length == 1 && !@"♪♫-:'”1234567890&aAI""".Contains(s))
|
||||
{
|
||||
count++;
|
||||
break;
|
||||
}
|
||||
}
|
||||
return count > 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user