Work on ocr

This commit is contained in:
Nikolaj Olsson 2018-11-22 16:12:12 +01:00
parent be3c48149c
commit 87af4f872c
3 changed files with 13 additions and 9 deletions

View File

@ -1976,6 +1976,8 @@
<Word from="bomberjust" to="bomber just" />
<Word from="Ilovedit" to="I loved it" />
<Word from="PIaza" to="Plaza" />
<Word from="youll" to="you'll" />
<Word from="Icould" to="I could" />
</WholeWords>
<PartialWordsAlways>
<!-- Will be replaced always -->
@ -2431,9 +2433,13 @@
<Beginning from="He' s " to="He's " />
<Beginning from="She' s " to="She's " />
<Beginning from="O kay, " to="Okay, " />
<Beginning from="l didn't" to="I didn't" />
<Beginning from="l don't" to="I don't" />
<Beginning from="-1 " to="- I" />
<Beginning from="l didn't" to="I didn't" />
<Beginning from="l don't" to="I don't" />
<Beginning from="-1 " to="- I" />
<Beginning from="I'II " to="I'll " />
<Beginning from="Do l " to="Do I " />
<Beginning from="-] " to="- I " />
<Beginning from="] " to="I " />
</BeginLines>
<EndLines>
<Ending from=", sin" to=", sir." />
@ -2469,7 +2475,6 @@
<RegEx find="^-1t (\p{L})" replaceWith="- It $1" />
<RegEx find="^-_\.(\p{L})" replaceWith="- ...$1" />
<RegEx find="^_\.\.(\p{L})" replaceWith="...$1" />
<!-- <RegEx find="(\p{L}{2,})&quot;s " replaceWith="$1's " /> -->
<!-- <RegEx find="(\p{L}{2,})&quot;s " replaceWith="$1's " /> -->
</RegularExpressions>
</OCRFixReplaceList>
</OCRFixReplaceList>

View File

@ -5162,6 +5162,7 @@ This file is generated/updated by Multi Translator
<name>Sánchez</name>
<name>Sancho</name>
<name>Sanders</name>
<name>Sanderson</name>
<name>Sandra</name>
<name>Sandy</name>
<name>Sanjay</name>

View File

@ -6971,9 +6971,7 @@ namespace Nikse.SubtitleEdit.Forms.Ocr
DialogResult result = saveFileDialog1.ShowDialog(this);
if (result == DialogResult.OK)
{
_fromMenuItem = true;
Bitmap bmp = GetSubtitleBitmap(_selectedIndex);
_fromMenuItem = false;
var bmp = GetSubtitleBitmap(_selectedIndex);
if (bmp == null)
{
MessageBox.Show("No image!");