Minor fix for assa tag helper

This commit is contained in:
Nikolaj Olsson 2021-06-14 23:07:33 +02:00
parent 3b656f81aa
commit 08c0265e5b
2 changed files with 6 additions and 5 deletions

View File

@ -2,11 +2,11 @@
3.6.2 BETA (xth July 2021)
* NEW:
* Keep ASSA override tags (no html for italic/font etc. in text box)
* Keep ASSA override tags (no html for italic/font etc.)
* ASSA override tag helper (shortcut + custom templates)
* Shortcuts for video contrast/brightness (mpv only)
* Waveform "Right-click + Ctrl" will toggle select of a subtitle
* Waveform "Right-click + Shift" will select a range subtitles
* Waveform "Right-click + Shift" will select a range of subtitles
* Add a few profiles for Amazon Prime
* Add new FCE rule: "Remove first dash in non-dialogs"
* IMPROVED:
@ -30,6 +30,7 @@
* Fix for italic in DCinemaSmpte2007/2010/2014 - thx Marko
* Minor fix for "Remove text for HI" - thx igenaya
* Minor fix for split with zero time codes - thx darnn
* Try to fix Tools - Join... with different ASSA styles - thx Joe
3.6.1 (20th May 2021)

View File

@ -310,12 +310,12 @@ namespace Nikse.SubtitleEdit.Logic
var keywords = Configuration.Settings.Tools.AssaTagTemplates.Select(p => new IntellisenseItem(p.Tag, p.Hint, false)).ToList();
keywords.AddRange(Keywords);
keywords = (activeTagToCursor.StartsWith('\\') ? keywords.Select(p => new IntellisenseItem(p.Value.TrimStart('{'), p.Hint, p.AllowInTransformations)) : keywords.Select(p => p)).ToList();
keywords = (activeTagToCursor.StartsWith('\\') ? keywords.Select(p => new IntellisenseItem(p.Value.TrimStart('{'), p.Hint, p.AllowInTransformations, p.HelpLink)) : keywords.Select(p => p)).ToList();
if (textBeforeCursor.EndsWith("\\t(", StringComparison.Ordinal))
{
// use smaller list inside transformation
keywords = Keywords.Where(p => p.AllowInTransformations).Select(p => new IntellisenseItem(p.Value.TrimStart('{'), p.Hint, p.AllowInTransformations)).ToList();
keywords = Keywords.Where(p => p.AllowInTransformations).Select(p => new IntellisenseItem(p.Value.TrimStart('{'), p.Hint, p.AllowInTransformations, p.HelpLink)).ToList();
activeTagToCursor = string.Empty;
}
@ -328,7 +328,7 @@ namespace Nikse.SubtitleEdit.Logic
// continuing ass tag, remove "{\" + "}"
activeTagToCursor = string.Empty;
filteredList = keywords
.Select(p => new IntellisenseItem(p.Value.Replace("{\\", string.Empty).RemoveChar('}'), p.Hint, p.AllowInTransformations))
.Select(p => new IntellisenseItem(p.Value.Replace("{\\", string.Empty).RemoveChar('}'), p.Hint, p.AllowInTransformations, p.HelpLink))
.ToList();
}