mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-25 20:52:44 +01:00
Work on OCR
This commit is contained in:
parent
94754fc3de
commit
d52a9994ad
@ -399,12 +399,22 @@
|
||||
<Word from="sätterpå" to="sätter på" />
|
||||
<Word from="stårpå" to="står på" />
|
||||
<Word from="tillhörpå" to="tillhör på" />
|
||||
<Word from="AIIa" to="Alla" />
|
||||
<Word from="AIIt" to="Allt" />
|
||||
<Word from="SIuta" to="Sluta" />
|
||||
<Word from="ÖIen" to="Ölen" />
|
||||
<Word from="BIått" to="Blått" />
|
||||
<Word from="GIöm" to="Glöm" />
|
||||
<Word from="SIäpp" to="Släpp" />
|
||||
<Word from="BIås" to="Blås" />
|
||||
<Word from="BIi" to="Bli" />
|
||||
</WholeWords>
|
||||
<PartialWordsAlways />
|
||||
<PartialWords>
|
||||
<!-- Will be used to check words not in dictionary -->
|
||||
<!-- If new word(s) exists in spelling dictionary, it(they) is accepted -->
|
||||
<WordPart from="¤" to="o" />
|
||||
<WordPart from="I" to="l" />
|
||||
<WordPart from="fi" to="fi" />
|
||||
<WordPart from="â" to="ä" />
|
||||
<WordPart from="/" to="l" />
|
||||
@ -441,12 +451,23 @@
|
||||
<WordPart from="ärp" to="är p" />
|
||||
</PartialWords>
|
||||
<WholeLines />
|
||||
<PartialLinesAlways />
|
||||
<PartialLinesAlways>
|
||||
<LinePart from="Apollo 1 3" to="Apollo 13" />
|
||||
<LinePart from=",.," to="..." />
|
||||
<LinePart from=" l " to=" I " />
|
||||
<LinePart from=" l." to=" I." />
|
||||
<LinePart from=" l?" to=" I?" />
|
||||
<LinePart from=" l!" to=" I!" />
|
||||
<LinePart from=" . " to=". " />
|
||||
</PartialLinesAlways>
|
||||
<PartialLines />
|
||||
<BeginLines>
|
||||
<Beginning from="Ln " to="In " />
|
||||
<Beginning from="U ppfattat" to="Uppfattat" />
|
||||
</BeginLines>
|
||||
<EndLines />
|
||||
<RegularExpressions />
|
||||
<RegularExpressions>
|
||||
<RegEx find="\b\|\b" replaceWith="I" />
|
||||
<RegEx find="\b\l\b" replaceWith="I" />
|
||||
</RegularExpressions>
|
||||
</OCRFixReplaceList>
|
@ -8537,12 +8537,7 @@ namespace Nikse.SubtitleEdit.Forms.Ocr
|
||||
}
|
||||
|
||||
Cursor = Cursors.WaitCursor;
|
||||
Bitmap bitmap = GetSubtitleBitmap(subtitleListView1.SelectedItems[0].Index);
|
||||
bool oldPrompt = checkBoxPromptForUnknownWords.Checked;
|
||||
bool oldCorrect = checkBoxNOcrDrawUnknownLetters.Checked;
|
||||
checkBoxNOcrDrawUnknownLetters.Checked = false;
|
||||
string result = OcrViaNOCR(bitmap, subtitleListView1.SelectedItems[0].Index);
|
||||
checkBoxPromptForUnknownWords.Checked = oldPrompt;
|
||||
var bitmap = GetSubtitleBitmap(subtitleListView1.SelectedItems[0].Index);
|
||||
Cursor = Cursors.Default;
|
||||
using (var inspect = new VobSubNOcrCharacterInspect())
|
||||
{
|
||||
@ -8561,8 +8556,6 @@ namespace Nikse.SubtitleEdit.Forms.Ocr
|
||||
_nOcrDb.LoadOcrCharacters();
|
||||
Cursor = Cursors.Default;
|
||||
}
|
||||
|
||||
checkBoxNOcrDrawUnknownLetters.Checked = oldCorrect;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user