This commit is contained in:
Nikolaj Olsson 2018-12-09 15:16:36 +01:00
parent dd8a29d546
commit b5f73cb2c5
8 changed files with 104 additions and 83 deletions

View File

@ -758,6 +758,7 @@ Go to "Options -> Settings -> Tools" to enter your Google translate API ke
<TextFiles>Text files</TextFiles> <TextFiles>Text files</TextFiles>
<PreviewLinesModifiedX>Preview - subtitles modified: {0}</PreviewLinesModifiedX> <PreviewLinesModifiedX>Preview - subtitles modified: {0}</PreviewLinesModifiedX>
<TimeCodes>Time codes</TimeCodes> <TimeCodes>Time codes</TimeCodes>
<SplitAtEndChars>Split at end chars</SplitAtEndChars>
</ImportText> </ImportText>
<Interjections> <Interjections>
<Title>Interjections</Title> <Title>Interjections</Title>
@ -2016,8 +2017,6 @@ can edit in same subtitle file (collaboration)</Information>
<MainTextBoxSelectionToUpper>Selection to uppercase</MainTextBoxSelectionToUpper> <MainTextBoxSelectionToUpper>Selection to uppercase</MainTextBoxSelectionToUpper>
<MainTextBoxToggleAutoDuration>Toggle auto duration</MainTextBoxToggleAutoDuration> <MainTextBoxToggleAutoDuration>Toggle auto duration</MainTextBoxToggleAutoDuration>
<MainTextBoxAutoBreak>Auto break text</MainTextBoxAutoBreak> <MainTextBoxAutoBreak>Auto break text</MainTextBoxAutoBreak>
<MainTextBoxAutoBreakEarly1>Auto break text early after ",.?!:'" at</MainTextBoxAutoBreakEarly1>
<MainTextBoxAutoBreakEarly2>% of max. length</MainTextBoxAutoBreakEarly2>
<MainTextBoxUnbreak>Unbreak text</MainTextBoxUnbreak> <MainTextBoxUnbreak>Unbreak text</MainTextBoxUnbreak>
<MainFileSaveAll>Save all</MainFileSaveAll> <MainFileSaveAll>Save all</MainFileSaveAll>
<Miscellaneous>Misc.</Miscellaneous> <Miscellaneous>Misc.</Miscellaneous>

View File

@ -967,6 +967,7 @@ namespace Nikse.SubtitleEdit.Core
TextFiles = "Text files", TextFiles = "Text files",
PreviewLinesModifiedX = "Preview - subtitles modified: {0}", PreviewLinesModifiedX = "Preview - subtitles modified: {0}",
TimeCodes = "Time codes", TimeCodes = "Time codes",
SplitAtEndChars = "Split at end chars"
}; };
Interjections = new LanguageStructure.Interjections Interjections = new LanguageStructure.Interjections
@ -2306,8 +2307,6 @@ can edit in same subtitle file (collaboration)",
MainTextBoxSelectionToUpper = "Selection to uppercase", MainTextBoxSelectionToUpper = "Selection to uppercase",
MainTextBoxToggleAutoDuration = "Toggle auto duration", MainTextBoxToggleAutoDuration = "Toggle auto duration",
MainTextBoxAutoBreak = "Auto break text", MainTextBoxAutoBreak = "Auto break text",
MainTextBoxAutoBreakEarly1 = "Auto break text early after \",.?!:'\" at",
MainTextBoxAutoBreakEarly2 = "% of max. length",
MainTextBoxUnbreak = "Unbreak text", MainTextBoxUnbreak = "Unbreak text",
MainFileSaveAll = "Save all", MainFileSaveAll = "Save all",
Miscellaneous = "Misc.", Miscellaneous = "Misc.",

View File

@ -1981,6 +1981,9 @@ namespace Nikse.SubtitleEdit.Core
case "ImportText/TimeCodes": case "ImportText/TimeCodes":
language.ImportText.TimeCodes = reader.Value; language.ImportText.TimeCodes = reader.Value;
break; break;
case "ImportText/SplitAtEndChars":
language.ImportText.SplitAtEndChars = reader.Value;
break;
case "Interjections/Title": case "Interjections/Title":
language.Interjections.Title = reader.Value; language.Interjections.Title = reader.Value;
break; break;
@ -5473,12 +5476,6 @@ namespace Nikse.SubtitleEdit.Core
case "Settings/MainTextBoxAutoBreak": case "Settings/MainTextBoxAutoBreak":
language.Settings.MainTextBoxAutoBreak = reader.Value; language.Settings.MainTextBoxAutoBreak = reader.Value;
break; break;
case "Settings/MainTextBoxAutoBreakEarly1":
language.Settings.MainTextBoxAutoBreakEarly1 = reader.Value;
break;
case "Settings/MainTextBoxAutoBreakEarly2":
language.Settings.MainTextBoxAutoBreakEarly2 = reader.Value;
break;
case "Settings/MainTextBoxUnbreak": case "Settings/MainTextBoxUnbreak":
language.Settings.MainTextBoxUnbreak = reader.Value; language.Settings.MainTextBoxUnbreak = reader.Value;
break; break;

View File

