Updated changelog + minor spell check fix

git-svn-id: https://subtitleedit.googlecode.com/svn/trunk@2419 99eadd0c-20b8-1223-b5c4-2a2b2df33de2
This commit is contained in:
niksedk 2014-01-24 05:36:39 +00:00
parent da74f63bcf
commit c8fefeb530
2 changed files with 31 additions and 2 deletions

View File

@ -11,6 +11,7 @@
* Updated Chinese language file - thx Leon
* Updated German language file - thx Siegwarth
* Updated Dutch language file - thx Quetsbeek
* Updated Brazilian Portuguese language file - thx Igor Rücker
* Many settings now remembered from "Export to image based foramt"
* Dropping a video file on empty waveform will now start extraction of waveform - thx Leon
* Better reading of SCC files

View File

@ -218,9 +218,25 @@ namespace Nikse.SubtitleEdit.Forms
richTextBoxParagraph.SelectionLength = word.Text.Length;
richTextBoxParagraph.SelectionColor = Color.Red;
}
else
else if (richTextBoxParagraph.Text.Substring(idx + 3).StartsWith(word.Text))
{
MessageBox.Show("Test");
if (idx > newLine1)
idx--;
if (idx > newLine2)
idx--;
richTextBoxParagraph.SelectionStart = idx + 3;
richTextBoxParagraph.SelectionLength = word.Text.Length;
richTextBoxParagraph.SelectionColor = Color.Red;
}
else if (idx > 2 && richTextBoxParagraph.Text.Substring(idx -2).StartsWith(word.Text))
{
if (idx > newLine1)
idx--;
if (idx > newLine2)
idx--;
richTextBoxParagraph.SelectionStart = idx -2;
richTextBoxParagraph.SelectionLength = word.Text.Length;
richTextBoxParagraph.SelectionColor = Color.Red;
}
}
@ -754,6 +770,18 @@ namespace Nikse.SubtitleEdit.Forms
}
else
{
if (_prefix != null && _prefix == "''" && _currentWord.EndsWith("''"))
{
_prefix = string.Empty;
_currentSpellCheckWord.Index += 2;
_currentWord = _currentWord.Trim("'".ToCharArray());
}
if (_prefix != null && _prefix == "'" && _currentWord.EndsWith("'"))
{
_prefix = string.Empty;
_currentSpellCheckWord.Index++;
_currentWord = _currentWord.Trim("'".ToCharArray());
}
if (_postfix != null && _postfix == "'")
{