This commit is contained in:
niksedk 2019-09-03 14:29:23 +02:00
parent 6fb4bfb1c1
commit 1c2283a550
2 changed files with 2 additions and 2 deletions

View File

@ -708,7 +708,7 @@ namespace Nikse.SubtitleEdit.Forms
if (!correct && _languageName.StartsWith("ar_", StringComparison.Ordinal))
{
correct = DoSpell(_currentWord.Trim('٠', '١', '٢', '٣', '٤', '٥', '٦', '٧', '٨', ', '.', ',', '،'));
correct = DoSpell(_currentWord.Trim('0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '.', ',', '،'));
}
}
else

View File

@ -1290,7 +1290,7 @@ namespace Nikse.SubtitleEdit.Logic.Ocr
}
var words = new List<string>();
foreach (var w in tempLine.Replace("<i>", string.Empty).Replace("</i>", string.Empty).Split(' ', '\r', '\n'))
foreach (var w in tempLine.Replace("<i>", string.Empty).Replace("</i>", string.Empty).Split(' ', '\r', '\n', '-'))
{
words.Add(w.Trim(trimChars));
}