@ -836,6 +836,7 @@
public string TextFiles { get; set; } public string TextFiles { get; set; }
public string PreviewLinesModifiedX { get; set; } public string PreviewLinesModifiedX { get; set; }
public string TimeCodes { get; set; } public string TimeCodes { get; set; }
public string SplitAtEndChars { get; set; }
} }
public class Interjections public class Interjections
@ -2181,8 +2182,6 @@
public string MainTextBoxSelectionToUpper { get; set; } public string MainTextBoxSelectionToUpper { get; set; }
public string MainTextBoxToggleAutoDuration { get; set; } public string MainTextBoxToggleAutoDuration { get; set; }
public string MainTextBoxAutoBreak { get; set; } public string MainTextBoxAutoBreak { get; set; }
public string MainTextBoxAutoBreakEarly1 { get; set; }
public string MainTextBoxAutoBreakEarly2 { get; set; }
public string MainTextBoxUnbreak { get; set; } public string MainTextBoxUnbreak { get; set; }
public string MainFileSaveAll { get; set; } public string MainFileSaveAll { get; set; }
public string Miscellaneous { get; set; } public string Miscellaneous { get; set; }

View File

@ -661,7 +661,7 @@ namespace Nikse.SubtitleEdit.Core
{ {
var lines = text.SplitToLines(); var lines = text.SplitToLines();
if (lines.Count == 1) if (lines.Count == 1)
return text; return lines[0];
var singleLine = string.Join(" ", lines); var singleLine = string.Join(" ", lines);
while (singleLine.Contains(" ")) while (singleLine.Contains(" "))

View File

@ -50,6 +50,7 @@
this.labelAutoSplitNumberOfLines = new System.Windows.Forms.Label(); this.labelAutoSplitNumberOfLines = new System.Windows.Forms.Label();
this.checkBoxAutoBreak = new System.Windows.Forms.CheckBox(); this.checkBoxAutoBreak = new System.Windows.Forms.CheckBox();
this.checkBoxGenerateTimeCodes = new System.Windows.Forms.CheckBox(); this.checkBoxGenerateTimeCodes = new System.Windows.Forms.CheckBox();
this.buttonRefresh = new System.Windows.Forms.Button();
this.groupBoxTimeCodes = new System.Windows.Forms.GroupBox(); this.groupBoxTimeCodes = new System.Windows.Forms.GroupBox();
this.labelGapBetweenSubtitles = new System.Windows.Forms.Label(); this.labelGapBetweenSubtitles = new System.Windows.Forms.Label();
this.numericUpDownGapBetweenLines = new System.Windows.Forms.NumericUpDown(); this.numericUpDownGapBetweenLines = new System.Windows.Forms.NumericUpDown();
@ -57,7 +58,6 @@
this.numericUpDownDurationFixed = new System.Windows.Forms.NumericUpDown(); this.numericUpDownDurationFixed = new System.Windows.Forms.NumericUpDown();
this.radioButtonDurationFixed = new System.Windows.Forms.RadioButton(); this.radioButtonDurationFixed = new System.Windows.Forms.RadioButton();
this.radioButtonDurationAuto = new System.Windows.Forms.RadioButton(); this.radioButtonDurationAuto = new System.Windows.Forms.RadioButton();
this.buttonRefresh = new System.Windows.Forms.Button();
this.checkBoxMergeShortLines = new System.Windows.Forms.CheckBox(); this.checkBoxMergeShortLines = new System.Windows.Forms.CheckBox();
this.checkBoxRemoveLinesWithoutLetters = new System.Windows.Forms.CheckBox(); this.checkBoxRemoveLinesWithoutLetters = new System.Windows.Forms.CheckBox();
this.groupBoxSplitting = new System.Windows.Forms.GroupBox(); this.groupBoxSplitting = new System.Windows.Forms.GroupBox();
@ -69,12 +69,12 @@
this.radioButtonLineMode = new System.Windows.Forms.RadioButton(); this.radioButtonLineMode = new System.Windows.Forms.RadioButton();
this.checkBoxRemoveEmptyLines = new System.Windows.Forms.CheckBox(); this.checkBoxRemoveEmptyLines = new System.Windows.Forms.CheckBox();
this.groupBoxImportResult = new System.Windows.Forms.GroupBox(); this.groupBoxImportResult = new System.Windows.Forms.GroupBox();
this.SubtitleListview1 = new Nikse.SubtitleEdit.Controls.SubtitleListView();
this.contextMenuStripPreview = new System.Windows.Forms.ContextMenuStrip(this.components); this.contextMenuStripPreview = new System.Windows.Forms.ContextMenuStrip(this.components);
this.startNumberingFromToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.startNumberingFromToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog(); this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
this.buttonCancel = new System.Windows.Forms.Button(); this.buttonCancel = new System.Windows.Forms.Button();
this.buttonOK = new System.Windows.Forms.Button(); this.buttonOK = new System.Windows.Forms.Button();
this.SubtitleListview1 = new Nikse.SubtitleEdit.Controls.SubtitleListView();
this.groupBoxImportText.SuspendLayout(); this.groupBoxImportText.SuspendLayout();
this.contextMenuStripListView.SuspendLayout(); this.contextMenuStripListView.SuspendLayout();
this.groupBoxImportOptions.SuspendLayout(); this.groupBoxImportOptions.SuspendLayout();
@ -96,7 +96,7 @@
this.buttonOpenText.Location = new System.Drawing.Point(475, 19); this.buttonOpenText.Location = new System.Drawing.Point(475, 19);
this.buttonOpenText.Name = "buttonOpenText"; this.buttonOpenText.Name = "buttonOpenText";
this.buttonOpenText.Size = new System.Drawing.Size(143, 21); this.buttonOpenText.Size = new System.Drawing.Size(143, 21);
this.buttonOpenText.TabIndex = 0; this.buttonOpenText.TabIndex = 4;
this.buttonOpenText.Text = "Open file..."; this.buttonOpenText.Text = "Open file...";
this.buttonOpenText.UseVisualStyleBackColor = true; this.buttonOpenText.UseVisualStyleBackColor = true;
this.buttonOpenText.Click += new System.EventHandler(this.ButtonOpenTextClick); this.buttonOpenText.Click += new System.EventHandler(this.ButtonOpenTextClick);
@ -123,7 +123,7 @@
this.checkBoxMultipleFiles.Location = new System.Drawing.Point(271, 22); this.checkBoxMultipleFiles.Location = new System.Drawing.Point(271, 22);
this.checkBoxMultipleFiles.Name = "checkBoxMultipleFiles"; this.checkBoxMultipleFiles.Name = "checkBoxMultipleFiles";
this.checkBoxMultipleFiles.Size = new System.Drawing.Size(198, 17); this.checkBoxMultipleFiles.Size = new System.Drawing.Size(198, 17);
this.checkBoxMultipleFiles.TabIndex = 5; this.checkBoxMultipleFiles.TabIndex = 2;
this.checkBoxMultipleFiles.Text = "Multiple files - one file is one subtitle"; this.checkBoxMultipleFiles.Text = "Multiple files - one file is one subtitle";
this.checkBoxMultipleFiles.UseVisualStyleBackColor = true; this.checkBoxMultipleFiles.UseVisualStyleBackColor = true;
this.checkBoxMultipleFiles.CheckedChanged += new System.EventHandler(this.checkBoxMultipleFiles_CheckedChanged); this.checkBoxMultipleFiles.CheckedChanged += new System.EventHandler(this.checkBoxMultipleFiles_CheckedChanged);
@ -220,7 +220,7 @@
this.groupBoxAutoSplitSettings.Location = new System.Drawing.Point(6, 91); this.groupBoxAutoSplitSettings.Location = new System.Drawing.Point(6, 91);
this.groupBoxAutoSplitSettings.Name = "groupBoxAutoSplitSettings"; this.groupBoxAutoSplitSettings.Name = "groupBoxAutoSplitSettings";
this.groupBoxAutoSplitSettings.Size = new System.Drawing.Size(390, 153); this.groupBoxAutoSplitSettings.Size = new System.Drawing.Size(390, 153);
this.groupBoxAutoSplitSettings.TabIndex = 6; this.groupBoxAutoSplitSettings.TabIndex = 1;
this.groupBoxAutoSplitSettings.TabStop = false; this.groupBoxAutoSplitSettings.TabStop = false;
this.groupBoxAutoSplitSettings.Text = "Auto split text settings"; this.groupBoxAutoSplitSettings.Text = "Auto split text settings";
// //
@ -232,7 +232,7 @@
this.checkBoxAutoSplitAtEnd.Location = new System.Drawing.Point(6, 119); this.checkBoxAutoSplitAtEnd.Location = new System.Drawing.Point(6, 119);
this.checkBoxAutoSplitAtEnd.Name = "checkBoxAutoSplitAtEnd"; this.checkBoxAutoSplitAtEnd.Name = "checkBoxAutoSplitAtEnd";
this.checkBoxAutoSplitAtEnd.Size = new System.Drawing.Size(109, 17); this.checkBoxAutoSplitAtEnd.Size = new System.Drawing.Size(109, 17);
this.checkBoxAutoSplitAtEnd.TabIndex = 41; this.checkBoxAutoSplitAtEnd.TabIndex = 50;
this.checkBoxAutoSplitAtEnd.Text = "Split at end chars"; this.checkBoxAutoSplitAtEnd.Text = "Split at end chars";
this.checkBoxAutoSplitAtEnd.UseVisualStyleBackColor = true; this.checkBoxAutoSplitAtEnd.UseVisualStyleBackColor = true;
this.checkBoxAutoSplitAtEnd.CheckedChanged += new System.EventHandler(this.checkBoxAutoSplitAtEnd_CheckedChanged); this.checkBoxAutoSplitAtEnd.CheckedChanged += new System.EventHandler(this.checkBoxAutoSplitAtEnd_CheckedChanged);
@ -275,7 +275,7 @@
this.textBoxAsEnd.MaxLength = 5; this.textBoxAsEnd.MaxLength = 5;
this.textBoxAsEnd.Name = "textBoxAsEnd"; this.textBoxAsEnd.Name = "textBoxAsEnd";
this.textBoxAsEnd.Size = new System.Drawing.Size(50, 21); this.textBoxAsEnd.Size = new System.Drawing.Size(50, 21);
this.textBoxAsEnd.TabIndex = 16; this.textBoxAsEnd.TabIndex = 51;
this.textBoxAsEnd.TextChanged += new System.EventHandler(this.textBoxAsEnd1_TextChanged); this.textBoxAsEnd.TextChanged += new System.EventHandler(this.textBoxAsEnd1_TextChanged);
this.textBoxAsEnd.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.textBoxAsEnd1_KeyPress); this.textBoxAsEnd.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.textBoxAsEnd1_KeyPress);
// //
@ -359,12 +359,22 @@
this.checkBoxGenerateTimeCodes.UseVisualStyleBackColor = true; this.checkBoxGenerateTimeCodes.UseVisualStyleBackColor = true;
this.checkBoxGenerateTimeCodes.CheckedChanged += new System.EventHandler(this.checkBoxGenerateTimeCodes_CheckedChanged); this.checkBoxGenerateTimeCodes.CheckedChanged += new System.EventHandler(this.checkBoxGenerateTimeCodes_CheckedChanged);
// //
// buttonRefresh
//
this.buttonRefresh.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.buttonRefresh.Location = new System.Drawing.Point(774, 735);
this.buttonRefresh.Name = "buttonRefresh";
this.buttonRefresh.Size = new System.Drawing.Size(102, 21);
this.buttonRefresh.TabIndex = 103;
this.buttonRefresh.Text = "Refresh";
this.buttonRefresh.UseVisualStyleBackColor = true;
this.buttonRefresh.Click += new System.EventHandler(this.ButtonRefreshClick);
//
// groupBoxTimeCodes // groupBoxTimeCodes
// //
this.groupBoxTimeCodes.Controls.Add(this.labelGapBetweenSubtitles); this.groupBoxTimeCodes.Controls.Add(this.labelGapBetweenSubtitles);
this.groupBoxTimeCodes.Controls.Add(this.numericUpDownGapBetweenLines); this.groupBoxTimeCodes.Controls.Add(this.numericUpDownGapBetweenLines);
this.groupBoxTimeCodes.Controls.Add(this.groupBoxDuration); this.groupBoxTimeCodes.Controls.Add(this.groupBoxDuration);
this.groupBoxTimeCodes.Controls.Add(this.buttonRefresh);
this.groupBoxTimeCodes.Enabled = false; this.groupBoxTimeCodes.Enabled = false;
this.groupBoxTimeCodes.Location = new System.Drawing.Point(6, 273); this.groupBoxTimeCodes.Location = new System.Drawing.Point(6, 273);
this.groupBoxTimeCodes.Name = "groupBoxTimeCodes"; this.groupBoxTimeCodes.Name = "groupBoxTimeCodes";
@ -454,17 +464,6 @@
this.radioButtonDurationAuto.UseVisualStyleBackColor = true; this.radioButtonDurationAuto.UseVisualStyleBackColor = true;
this.radioButtonDurationAuto.CheckedChanged += new System.EventHandler(this.RadioButtonDurationAutoCheckedChanged); this.radioButtonDurationAuto.CheckedChanged += new System.EventHandler(this.RadioButtonDurationAutoCheckedChanged);
// //
// buttonRefresh
//
this.buttonRefresh.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.buttonRefresh.Location = new System.Drawing.Point(282, 96);
this.buttonRefresh.Name = "buttonRefresh";
this.buttonRefresh.Size = new System.Drawing.Size(102, 21);
this.buttonRefresh.TabIndex = 6;
this.buttonRefresh.Text = "Refresh";
this.buttonRefresh.UseVisualStyleBackColor = true;
this.buttonRefresh.Click += new System.EventHandler(this.ButtonRefreshClick);
//
// checkBoxMergeShortLines // checkBoxMergeShortLines
// //
this.checkBoxMergeShortLines.AutoSize = true; this.checkBoxMergeShortLines.AutoSize = true;
@ -602,6 +601,48 @@
this.groupBoxImportResult.TabStop = false; this.groupBoxImportResult.TabStop = false;
this.groupBoxImportResult.Text = "Preview"; this.groupBoxImportResult.Text = "Preview";
// //
// contextMenuStripPreview
//
this.contextMenuStripPreview.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.startNumberingFromToolStripMenuItem});
this.contextMenuStripPreview.Name = "contextMenuStripPreview";
this.contextMenuStripPreview.Size = new System.Drawing.Size(199, 26);
//
// startNumberingFromToolStripMenuItem
//
this.startNumberingFromToolStripMenuItem.Name = "startNumberingFromToolStripMenuItem";
this.startNumberingFromToolStripMenuItem.Size = new System.Drawing.Size(198, 22);
this.startNumberingFromToolStripMenuItem.Text = "Start numbering from...";
this.startNumberingFromToolStripMenuItem.Click += new System.EventHandler(this.startNumberingFromToolStripMenuItem_Click);
//
// openFileDialog1
//
this.openFileDialog1.FileName = "openFileDialog1";
//
// buttonCancel
//
this.buttonCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.buttonCancel.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.buttonCancel.Location = new System.Drawing.Point(963, 735);
this.buttonCancel.Name = "buttonCancel";
this.buttonCancel.Size = new System.Drawing.Size(75, 21);
this.buttonCancel.TabIndex = 105;
this.buttonCancel.Text = "C&ancel";
this.buttonCancel.UseVisualStyleBackColor = true;
this.buttonCancel.Click += new System.EventHandler(this.ButtonCancelClick);
//
// buttonOK
//
this.buttonOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.buttonOK.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.buttonOK.Location = new System.Drawing.Point(882, 735);
this.buttonOK.Name = "buttonOK";
this.buttonOK.Size = new System.Drawing.Size(75, 21);
this.buttonOK.TabIndex = 104;
this.buttonOK.Text = "&Next >";
this.buttonOK.UseVisualStyleBackColor = true;
this.buttonOK.Click += new System.EventHandler(this.ButtonOkClick);
//
// SubtitleListview1 // SubtitleListview1
// //
this.SubtitleListview1.AllowColumnReorder = true; this.SubtitleListview1.AllowColumnReorder = true;
@ -629,54 +670,13 @@
this.SubtitleListview1.UseSyntaxColoring = true; this.SubtitleListview1.UseSyntaxColoring = true;
this.SubtitleListview1.View = System.Windows.Forms.View.Details; this.SubtitleListview1.View = System.Windows.Forms.View.Details;
// //
// contextMenuStripPreview
//
this.contextMenuStripPreview.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.startNumberingFromToolStripMenuItem});
this.contextMenuStripPreview.Name = "contextMenuStripPreview";
this.contextMenuStripPreview.Size = new System.Drawing.Size(199, 26);
//
// startNumberingFromToolStripMenuItem
//
this.startNumberingFromToolStripMenuItem.Name = "startNumberingFromToolStripMenuItem";
this.startNumberingFromToolStripMenuItem.Size = new System.Drawing.Size(198, 22);
this.startNumberingFromToolStripMenuItem.Text = "Start numbering from...";
this.startNumberingFromToolStripMenuItem.Click += new System.EventHandler(this.startNumberingFromToolStripMenuItem_Click);
//
// openFileDialog1
//
this.openFileDialog1.FileName = "openFileDialog1";
//
// buttonCancel
//
this.buttonCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.buttonCancel.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.buttonCancel.Location = new System.Drawing.Point(963, 735);
this.buttonCancel.Name = "buttonCancel";
this.buttonCancel.Size = new System.Drawing.Size(75, 21);
this.buttonCancel.TabIndex = 4;
this.buttonCancel.Text = "C&ancel";
this.buttonCancel.UseVisualStyleBackColor = true;
this.buttonCancel.Click += new System.EventHandler(this.ButtonCancelClick);
//
// buttonOK
//
this.buttonOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.buttonOK.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.buttonOK.Location = new System.Drawing.Point(882, 735);
this.buttonOK.Name = "buttonOK";
this.buttonOK.Size = new System.Drawing.Size(75, 21);
this.buttonOK.TabIndex = 3;
this.buttonOK.Text = "&Next >";
this.buttonOK.UseVisualStyleBackColor = true;
this.buttonOK.Click += new System.EventHandler(this.ButtonOkClick);
//
// ImportText // ImportText
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1056, 772); this.ClientSize = new System.Drawing.Size(1056, 772);
this.Controls.Add(this.buttonCancel); this.Controls.Add(this.buttonCancel);
this.Controls.Add(this.buttonRefresh);
this.Controls.Add(this.buttonOK); this.Controls.Add(this.buttonOK);
this.Controls.Add(this.groupBoxImportResult); this.Controls.Add(this.groupBoxImportResult);
this.Controls.Add(this.groupBoxImportOptions); this.Controls.Add(this.groupBoxImportOptions);

