mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-22 03:02:35 +01:00
A few minor fixes
This commit is contained in:
parent
71feb1be13
commit
e232792b2a
BIN
Ocr/Latin.db
BIN
Ocr/Latin.db
Binary file not shown.
@ -88,10 +88,14 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
|
||||
subtitleListViewFrom.InitializeLanguage(Configuration.Settings.Language.General, Configuration.Settings);
|
||||
subtitleListViewTo.InitializeLanguage(Configuration.Settings.Language.General, Configuration.Settings);
|
||||
subtitleListViewFrom.HideColumn(SubtitleListView.SubtitleColumn.CharactersPerSeconds);
|
||||
subtitleListViewFrom.HideColumn(SubtitleListView.SubtitleColumn.WordsPerMinute);
|
||||
subtitleListViewTo.HideColumn(SubtitleListView.SubtitleColumn.CharactersPerSeconds);
|
||||
subtitleListViewTo.HideColumn(SubtitleListView.SubtitleColumn.WordsPerMinute);
|
||||
UiUtil.InitializeSubtitleFont(subtitleListViewFrom);
|
||||
UiUtil.InitializeSubtitleFont(subtitleListViewTo);
|
||||
subtitleListViewFrom.AutoSizeAllColumns(this);
|
||||
subtitleListViewTo.AutoSizeAllColumns(this);
|
||||
subtitleListViewFrom.AutoSizeColumns();
|
||||
subtitleListViewFrom.AutoSizeColumns();
|
||||
UiUtil.FixLargeFonts(this, buttonOK);
|
||||
}
|
||||
|
||||
|
20
src/Forms/Main.Designer.cs
generated
20
src/Forms/Main.Designer.cs
generated
@ -125,6 +125,7 @@
|
||||
this.toolStripMenuItemDost = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.DvdStudioProStl = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.eBUSTLToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.toolStripMenuItemEdl = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.toolStripMenuItemEdlClipName = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.toolStripMenuItemExportFcpIImage = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.toolStripMenuItemImagePerFrame = new System.Windows.Forms.ToolStripMenuItem();
|
||||
@ -469,7 +470,6 @@
|
||||
this.imageListPlayRate = new System.Windows.Forms.ImageList(this.components);
|
||||
this.timerTextUndo = new System.Windows.Forms.Timer(this.components);
|
||||
this.timerAlternateTextUndo = new System.Windows.Forms.Timer(this.components);
|
||||
this.toolStripMenuItemEdl = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.statusStrip1.SuspendLayout();
|
||||
this.toolStrip1.SuspendLayout();
|
||||
this.menuStrip1.SuspendLayout();
|
||||
@ -1319,6 +1319,13 @@
|
||||
this.eBUSTLToolStripMenuItem.Text = "EBU STL...";
|
||||
this.eBUSTLToolStripMenuItem.Click += new System.EventHandler(this.EBustlToolStripMenuItemClick);
|
||||
//
|
||||
// toolStripMenuItemEdl
|
||||
//
|
||||
this.toolStripMenuItemEdl.Name = "toolStripMenuItemEdl";
|
||||
this.toolStripMenuItemEdl.Size = new System.Drawing.Size(258, 22);
|
||||
this.toolStripMenuItemEdl.Text = "EDL...";
|
||||
this.toolStripMenuItemEdl.Click += new System.EventHandler(this.ExportToEdl);
|
||||
//
|
||||
// toolStripMenuItemEdlClipName
|
||||
//
|
||||
this.toolStripMenuItemEdlClipName.Name = "toolStripMenuItemEdlClipName";
|
||||
@ -3684,7 +3691,7 @@
|
||||
this.guessTimeCodesToolStripMenuItem,
|
||||
this.seekSilenceToolStripMenuItem});
|
||||
this.contextMenuStripWaveform.Name = "contextMenuStripWaveform";
|
||||
this.contextMenuStripWaveform.Size = new System.Drawing.Size(275, 352);
|
||||
this.contextMenuStripWaveform.Size = new System.Drawing.Size(275, 374);
|
||||
this.contextMenuStripWaveform.Closing += new System.Windows.Forms.ToolStripDropDownClosingEventHandler(this.contextMenuStripWaveform_Closing);
|
||||
this.contextMenuStripWaveform.Opening += new System.ComponentModel.CancelEventHandler(this.ContextMenuStripWaveformOpening);
|
||||
//
|
||||
@ -3895,6 +3902,7 @@
|
||||
//
|
||||
// SubtitleListview1
|
||||
//
|
||||
this.SubtitleListview1.AllowColumnReorder = true;
|
||||
this.SubtitleListview1.AllowDrop = true;
|
||||
this.SubtitleListview1.ContextMenuStrip = this.contextMenuStripListview;
|
||||
this.SubtitleListview1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
@ -3902,6 +3910,7 @@
|
||||
this.SubtitleListview1.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.SubtitleListview1.FullRowSelect = true;
|
||||
this.SubtitleListview1.GridLines = true;
|
||||
this.SubtitleListview1.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.Nonclickable;
|
||||
this.SubtitleListview1.HideSelection = false;
|
||||
this.SubtitleListview1.Location = new System.Drawing.Point(0, 0);
|
||||
this.SubtitleListview1.Name = "SubtitleListview1";
|
||||
@ -4555,13 +4564,6 @@
|
||||
this.timerAlternateTextUndo.Interval = 700;
|
||||
this.timerAlternateTextUndo.Tick += new System.EventHandler(this.TimerAlternateTextUndoTick);
|
||||
//
|
||||
// toolStripMenuItemEdl
|
||||
//
|
||||
this.toolStripMenuItemEdl.Name = "toolStripMenuItemEdl";
|
||||
this.toolStripMenuItemEdl.Size = new System.Drawing.Size(258, 22);
|
||||
this.toolStripMenuItemEdl.Text = "EDL...";
|
||||
this.toolStripMenuItemEdl.Click += new System.EventHandler(this.ExportToEdl);
|
||||
//
|
||||
// Main
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
|
@ -6087,17 +6087,15 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
while (startIndex >= 0 && startIndex < p.Text.Length && p.Text.Substring(startIndex).Contains(oldWord))
|
||||
{
|
||||
bool startOk = startIndex == 0 ||
|
||||
" >-'\"[({¿".Contains(p.Text[startIndex - 1]) ||
|
||||
" >-—+/'\"[({¿¡….".Contains(p.Text[startIndex - 1]) ||
|
||||
startIndex == p.Text.Length - oldWord.Length ||
|
||||
Environment.NewLine.EndsWith(p.Text[startIndex - 1]) ||
|
||||
(startIndex > 2 && p.Text.Substring(startIndex - 3, 3) == "...");
|
||||
Environment.NewLine.EndsWith(p.Text[startIndex - 1]);
|
||||
if (startOk)
|
||||
{
|
||||
int end = startIndex + oldWord.Length;
|
||||
if (end <= p.Text.Length)
|
||||
if (end <= p.Text.Length && end == p.Text.Length || (" ,.!?:;')<\"-—+/]}%&$£…\r\n").Contains(p.Text[end]))
|
||||
{
|
||||
if (end == p.Text.Length || (" ,.!?:;')<\"-]}%&$£" + Environment.NewLine).Contains(p.Text[end]))
|
||||
p.Text = p.Text.Remove(startIndex, oldWord.Length).Insert(startIndex, changeWord);
|
||||
p.Text = p.Text.Remove(startIndex, oldWord.Length).Insert(startIndex, changeWord);
|
||||
}
|
||||
}
|
||||
if (startIndex + 2 >= p.Text.Length)
|
||||
@ -6144,7 +6142,7 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
{
|
||||
e.Cancel = true;
|
||||
var cm = new ContextMenuStrip();
|
||||
var contextMenuStripLvHeaderResizeToolStripMenuItem = new ToolStripMenuItem(Configuration.Settings.Language.Main.Menu.ContextMenu.SizeAllColumnsToFit);
|
||||
var contextMenuStripLvHeaderResizeToolStripMenuItem = new ToolStripMenuItem(Configuration.Settings.Language.Main.Menu.ContextMenu.SizeAllColumnsToFit);
|
||||
contextMenuStripLvHeaderResizeToolStripMenuItem.Click += (sender2, e2) =>
|
||||
{
|
||||
SubtitleListview1.AutoSizeColumns();
|
||||
|
@ -370,31 +370,31 @@
|
||||
<data name="toolStripButtonRemoveTextForHi.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
|
||||
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAWXSURBVFhHrVZ9TFN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+3/ENWPb0jE42JNlp4LQFpi3YL/AmEd63ReeB9DCc5BhetNF4n6
|
||||
s8W+Q99U0gwgxZiC6BTUDa1+TEw6TZ8pOh0X2pBaOImcdAgg8iJDHXAbngZGc99RdEI9c/I8xzf2SOmY
|
||||
xe+B9m/Ds77BcEKAFsYgW1+ym/3u4o00sjR5iArMDjgT5O68gOrOKqgfAo+T7th1SkfUwkAdgUYHB18k
|
||||
oqeDSDIWgEzeVEa/L55qRCUBzgIWywpveq7z98VLH4D8KWnXfPXbj9zp7p5B1CYHGgDGsbiQCXLBhKqd
|
||||
dgnb1vaCX7Ot2zdzHut7bRbre2POGE2byXoXLQoO2+xCzthkUKE+tANOI4neeIDfZG6KcvoY4oLo759P
|
||||
tsSHvr5fp1WqDnJXKwh3PgYN1rwMk+hJWhR8nNMoCmXGX73tK85gPFCq9rqy85igw3Hu1iZVh7VUYbVS
|
||||
50DgzBmj9+XXxxzhM1B6+52x/6E1j6z0OoqTbI0NaCmcerzbLLC1tsH30nQ2IFnP/vvgAcuOjkYRZME/
|
||||
b7CeOQtYT0oqG3dB0gBwERFRFAJNLVwA3oXJ7J2TPezd02fCdPv7AXbEdY4NtOzhsuGVl7N+l+tNsjU2
|
||||
oNoRADoAz3UiDiPQ3vlBOP2hio+iyM8RqoFbioprcc8GgbDWTotP/DFzHa8c3PV4lOIB8tPl3+b7xeKb
|
||||
j7Tfw4R6UCgzidnY0XX8cgm9VkG4eJbxKt0YwfiP7hjc18nzzn3PPW4QIbknR3QC84KYjQ+19XZdRs7/
|
||||
tfAwIQhV9dHiIYaZ7c6W+LiOCNUEJfcrC+75121oZPPznyPmJgfcctJSqzkrT9+Le19UwFzFgxVDKvLd
|
||||
gGGDwXRLWmoecnSZn+w4IeE/q+QtYKlKrjQAAAAASUVORK5CYII=
|
||||
</value>
|
||||
</data>
|
||||
<data name="toolStripButtonVisualSync.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
@ -646,9 +646,6 @@
|
||||
<metadata name="toolStripWaveControls.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>650, 56</value>
|
||||
</metadata>
|
||||
<metadata name="toolStripWaveControls.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>650, 56</value>
|
||||
</metadata>
|
||||
<data name="toolStripButtonWaveformZoomOut.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
|
||||
@ -755,7 +752,7 @@
|
||||
AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w
|
||||
LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0
|
||||
ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAAD2
|
||||
CAAAAk1TRnQBSQFMAgEBAgEAAaABIwGgASMBEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo
|
||||
CAAAAk1TRnQBSQFMAgEBAgEAAagBIwGoASMBEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo
|
||||
AwABQAMAARADAAEBAQABCAYAAQQYAAGAAgABgAMAAoABAAGAAwABgAEAAYABAAKAAgADwAEAAcAB3AHA
|
||||
AQAB8AHKAaYBAAEzBQABMwEAATMBAAEzAQACMwIAAxYBAAMcAQADIgEAAykBAANVAQADTQEAA0IBAAM5
|
||||
AQABgAF8Af8BAAJQAf8BAAGTAQAB1gEAAf8B7AHMAQABxgHWAe8BAAHWAucBAAGQAakBrQIAAf8BMwMA
|
||||
@ -802,10 +799,7 @@
|
||||
<metadata name="timerAlternateTextUndo.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>916, 95</value>
|
||||
</metadata>
|
||||
<metadata name="contextMenuStripLvHeader.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>71</value>
|
||||
<value>280</value>
|
||||
</metadata>
|
||||
</root>
|
Loading…
Reference in New Issue
Block a user