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:
niksedk 2011-11-15 07:46:58 +00:00
parent 6529518a28
commit e046d40e9e

View File

@ -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))