mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-10-27 22:42:38 +01:00
Improve new "auto br" for Arabic - thx OmrSi :)
This commit is contained in:
parent
0ef41970c3
commit
ef127588f8
@ -9,7 +9,8 @@ namespace Nikse.SubtitleEdit.Core
|
||||
private readonly List<TextSplitResult> _splits;
|
||||
private readonly List<TextSplitResult> _allSplits;
|
||||
private readonly int _singleLineMaxLength;
|
||||
private const string EndLineChars = ".!?…";
|
||||
private const string EndLineChars = ".!?…؟";
|
||||
private const string Commas = ",،";
|
||||
|
||||
public TextSplit(string text, int singleLineMaxLength, string language)
|
||||
{
|
||||
@ -53,7 +54,7 @@ namespace Nikse.SubtitleEdit.Core
|
||||
}
|
||||
if (breakEarlyComma)
|
||||
{
|
||||
var s = GetBestEnding(",");
|
||||
var s = GetBestEnding(Commas);
|
||||
if (s != null)
|
||||
{
|
||||
return s;
|
||||
|
Loading…
Reference in New Issue
Block a user