mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-25 04:33:04 +01:00
Bugfix: Lines after "..." will no longer be changed to start with upper-case letter.
git-svn-id: https://subtitleedit.googlecode.com/svn/trunk@160 99eadd0c-20b8-1223-b5c4-2a2b2df33de2
This commit is contained in:
parent
d5dd5db767
commit
24bf71f98c
@ -445,9 +445,13 @@ namespace Nikse.SubtitleEdit.Logic.OCR
|
|||||||
lastLine.EndsWith("!") ||
|
lastLine.EndsWith("!") ||
|
||||||
lastLine.EndsWith("?"))
|
lastLine.EndsWith("?"))
|
||||||
{
|
{
|
||||||
|
if (lastLine == null || !lastLine.EndsWith("..."))
|
||||||
|
{
|
||||||
|
|
||||||
if (input.Length > 0 && input[0].ToString() != input[0].ToString().ToUpper())
|
if (input.Length > 0 && input[0].ToString() != input[0].ToString().ToUpper())
|
||||||
input = input.Remove(0, 1).Insert(0, input[0].ToString().ToUpper());
|
input = input.Remove(0, 1).Insert(0, input[0].ToString().ToUpper());
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// lines ending with ". should often end at ... (of no other quotes exists near by)
|
// lines ending with ". should often end at ... (of no other quotes exists near by)
|
||||||
if ((lastLine == null || !lastLine.Contains("\"")) && input != null &&
|
if ((lastLine == null || !lastLine.Contains("\"")) && input != null &&
|
||||||
|
Loading…
Reference in New Issue
Block a user