Improve split - thx gjbundy :)

Fix #6855
This commit is contained in:
niksedk 2023-04-22 08:05:57 +02:00
parent 090253cf2f
commit 556e23d3af

View File

@ -31,7 +31,7 @@ namespace Nikse.SubtitleEdit.Core.Common
_splits.Add(new TextSplitResult(new List<string> { l1, l2 })); _splits.Add(new TextSplitResult(new List<string> { l1, l2 }));
} }
} }
else if ((language == "zh" || language == "ja" || language == "ko") && ",。?、".Contains(text[i])) else if ((language == "zh" || language == "ja" || language == "ko") && ",。?、?".Contains(text[i]))
{ {
var l1 = text.Substring(0, i + 1).Trim(); var l1 = text.Substring(0, i + 1).Trim();
var l2 = text.Substring(i + 1).Trim(); var l2 = text.Substring(i + 1).Trim();