diff --git a/src/Forms/Main.Designer.cs b/src/Forms/Main.Designer.cs
index 6b79cf3b4..a7df936d7 100644
--- a/src/Forms/Main.Designer.cs
+++ b/src/Forms/Main.Designer.cs
@@ -2773,7 +2773,7 @@
this.toolStripSeparator11,
this.toolStripMenuItemWaveFormPlaySelection});
this.contextMenuStripWaveForm.Name = "contextMenuStripWaveForm";
- this.contextMenuStripWaveForm.Size = new System.Drawing.Size(183, 142);
+ this.contextMenuStripWaveForm.Size = new System.Drawing.Size(183, 164);
//
// addParagraphHereToolStripMenuItem
//
diff --git a/src/Forms/Main.cs b/src/Forms/Main.cs
index ba3f4ef60..27f61d415 100644
--- a/src/Forms/Main.cs
+++ b/src/Forms/Main.cs
@@ -62,10 +62,12 @@ namespace Nikse.SubtitleEdit.Forms
VideoInfo _videoInfo;
int _repeatCount = -1;
double _endSeconds = -1;
+ const double EndDelay = 0.05;
int _autoContinueDelayCount = -1;
long _lastTextKeyDownTicks = 0;
System.Windows.Forms.Timer _timerAddHistoryWhenDone = new Timer();
string _timerAddHistoryWhenDoneText;
+ double? _audioWaveFormRightClickSeconds = null;
private bool AutoRepeatContinueOn
{
@@ -316,6 +318,8 @@ namespace Nikse.SubtitleEdit.Forms
splitToolStripMenuItem1.Visible = true;
mergeWithPreviousToolStripMenuItem.Visible = true;
mergeWithNextToolStripMenuItem.Visible = true;
+
+ _audioWaveFormRightClickSeconds = seconds;
contextMenuStripWaveForm.Show(MousePosition.X, MousePosition.Y);
}
@@ -3209,6 +3213,11 @@ namespace Nikse.SubtitleEdit.Forms
}
private void SplitLineToolStripMenuItemClick(object sender, EventArgs e)
+ {
+ SplitSelectedParagraph(null);
+ }
+
+ private void SplitSelectedParagraph(double? splitSeconds)
{
if (_subtitle.Paragraphs.Count > 0 && SubtitleListview1.SelectedItems.Count > 0)
{
@@ -3222,11 +3231,13 @@ namespace Nikse.SubtitleEdit.Forms
var newParagraph = new Paragraph();
double middle = currentParagraph.StartTime.TotalMilliseconds + (currentParagraph.Duration.TotalMilliseconds / 2.0);
+ if (splitSeconds.HasValue && splitSeconds.Value > (currentParagraph.StartTime.TotalSeconds + 0.2) && splitSeconds.Value < (currentParagraph.EndTime.TotalSeconds - 0.2))
+ middle = splitSeconds.Value * 1000.0;
newParagraph.EndTime.TotalMilliseconds = currentParagraph.EndTime.TotalMilliseconds;
currentParagraph.EndTime.TotalMilliseconds = middle;
newParagraph.StartTime.TotalMilliseconds = currentParagraph.EndTime.TotalMilliseconds + 1;
- _subtitle.Paragraphs.Insert(firstSelectedIndex+1, newParagraph);
+ _subtitle.Paragraphs.Insert(firstSelectedIndex + 1, newParagraph);
string[] lines = currentParagraph.Text.Split(Environment.NewLine.ToCharArray(), StringSplitOptions.RemoveEmptyEntries);
@@ -3253,6 +3264,7 @@ namespace Nikse.SubtitleEdit.Forms
ShowStatus(_language.LineSplitted);
SubtitleListview1.SelectedIndexChanged += SubtitleListview1_SelectedIndexChanged;
RefreshSelectedParagraph();
+ _change = true;
}
}
@@ -4299,6 +4311,90 @@ namespace Nikse.SubtitleEdit.Forms
e.SuppressKeyPress = true;
}
}
+ else if (e.Modifiers == Keys.Alt && e.KeyCode == Keys.D1)
+ {
+ if (SubtitleListview1.SelectedItems.Count > 0 && _subtitle != null && mediaPlayer.VideoPlayer != null)
+ {
+ Paragraph p = _subtitle.GetParagraphOrDefault(SubtitleListview1.SelectedItems[0].Index);
+ if (p != null)
+ {
+ mediaPlayer.CurrentPosition = p.StartTime.TotalSeconds;
+ e.SuppressKeyPress = true;
+ }
+ }
+ }
+ else if (e.Modifiers == Keys.Alt && e.KeyCode == Keys.D2)
+ {
+ if (SubtitleListview1.SelectedItems.Count > 0 && _subtitle != null && mediaPlayer.VideoPlayer != null)
+ {
+ Paragraph p = _subtitle.GetParagraphOrDefault(SubtitleListview1.SelectedItems[0].Index);
+ if (p != null)
+ {
+ mediaPlayer.CurrentPosition = p.EndTime.TotalSeconds;
+ e.SuppressKeyPress = true;
+ }
+ }
+ }
+ else if (e.Modifiers == Keys.Alt && e.KeyCode == Keys.D3)
+ {
+ if (SubtitleListview1.SelectedItems.Count > 0 && _subtitle != null && mediaPlayer.VideoPlayer != null)
+ {
+ int index = SubtitleListview1.SelectedItems[0].Index -1;
+ Paragraph p = _subtitle.GetParagraphOrDefault(index);
+ if (p != null)
+ {
+ SubtitleListview1.SelectIndexAndEnsureVisible(index);
+ mediaPlayer.CurrentPosition = p.StartTime.TotalSeconds;
+ e.SuppressKeyPress = true;
+ }
+ }
+ }
+ else if (e.Modifiers == Keys.Alt && e.KeyCode == Keys.D4)
+ {
+ if (SubtitleListview1.SelectedItems.Count > 0 && _subtitle != null && mediaPlayer.VideoPlayer != null)
+ {
+ int index = SubtitleListview1.SelectedItems[0].Index + 1;
+ Paragraph p = _subtitle.GetParagraphOrDefault(index);
+ if (p != null)
+ {
+ SubtitleListview1.SelectIndexAndEnsureVisible(index);
+ mediaPlayer.CurrentPosition = p.StartTime.TotalSeconds;
+ e.SuppressKeyPress = true;
+ }
+ }
+ }
+ else if (e.Modifiers == Keys.None && e.KeyCode == Keys.F4)
+ {
+ if (SubtitleListview1.SelectedItems.Count > 0 && _subtitle != null && mediaPlayer.VideoPlayer != null)
+ {
+ mediaPlayer.Pause();
+ Paragraph p = _subtitle.GetParagraphOrDefault(SubtitleListview1.SelectedItems[0].Index);
+ if (p != null)
+ {
+ if (Math.Abs(mediaPlayer.CurrentPosition - p.StartTime.TotalSeconds) < 0.1)
+ mediaPlayer.CurrentPosition = p.EndTime.TotalSeconds;
+ else
+ mediaPlayer.CurrentPosition = p.StartTime.TotalSeconds;
+ e.SuppressKeyPress = true;
+ }
+
+ }
+ }
+ else if (e.Modifiers == Keys.None && e.KeyCode == Keys.F5)
+ {
+ if (SubtitleListview1.SelectedItems.Count > 0 && _subtitle != null && mediaPlayer.VideoPlayer != null)
+ {
+ Paragraph p = _subtitle.GetParagraphOrDefault(SubtitleListview1.SelectedItems[0].Index);
+ if (p != null)
+ {
+ mediaPlayer.CurrentPosition = p.StartTime.TotalSeconds;
+ Utilities.ShowSubtitle(_subtitle.Paragraphs, labelSubtitle, mediaPlayer.VideoPlayer);
+ mediaPlayer.Play();
+ _endSeconds = p.EndTime.TotalSeconds;
+ e.SuppressKeyPress = true;
+ }
+ }
+ }
else if (e.Modifiers == Keys.None && e.KeyCode == Keys.F6)
{
if (mediaPlayer.VideoPlayer != null)
@@ -5643,6 +5739,7 @@ namespace Nikse.SubtitleEdit.Forms
if (_endSeconds >= 0 && mediaPlayer.CurrentPosition > _endSeconds && !AutoRepeatContinueOn)
{
mediaPlayer.Pause();
+ mediaPlayer.CurrentPosition = _endSeconds + EndDelay;
_endSeconds = -1;
}
@@ -6136,12 +6233,12 @@ namespace Nikse.SubtitleEdit.Forms
}
private void splitToolStripMenuItem1_Click(object sender, EventArgs e)
- {
+ {
int index = _subtitle.GetIndex(AudioWaveForm.RightClickedParagraph);
if (index >= 0)
{
SubtitleListview1.SelectIndexAndEnsureVisible(index);
- SplitLineToolStripMenuItemClick(null, null);
+ SplitSelectedParagraph(_audioWaveFormRightClickSeconds);
}
}
diff --git a/src/Forms/Main.resx b/src/Forms/Main.resx
index 21ead9cd3..f900f0d02 100644
--- a/src/Forms/Main.resx
+++ b/src/Forms/Main.resx
@@ -291,47 +291,47 @@
iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
- YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAlySURBVFhH1VcJVJNXGo1TrTsqkLDpBEERAgjIIpsEERGE
- iEIwQEIICcEIAgJqFdGAhVZEbUUtIE4p1g2FoowoLi24sUgUsAwoI2WgUse2YrVUoSy371m1ttWqPT1z
- zvzn3PMv+d6797vf917+n8H4fzwcV14Y+z/TPSW6ZfiUiNIwdmjJdu2Q4hYzWTGMJIUwDSvC6EVFXzCF
- R3cZSEqWOK7c/deLMgg/6jZdWgSvOOXgmowG7MzrRMWxB7haDtRV9KG09C7ey21DaGhVn3HYU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II=
diff --git a/src/Forms/ShowHistory.cs b/src/Forms/ShowHistory.cs
index f755a43d5..db2feb994 100644
--- a/src/Forms/ShowHistory.cs
+++ b/src/Forms/ShowHistory.cs
@@ -38,6 +38,8 @@ namespace Nikse.SubtitleEdit.Forms
AddHistoryItemToListView(item);
}
ListViewHistorySelectedIndexChanged(null, null);
+ if (listViewHistory.Items.Count > 0)
+ listViewHistory.Items[listViewHistory.Items.Count - 1].Selected = true;
}
private void AddHistoryItemToListView(HistoryItem hi)
diff --git a/src/Logic/ImageSplitter.cs b/src/Logic/ImageSplitter.cs
index 117783846..f209b40e3 100644
--- a/src/Logic/ImageSplitter.cs
+++ b/src/Logic/ImageSplitter.cs
@@ -308,7 +308,11 @@ namespace Nikse.SubtitleEdit.Logic
(c2.A == 0 || IsColorClose(c2, Color.Black, 280)))
{
cursivePoints.Add(new Point(newX, newY));
- newX--;
+ if (newX > 1)
+ newX--;
+ else
+ cursiveOk = false;
+
newY++;
}
else
diff --git a/src/Resources/da-DK.xml b/src/Resources/da-DK.xml
index 96efbe8da..9366e87a1 100644
--- a/src/Resources/da-DK.xml
+++ b/src/Resources/da-DK.xml
@@ -372,7 +372,7 @@
Sammenlign...
Import/OCR undertekster fra VOB/IFO (dvd) ...
Importer/OCR VobSub (sub/idx) undertekst...
- Importer/OCR BluRay sup fil...
+ Importer/OCR Blu-ray sup fil...
Importer undertekster fra Matroska fil...
Importer undertekst med manuel valgt tegnsæt...
Importer tekst...
@@ -673,10 +673,10 @@ Fortsæt?
Header ikke gyldig VobSub fil: {0}
Åbn VobSub (sub/idx) undertekst...
VobSub undertekst filer
- Åbn BluRay sup fil...
- BluRay sup filer
+ Åbn Blu-ray sup fil...
+ Blu-ray sup filer
Før import af VobSub undertekst
- Før import af BluRay sup undertekst
+ Før import af Blu-ray sup undertekst
Før vis udvalgte linjer tidligere/senere
Vis tidligere/senere udført på udvalgte linjer
Dobbelt ord via regex {0}
@@ -978,7 +978,7 @@ Fortsæt?
Importer/OCR VobSub (sub/idx) undertekst
- Importer/OCR BluRay (.sup) undertekst
+ Importer/OCR Blu-ray (.sup) undertekst
OCR-metoden
OCR via Microsoft Office Document Imaging (MODI). Kræver MS Office
OCR via Tesseract
diff --git a/src/Resources/da-DK.xml.zip b/src/Resources/da-DK.xml.zip
index 5eef89dec..4b03e70b3 100644
Binary files a/src/Resources/da-DK.xml.zip and b/src/Resources/da-DK.xml.zip differ