mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-22 03:02:35 +01:00
Fix for "Add missing periods" and ASSA tags - thx Firegloom :)
Fix #7952
This commit is contained in:
parent
5a2375fa57
commit
9151febbf0
@ -965,7 +965,7 @@ We leverage the intrinsic rhythm of the image.</CreateSimpleChainingToolTip>
|
|||||||
<FixDoubleDash>Fix '--' -> '...'</FixDoubleDash>
|
<FixDoubleDash>Fix '--' -> '...'</FixDoubleDash>
|
||||||
<FixDoubleGreaterThan>Remove '>>'</FixDoubleGreaterThan>
|
<FixDoubleGreaterThan>Remove '>>'</FixDoubleGreaterThan>
|
||||||
<FixEllipsesStart>Remove leading '...'</FixEllipsesStart>
|
<FixEllipsesStart>Remove leading '...'</FixEllipsesStart>
|
||||||
<FixMissingOpenBracket>Fix missing [ in line</FixMissingOpenBracket>
|
<FixMissingOpenBracket>Fix missing [ or ( in line</FixMissingOpenBracket>
|
||||||
<FixMusicNotation>Replace music symbols (e.g. âTª) with preferred symbol</FixMusicNotation>
|
<FixMusicNotation>Replace music symbols (e.g. âTª) with preferred symbol</FixMusicNotation>
|
||||||
<FixDoubleDashExample>'Whoa-- um yeah!' -> 'Whoa... um yeah!'</FixDoubleDashExample>
|
<FixDoubleDashExample>'Whoa-- um yeah!' -> 'Whoa... um yeah!'</FixDoubleDashExample>
|
||||||
<FixDoubleGreaterThanExample>'>> Robert: Sup dude!' -> 'Robert: Sup dude!'</FixDoubleGreaterThanExample>
|
<FixDoubleGreaterThanExample>'>> Robert: Sup dude!' -> 'Robert: Sup dude!'</FixDoubleGreaterThanExample>
|
||||||
|
@ -66,7 +66,7 @@ namespace Nikse.SubtitleEdit.Core.Forms.FixCommonErrors
|
|||||||
nextText = HtmlUtil.RemoveHtmlTags(next.Text, true).TrimStart('-', '"', '„').TrimStart();
|
nextText = HtmlUtil.RemoveHtmlTags(next.Text, true).TrimStart('-', '"', '„').TrimStart();
|
||||||
}
|
}
|
||||||
var isNextClose = next != null && next.StartTime.TotalMilliseconds - p.EndTime.TotalMilliseconds < 400;
|
var isNextClose = next != null && next.StartTime.TotalMilliseconds - p.EndTime.TotalMilliseconds < 400;
|
||||||
var tempNoHtml = HtmlUtil.RemoveHtmlTags(p.Text)
|
var tempNoHtml = HtmlUtil.RemoveHtmlTags(p.Text, true)
|
||||||
.Replace("\u200B", string.Empty) // Zero Width Space
|
.Replace("\u200B", string.Empty) // Zero Width Space
|
||||||
.Replace("\uFEFF", string.Empty) // Zero Width No-Break Space
|
.Replace("\uFEFF", string.Empty) // Zero Width No-Break Space
|
||||||
.TrimEnd();
|
.TrimEnd();
|
||||||
@ -196,6 +196,7 @@ namespace Nikse.SubtitleEdit.Core.Forms.FixCommonErrors
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
callbacks.UpdateFixStatus(missingPeriodsAtEndOfLine, Language.AddPeriods);
|
callbacks.UpdateFixStatus(missingPeriodsAtEndOfLine, Language.AddPeriods);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user