mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-24 20:22:41 +01:00
Merge pull request #8060 from ivandrofly/feature/ocr-engine-fix
Adjust FixCommonOcrLineErrors implementation in OcrFixEngine
This commit is contained in:
commit
19eb96a2b4
@ -868,9 +868,9 @@ namespace Nikse.SubtitleEdit.Logic.Ocr
|
||||
private string FixCommonOcrLineErrors(string input, Subtitle subtitle, int index, string lastLine, string lastLastLine)
|
||||
{
|
||||
var text = input;
|
||||
text = _ocrFixReplaceList.FixOcrErrorViaLineReplaceList(input, subtitle, index);
|
||||
text = _ocrFixReplaceList.FixOcrErrorViaLineReplaceList(text, subtitle, index);
|
||||
text = FixOcrErrorsViaHardcodedRules(text, lastLine, lastLastLine, _abbreviationList);
|
||||
text = _ocrFixReplaceList.FixOcrErrorViaLineReplaceList(input, subtitle, index);
|
||||
text = _ocrFixReplaceList.FixOcrErrorViaLineReplaceList(text, subtitle, index);
|
||||
|
||||
if (Configuration.Settings.Tools.OcrFixUseHardcodedRules)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user