View File

@ -93,7 +93,13 @@ namespace Nikse.SubtitleEdit.Forms
checkBoxAutoBreak.Checked = Configuration.Settings.Tools.ImportTextAutoBreak; checkBoxAutoBreak.Checked = Configuration.Settings.Tools.ImportTextAutoBreak;
textBoxAsEnd.Text = Configuration.Settings.Tools.ImportTextAutoBreakAtEndMarkerText.Replace(" ", string.Empty); textBoxAsEnd.Text = Configuration.Settings.Tools.ImportTextAutoBreakAtEndMarkerText.Replace(" ", string.Empty);
checkBoxAutoSplitAtEnd.Checked = Configuration.Settings.Tools.ImportTextAutoBreakAtEnd; checkBoxAutoSplitAtEnd.Checked = Configuration.Settings.Tools.ImportTextAutoBreakAtEnd;
checkBoxAutoSplitAtEnd.Text = Configuration.Settings.Language.ImportText.SplitAtEndChars;
textBoxAsEnd.Left = checkBoxAutoSplitAtEnd.Left + checkBoxAutoSplitAtEnd.Width;
checkBoxAutoSplitAtBlankLines.Text = Configuration.Settings.Language.ImportText.SplitAtBlankLines;
groupBoxAutoSplitSettings.Text = Configuration.Settings.Language.Settings.Title;
labelSubMaxLen.Text = Configuration.Settings.Language.Settings.MaximumLines;
numericUpDownSubtitleLineMaximumLength.Left = labelSubMaxLen.Left + labelSubMaxLen.Width + 3;
numericUpDownSubtitleLineMaximumLength.Value = Configuration.Settings.General.SubtitleLineMaximumLength; numericUpDownSubtitleLineMaximumLength.Value = Configuration.Settings.General.SubtitleLineMaximumLength;
if (Configuration.Settings.Tools.ImportTextAutoSplitNumberOfLines >= numericUpDownAutoSplitMaxLines.Minimum && if (Configuration.Settings.Tools.ImportTextAutoSplitNumberOfLines >= numericUpDownAutoSplitMaxLines.Minimum &&
@ -211,15 +217,9 @@ namespace Nikse.SubtitleEdit.Forms
{ {
groupBoxAutoSplitSettings.Visible = true; groupBoxAutoSplitSettings.Visible = true;
groupBoxAutoSplitSettings.BringToFront(); groupBoxAutoSplitSettings.BringToFront();
checkBoxMergeShortLines.Enabled = false; checkBoxMergeShortLines.Enabled = false;
checkBoxRemoveEmptyLines.Enabled = false; checkBoxRemoveEmptyLines.Enabled = false;
checkBoxAutoBreak.Enabled = true; checkBoxAutoBreak.Enabled = true;
checkBoxAutoBreak.Text = Configuration.Settings.Language.Settings.MainTextBoxAutoBreakEarly1;
//numericUpDownAutoBreakPercent.Left = checkBoxAutoBreak.Left + checkBoxAutoBreak.Width + 2;
//labelAutoBreakPercent2.Text = Configuration.Settings.Language.Settings.MainTextBoxAutoBreakEarly2;
//labelAutoBreakPercent2.Left = numericUpDownAutoBreakPercent.Left + numericUpDownAutoBreakPercent.Width + 2;
} }
if (_refreshTimer.Enabled) if (_refreshTimer.Enabled)

View File

@ -5,8 +5,7 @@
<Version>3.5.7</Version> <Version>3.5.7</Version>
<TranslatedBy>Oversat til dansk af Nikse (mailto:nikse.dk@gmail.com)</TranslatedBy> <TranslatedBy>Oversat til dansk af Nikse (mailto:nikse.dk@gmail.com)</TranslatedBy>
<CultureName>da-DK</CultureName> <CultureName>da-DK</CultureName>
<HelpFile> <HelpFile></HelpFile>
</HelpFile>
<Ok>&amp;OK</Ok> <Ok>&amp;OK</Ok>
<Cancel>&amp;Fortryd</Cancel> <Cancel>&amp;Fortryd</Cancel>
<Apply>Anvend</Apply> <Apply>Anvend</Apply>
@ -185,6 +184,10 @@ Bemærk: Kontroller ledig diskplads.</WaveFileMalformed>
<NotConverted>Fejl</NotConverted> <NotConverted>Fejl</NotConverted>
<Converted>Konverteret</Converted> <Converted>Konverteret</Converted>
<Settings>Indstillinger</Settings> <Settings>Indstillinger</Settings>
<FixRtl>Fix RTL</FixRtl>
<FixRtlAddUnicode>Fix RTL via Unicode tags</FixRtlAddUnicode>
<FixRtlRemoveUnicode>Fjern RTL unicode tags</FixRtlRemoveUnicode>
<FixRtlReverseStartEnd>Ombyt RTL start/slut</FixRtlReverseStartEnd>
<SplitLongLines>Split lange linjer</SplitLongLines> <SplitLongLines>Split lange linjer</SplitLongLines>
<AutoBalance>Auto-balancer linjer</AutoBalance> <AutoBalance>Auto-balancer linjer</AutoBalance>
<ScanFolder>Scan mappe...</ScanFolder> <ScanFolder>Scan mappe...</ScanFolder>
@ -551,6 +554,7 @@ Bemærk: Kontroller ledig diskplads.</WaveFileMalformed>
<RemovedEmptyLine>Fjernede tom linje</RemovedEmptyLine> <RemovedEmptyLine>Fjernede tom linje</RemovedEmptyLine>
<RemovedEmptyLineAtTop>Fjernede tom linje øverst</RemovedEmptyLineAtTop> <RemovedEmptyLineAtTop>Fjernede tom linje øverst</RemovedEmptyLineAtTop>
<RemovedEmptyLineAtBottom>Fjernede tom linje i bunden</RemovedEmptyLineAtBottom> <RemovedEmptyLineAtBottom>Fjernede tom linje i bunden</RemovedEmptyLineAtBottom>
<RemovedEmptyLineInMiddle>Fjernede tom linje i midten</RemovedEmptyLineInMiddle>
<RemovedEmptyLinesUnsedLineBreaks>Fjern tomme linjer/ubrugte linjeskift</RemovedEmptyLinesUnsedLineBreaks> <RemovedEmptyLinesUnsedLineBreaks>Fjern tomme linjer/ubrugte linjeskift</RemovedEmptyLinesUnsedLineBreaks>
<EmptyLinesRemovedX>Tomme linjer fjernet: {0}</EmptyLinesRemovedX> <EmptyLinesRemovedX>Tomme linjer fjernet: {0}</EmptyLinesRemovedX>
<FixOverlappingDisplayTimes>Ret overlappende visningstider</FixOverlappingDisplayTimes> <FixOverlappingDisplayTimes>Ret overlappende visningstider</FixOverlappingDisplayTimes>
@ -684,6 +688,13 @@ Bemærk: Kontroller ledig diskplads.</WaveFileMalformed>
<PleaseWait>Vent venligst... dette kan tage et stykke tid</PleaseWait> <PleaseWait>Vent venligst... dette kan tage et stykke tid</PleaseWait>
<PoweredByGoogleTranslate>Powered by Google Translate</PoweredByGoogleTranslate> <PoweredByGoogleTranslate>Powered by Google Translate</PoweredByGoogleTranslate>
<PoweredByMicrosoftTranslate>Powered by Microsoft Bing Translate</PoweredByMicrosoftTranslate> <PoweredByMicrosoftTranslate>Powered by Microsoft Bing Translate</PoweredByMicrosoftTranslate>
<MsClientSecretNeeded>Der kræver en Bing "client secret" from Microsoft for at benytte Bing Translate.
Go to "Indstillinger -&gt; Indstillinger -&gt; Værktøj" for at indtaste din Bing "client secret".</MsClientSecretNeeded>
<GoogleApiKeyNeeded>Sorry, you need an API key from Google to use the latest Google Translate.
Go to "Indstillinger -&gt; Indstillinger -&gt; Værktøj" for at indtaste din Google translate API nøgle.</GoogleApiKeyNeeded>
<GoogleNoApiKeyWarning>Forsøger at oversætte uden API nøgle... (langsomt/begrænser/risiko for fejl)</GoogleNoApiKeyWarning>
</GoogleTranslate> </GoogleTranslate>
<GoogleOrMicrosoftTranslate> <GoogleOrMicrosoftTranslate>
<Title>Google vs Microsoft oversætter</Title> <Title>Google vs Microsoft oversætter</Title>
@ -730,6 +741,7 @@ Bemærk: Kontroller ledig diskplads.</WaveFileMalformed>
<Splitting>Opdeling</Splitting> <Splitting>Opdeling</Splitting>
<AutoSplitText>Auto split tekst</AutoSplitText> <AutoSplitText>Auto split tekst</AutoSplitText>
<OneLineIsOneSubtitle>En linje er en undertekst</OneLineIsOneSubtitle> <OneLineIsOneSubtitle>En linje er en undertekst</OneLineIsOneSubtitle>
<TwoLinesAreOneSubtitle>To linjer er en undertekst</TwoLinesAreOneSubtitle>
<LineBreak>Linjeskift</LineBreak> <LineBreak>Linjeskift</LineBreak>
<SplitAtBlankLines>Split ved blanke linjer</SplitAtBlankLines> <SplitAtBlankLines>Split ved blanke linjer</SplitAtBlankLines>
<MergeShortLines>Flet kort linjer med fortsættelsen</MergeShortLines> <MergeShortLines>Flet kort linjer med fortsættelsen</MergeShortLines>
@ -916,6 +928,7 @@ Bemærk: Kontroller ledig diskplads.</WaveFileMalformed>
<AdvancedSubStationAlphaProperties>Advanced Sub Station Alpha egenskaber...</AdvancedSubStationAlphaProperties> <AdvancedSubStationAlphaProperties>Advanced Sub Station Alpha egenskaber...</AdvancedSubStationAlphaProperties>
<SubStationAlphaProperties>Sub Station Alpha egenskaber...</SubStationAlphaProperties> <SubStationAlphaProperties>Sub Station Alpha egenskaber...</SubStationAlphaProperties>
<EbuProperties>EBU egenskaber...</EbuProperties> <EbuProperties>EBU egenskaber...</EbuProperties>
<DvdStuioProProperties>DVD Studio Pro egenskaber...</DvdStuioProProperties>
<PacProperties>PAC egenskaber...</PacProperties> <PacProperties>PAC egenskaber...</PacProperties>
<OpenOriginal>Åbn original undertekst (oversætter mode)...</OpenOriginal> <OpenOriginal>Åbn original undertekst (oversætter mode)...</OpenOriginal>
<SaveOriginal>Gem original</SaveOriginal> <SaveOriginal>Gem original</SaveOriginal>
@ -1133,6 +1146,7 @@ Bemærk: Kontroller ledig diskplads.</WaveFileMalformed>
<MergeWithLineAfter>Flet med linjen efter</MergeWithLineAfter> <MergeWithLineAfter>Flet med linjen efter</MergeWithLineAfter>
<Normal>Normal</Normal> <Normal>Normal</Normal>
<Underline>Understregning</Underline> <Underline>Understregning</Underline>
<Box>Boks</Box>
<Color>Farve...</Color> <Color>Farve...</Color>
<FontName>Font navn...</FontName> <FontName>Font navn...</FontName>
<Alignment>Justering...</Alignment> <Alignment>Justering...</Alignment>
@ -1871,6 +1885,7 @@ kan redigere i samme undertekst fil (fælles online projekt)</Information>
<Alt>Alt</Alt> <Alt>Alt</Alt>
<Shift>Shift</Shift> <Shift>Shift</Shift>
<Key>Key</Key> <Key>Key</Key>
<ListViewAndTextBox>Listevistning og tekstboks</ListViewAndTextBox>
<ListView>Listevisning</ListView> <ListView>Listevisning</ListView>
<TextBox>Tekstboks</TextBox> <TextBox>Tekstboks</TextBox>
<UpdateShortcut>Opdater</UpdateShortcut> <UpdateShortcut>Opdater</UpdateShortcut>
@ -1905,6 +1920,15 @@ kan redigere i samme undertekst fil (fælles online projekt)</Information>
<ToggleDialogDashes>Toggle dialog tankestreger</ToggleDialogDashes> <ToggleDialogDashes>Toggle dialog tankestreger</ToggleDialogDashes>
<ToggleMusicSymbols>Skift musik symboler</ToggleMusicSymbols> <ToggleMusicSymbols>Skift musik symboler</ToggleMusicSymbols>
<Alignment>Justering (valgte linier)</Alignment> <Alignment>Justering (valgte linier)</Alignment>
<AlignmentN1>Justering bund venstre left - {\an1}</AlignmentN1>
<AlignmentN2>Justering bund midt - {\an2}</AlignmentN2>
<AlignmentN3>Justering bund højre - {\an3}</AlignmentN3>
<AlignmentN4>Justering midt venstre - {\an4}</AlignmentN4>
<AlignmentN5>Justering midt midt - {\an5}</AlignmentN5>
<AlignmentN6>Justering midt højre - {\an6}</AlignmentN6>
<AlignmentN7>Justering top venstre - {\an7}</AlignmentN7>
<AlignmentN8>Justering top midt - {\an8}</AlignmentN8>
<AlignmentN9>Justering top højre- {\an9}</AlignmentN9>
<CopyTextOnly>Kopier kun tekst til klippe-bord (valgte linier)</CopyTextOnly> <CopyTextOnly>Kopier kun tekst til klippe-bord (valgte linier)</CopyTextOnly>
<CopyTextOnlyFromOriginalToCurrent>Kopier tekst fra original</CopyTextOnlyFromOriginalToCurrent> <CopyTextOnlyFromOriginalToCurrent>Kopier tekst fra original</CopyTextOnlyFromOriginalToCurrent>
<AutoDurationSelectedLines>Auto-varighed (valgte linjer)</AutoDurationSelectedLines> <AutoDurationSelectedLines>Auto-varighed (valgte linjer)</AutoDurationSelectedLines>
@ -1988,6 +2012,8 @@ kan redigere i samme undertekst fil (fælles online projekt)</Information>
<MainTextBoxSelectionToUpper>Markering til store bogstaver</MainTextBoxSelectionToUpper> <MainTextBoxSelectionToUpper>Markering til store bogstaver</MainTextBoxSelectionToUpper>
<MainTextBoxToggleAutoDuration>Toggle auto varighed</MainTextBoxToggleAutoDuration> <MainTextBoxToggleAutoDuration>Toggle auto varighed</MainTextBoxToggleAutoDuration>
<MainTextBoxAutoBreak>Auto-ombryd tekst</MainTextBoxAutoBreak> <MainTextBoxAutoBreak>Auto-ombryd tekst</MainTextBoxAutoBreak>
<MainTextBoxAutoBreakEarly1></MainTextBoxAutoBreakEarly1>
<MainTextBoxAutoBreakEarly2></MainTextBoxAutoBreakEarly2>
<MainTextBoxUnbreak>Fjern linjeskift</MainTextBoxUnbreak> <MainTextBoxUnbreak>Fjern linjeskift</MainTextBoxUnbreak>
<MainFileSaveAll>Gem alle</MainFileSaveAll> <MainFileSaveAll>Gem alle</MainFileSaveAll>
<Miscellaneous>Diverse</Miscellaneous> <Miscellaneous>Diverse</Miscellaneous>
@ -1995,7 +2021,6 @@ kan redigere i samme undertekst fil (fælles online projekt)</Information>
<UseDoNotBreakAfterList>Benyt skift-ikke-efter-liste (for auto-ombrydning)</UseDoNotBreakAfterList> <UseDoNotBreakAfterList>Benyt skift-ikke-efter-liste (for auto-ombrydning)</UseDoNotBreakAfterList>
<MicrosoftBingTranslator>Microsoft Bing Translator</MicrosoftBingTranslator> <MicrosoftBingTranslator>Microsoft Bing Translator</MicrosoftBingTranslator>
<HowToSignUp>Sådan tilmelder du dig</HowToSignUp> <HowToSignUp>Sådan tilmelder du dig</HowToSignUp>
<GoogleTranslateUrl>Google oversæt url</GoogleTranslateUrl>
<MicrosoftTranslateApiKey>Nøgle</MicrosoftTranslateApiKey> <MicrosoftTranslateApiKey>Nøgle</MicrosoftTranslateApiKey>
<FontNote>Bemærk: Disse skrifttypeindstillinger er kun til undertekst Rediger brugergrænsefladen. <FontNote>Bemærk: Disse skrifttypeindstillinger er kun til undertekst Rediger brugergrænsefladen.
Indstilling af en skrifttype til en undertekst udføres normalt i videospiller, men det kan også gøres ved brug af et undertekstformat med indbygget skriftinformation som f.eks. Indstilling af en skrifttype til en undertekst udføres normalt i videospiller, men det kan også gøres ved brug af et undertekstformat med indbygget skriftinformation som f.eks.
@ -2328,6 +2353,8 @@ Indstilling af en skrifttype til en undertekst udføres normalt i videospiller,
<DiscardTitle>Kassér ændringer i OCR?</DiscardTitle> <DiscardTitle>Kassér ændringer i OCR?</DiscardTitle>
<DiscardText>Ønsker du at kassere ændringer i nuværende OCR-session?</DiscardText> <DiscardText>Ønsker du at kassere ændringer i nuværende OCR-session?</DiscardText>
<MinLineSplitHeight>Min. linje højde (split)</MinLineSplitHeight> <MinLineSplitHeight>Min. linje højde (split)</MinLineSplitHeight>
<FallbackToX>Falder tilbage til {0}</FallbackToX>
<ImagePreProcessing>Billede pre-processering...</ImagePreProcessing>
</VobSubOcr> </VobSubOcr>
<VobSubOcrCharacter> <VobSubOcrCharacter>
<Title>VobSub - Manual billede til tekst</Title> <Title>VobSub - Manual billede til tekst</Title>