mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-26 13:12:39 +01:00
Spell check now works better with quotation marks - thx Trottel :)
git-svn-id: https://subtitleedit.googlecode.com/svn/trunk@813 99eadd0c-20b8-1223-b5c4-2a2b2df33de2
This commit is contained in:
parent
6529518a28
commit
e046d40e9e
@ -663,7 +663,7 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
List<string> replaceNames = new List<string>();
|
||||
s = Utilities.RemoveHtmlTags(s);
|
||||
s = GetTextWithoutUserWordsAndNames(replaceIds, replaceNames, s);
|
||||
_words = s.Split(" -.,?!:;\"“”()[]{}|<>/+\r\n¿¡…—♪♫".ToCharArray(), StringSplitOptions.RemoveEmptyEntries);
|
||||
_words = s.Split(" -.,?!:;\"“”()[]{}|<>/+\r\n¿¡…—♪♫„“".ToCharArray(), StringSplitOptions.RemoveEmptyEntries);
|
||||
_words = FixWordsInserUserWordAndNames(replaceIds, replaceNames, _words);
|
||||
return s;
|
||||
}
|
||||
@ -674,7 +674,7 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
private string GetTextWithoutUserWordsAndNames(List<string> replaceIds, List<string> replaceNames, string text)
|
||||
{
|
||||
|
||||
string[] wordsWithDash = text.Split(" .,?!:;\"“”()[]{}|<>/+\r\n¿¡…—♪♫".ToCharArray(), StringSplitOptions.RemoveEmptyEntries);
|
||||
string[] wordsWithDash = text.Split(" .,?!:;\"“”()[]{}|<>/+\r\n¿¡…—♪♫„“".ToCharArray(), StringSplitOptions.RemoveEmptyEntries);
|
||||
foreach (string w in wordsWithDash)
|
||||
{
|
||||
if (w.Contains("-") && DoSpell(w) && !_wordsWithDashesOrPeriods.Contains(w))
|
||||
|
Loading…
Reference in New Issue
Block a user