work on assa set pos

This commit is contained in:
niksedk 2021-06-22 12:16:52 +02:00
parent 49dc8c9053
commit 55de09680d
3 changed files with 30 additions and 9 deletions

View File

@ -187,6 +187,15 @@ Note: Do check free disk space.</WaveFileMalformed>
<SelectedLinesX>Selected lines: {0}</SelectedLinesX>
<AdvancedSelection>Advanced selection</AdvancedSelection>
</AssaOverrideTags>
<AssaSetPosition>
<SetPosition>Set/get position</SetPosition>
<VideoResolutionX>Video reslution: {0}</VideoResolutionX>
<StyleAlignmentX>Style alignment: {0}</StyleAlignmentX>
<CurrentMousePositionX>Mouse position: {0}</CurrentMousePositionX>
<CurrentTextPositionX>Text position: {0}</CurrentTextPositionX>
<SetPosInfo>Click on video to toggle set/move position</SetPosInfo>
<Clipboard>Clipboard</Clipboard>
</AssaSetPosition>
<AudioToText>
<Title>Audio to text</Title>
<ExtractingAudioUsingX>Extracting audio using {0}...</ExtractingAudioUsingX>

View File

@ -108,15 +108,6 @@ namespace Nikse.SubtitleEdit.Forms.Assa
return;
}
Configuration.Settings.SubtitleSettings.AssaOverrideTagHistory = Configuration.Settings.SubtitleSettings.AssaOverrideTagHistory
.Where(p => p != styleToApply)
.ToList();
Configuration.Settings.SubtitleSettings.AssaOverrideTagHistory.Insert(0, styleToApply);
if (Configuration.Settings.SubtitleSettings.AssaOverrideTagHistory.Count > 25)
{
Configuration.Settings.SubtitleSettings.AssaOverrideTagHistory.RemoveAt(Configuration.Settings.SubtitleSettings.AssaOverrideTagHistory.Count - 1);
}
UpdatedSubtitle = new Subtitle(subtitle, false);
var indices = GetIndices(subtitle);

View File

@ -505,6 +505,27 @@ namespace Nikse.SubtitleEdit.Logic
case "AssaOverrideTags/AdvancedSelection":
language.AssaOverrideTags.AdvancedSelection = reader.Value;
break;
case "AssaSetPosition/SetPosition":
language.AssaSetPosition.SetPosition = reader.Value;
break;
case "AssaSetPosition/VideoResolutionX":
language.AssaSetPosition.VideoResolutionX = reader.Value;
break;
case "AssaSetPosition/StyleAlignmentX":
language.AssaSetPosition.StyleAlignmentX = reader.Value;
break;
case "AssaSetPosition/CurrentMousePositionX":
language.AssaSetPosition.CurrentMousePositionX = reader.Value;
break;
case "AssaSetPosition/CurrentTextPositionX":
language.AssaSetPosition.CurrentTextPositionX = reader.Value;
break;
case "AssaSetPosition/SetPosInfo":
language.AssaSetPosition.SetPosInfo = reader.Value;
break;
case "AssaSetPosition/Clipboard":
language.AssaSetPosition.Clipboard = reader.Value;
break;
case "AudioToText/Title":
language.AudioToText.Title = reader.Value;
break;