mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-23 19:52:48 +01:00
Work on #3682
This commit is contained in:
parent
6fb4bfb1c1
commit
1c2283a550
@ -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
|
||||
|
@ -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));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user