Now runs Tesseract in separate thread

git-svn-id: https://subtitleedit.googlecode.com/svn/trunk@745 99eadd0c-20b8-1223-b5c4-2a2b2df33de2
This commit is contained in:
niksedk 2011-10-25 16:43:37 +00:00
parent 16c4ab8908
commit 8212588bde
3 changed files with 291 additions and 236 deletions

View File

@ -66,7 +66,7 @@ namespace Nikse.SubtitleEdit.Forms
this.checkBoxUseModiInTesseractForUnknownWords = new System.Windows.Forms.CheckBox(); this.checkBoxUseModiInTesseractForUnknownWords = new System.Windows.Forms.CheckBox();
this.labelTesseractLanguage = new System.Windows.Forms.Label(); this.labelTesseractLanguage = new System.Windows.Forms.Label();
this.comboBoxTesseractLanguages = new System.Windows.Forms.ComboBox(); this.comboBoxTesseractLanguages = new System.Windows.Forms.ComboBox();
this.textBoxCurrentText = new SETextBox(); this.textBoxCurrentText = new Nikse.SubtitleEdit.Controls.SETextBox();
this.groupBoxOCRControls = new System.Windows.Forms.GroupBox(); this.groupBoxOCRControls = new System.Windows.Forms.GroupBox();
this.labelStartFrom = new System.Windows.Forms.Label(); this.labelStartFrom = new System.Windows.Forms.Label();
this.numericUpDownStartNumber = new System.Windows.Forms.NumericUpDown(); this.numericUpDownStartNumber = new System.Windows.Forms.NumericUpDown();
@ -131,11 +131,11 @@ namespace Nikse.SubtitleEdit.Forms
this.splitContainerBottom.Panel2.SuspendLayout(); this.splitContainerBottom.Panel2.SuspendLayout();
this.splitContainerBottom.SuspendLayout(); this.splitContainerBottom.SuspendLayout();
this.SuspendLayout(); this.SuspendLayout();
// //
// pictureBoxSubtitleImage // pictureBoxSubtitleImage
// //
this.pictureBoxSubtitleImage.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) this.pictureBoxSubtitleImage.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.pictureBoxSubtitleImage.ContextMenuStrip = this.contextMenuStripListview; this.pictureBoxSubtitleImage.ContextMenuStrip = this.contextMenuStripListview;
this.pictureBoxSubtitleImage.Location = new System.Drawing.Point(13, 60); this.pictureBoxSubtitleImage.Location = new System.Drawing.Point(13, 60);
@ -144,9 +144,9 @@ namespace Nikse.SubtitleEdit.Forms
this.pictureBoxSubtitleImage.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; this.pictureBoxSubtitleImage.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.pictureBoxSubtitleImage.TabIndex = 3; this.pictureBoxSubtitleImage.TabIndex = 3;
this.pictureBoxSubtitleImage.TabStop = false; this.pictureBoxSubtitleImage.TabStop = false;
// //
// contextMenuStripListview // contextMenuStripListview
// //
this.contextMenuStripListview.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.contextMenuStripListview.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.normalToolStripMenuItem, this.normalToolStripMenuItem,
this.italicToolStripMenuItem, this.italicToolStripMenuItem,
@ -162,98 +162,98 @@ namespace Nikse.SubtitleEdit.Forms
this.contextMenuStripListview.Name = "contextMenuStripListview"; this.contextMenuStripListview.Name = "contextMenuStripListview";
this.contextMenuStripListview.Size = new System.Drawing.Size(306, 198); this.contextMenuStripListview.Size = new System.Drawing.Size(306, 198);
this.contextMenuStripListview.Opening += new System.ComponentModel.CancelEventHandler(this.ContextMenuStripListviewOpening); this.contextMenuStripListview.Opening += new System.ComponentModel.CancelEventHandler(this.ContextMenuStripListviewOpening);
// //
// normalToolStripMenuItem // normalToolStripMenuItem
// //
this.normalToolStripMenuItem.Name = "normalToolStripMenuItem"; this.normalToolStripMenuItem.Name = "normalToolStripMenuItem";
this.normalToolStripMenuItem.Size = new System.Drawing.Size(305, 22); this.normalToolStripMenuItem.Size = new System.Drawing.Size(305, 22);
this.normalToolStripMenuItem.Text = "Normal"; this.normalToolStripMenuItem.Text = "Normal";
this.normalToolStripMenuItem.Click += new System.EventHandler(this.NormalToolStripMenuItemClick); this.normalToolStripMenuItem.Click += new System.EventHandler(this.NormalToolStripMenuItemClick);
// //
// italicToolStripMenuItem // italicToolStripMenuItem
// //
this.italicToolStripMenuItem.Name = "italicToolStripMenuItem"; this.italicToolStripMenuItem.Name = "italicToolStripMenuItem";
this.italicToolStripMenuItem.Size = new System.Drawing.Size(305, 22); this.italicToolStripMenuItem.Size = new System.Drawing.Size(305, 22);
this.italicToolStripMenuItem.Text = "Italic"; this.italicToolStripMenuItem.Text = "Italic";
this.italicToolStripMenuItem.Click += new System.EventHandler(this.ItalicToolStripMenuItemClick); this.italicToolStripMenuItem.Click += new System.EventHandler(this.ItalicToolStripMenuItemClick);
// //
// toolStripSeparator1 // toolStripSeparator1
// //
this.toolStripSeparator1.Name = "toolStripSeparator1"; this.toolStripSeparator1.Name = "toolStripSeparator1";
this.toolStripSeparator1.Size = new System.Drawing.Size(302, 6); this.toolStripSeparator1.Size = new System.Drawing.Size(302, 6);
// //
// importTextWithMatchingTimeCodesToolStripMenuItem // importTextWithMatchingTimeCodesToolStripMenuItem
// //
this.importTextWithMatchingTimeCodesToolStripMenuItem.Name = "importTextWithMatchingTimeCodesToolStripMenuItem"; this.importTextWithMatchingTimeCodesToolStripMenuItem.Name = "importTextWithMatchingTimeCodesToolStripMenuItem";
this.importTextWithMatchingTimeCodesToolStripMenuItem.Size = new System.Drawing.Size(305, 22); this.importTextWithMatchingTimeCodesToolStripMenuItem.Size = new System.Drawing.Size(305, 22);
this.importTextWithMatchingTimeCodesToolStripMenuItem.Text = "Import text with matching time codes..."; this.importTextWithMatchingTimeCodesToolStripMenuItem.Text = "Import text with matching time codes...";
this.importTextWithMatchingTimeCodesToolStripMenuItem.Click += new System.EventHandler(this.importTextWithMatchingTimeCodesToolStripMenuItem_Click); this.importTextWithMatchingTimeCodesToolStripMenuItem.Click += new System.EventHandler(this.importTextWithMatchingTimeCodesToolStripMenuItem_Click);
// //
// toolStripSeparator2 // toolStripSeparator2
// //
this.toolStripSeparator2.Name = "toolStripSeparator2"; this.toolStripSeparator2.Name = "toolStripSeparator2";
this.toolStripSeparator2.Size = new System.Drawing.Size(302, 6); this.toolStripSeparator2.Size = new System.Drawing.Size(302, 6);
// //
// saveImageAsToolStripMenuItem // saveImageAsToolStripMenuItem
// //
this.saveImageAsToolStripMenuItem.Name = "saveImageAsToolStripMenuItem"; this.saveImageAsToolStripMenuItem.Name = "saveImageAsToolStripMenuItem";
this.saveImageAsToolStripMenuItem.Size = new System.Drawing.Size(305, 22); this.saveImageAsToolStripMenuItem.Size = new System.Drawing.Size(305, 22);
this.saveImageAsToolStripMenuItem.Text = "Save image as..."; this.saveImageAsToolStripMenuItem.Text = "Save image as...";
this.saveImageAsToolStripMenuItem.Click += new System.EventHandler(this.SaveImageAsToolStripMenuItemClick); this.saveImageAsToolStripMenuItem.Click += new System.EventHandler(this.SaveImageAsToolStripMenuItemClick);
// //
// saveAllImagesToolStripMenuItem // saveAllImagesToolStripMenuItem
// //
this.saveAllImagesToolStripMenuItem.Name = "saveAllImagesToolStripMenuItem"; this.saveAllImagesToolStripMenuItem.Name = "saveAllImagesToolStripMenuItem";
this.saveAllImagesToolStripMenuItem.Size = new System.Drawing.Size(305, 22); this.saveAllImagesToolStripMenuItem.Size = new System.Drawing.Size(305, 22);
this.saveAllImagesToolStripMenuItem.Text = "Save all images (png/bdn xml)..."; this.saveAllImagesToolStripMenuItem.Text = "Save all images (png/bdn xml)...";
this.saveAllImagesToolStripMenuItem.Click += new System.EventHandler(this.saveAllImagesToolStripMenuItem_Click); this.saveAllImagesToolStripMenuItem.Click += new System.EventHandler(this.saveAllImagesToolStripMenuItem_Click);
// //
// saveAllImagesWithHtmlIndexViewToolStripMenuItem // saveAllImagesWithHtmlIndexViewToolStripMenuItem
// //
this.saveAllImagesWithHtmlIndexViewToolStripMenuItem.Name = "saveAllImagesWithHtmlIndexViewToolStripMenuItem"; this.saveAllImagesWithHtmlIndexViewToolStripMenuItem.Name = "saveAllImagesWithHtmlIndexViewToolStripMenuItem";
this.saveAllImagesWithHtmlIndexViewToolStripMenuItem.Size = new System.Drawing.Size(305, 22); this.saveAllImagesWithHtmlIndexViewToolStripMenuItem.Size = new System.Drawing.Size(305, 22);
this.saveAllImagesWithHtmlIndexViewToolStripMenuItem.Text = "Save all images with html index view..."; this.saveAllImagesWithHtmlIndexViewToolStripMenuItem.Text = "Save all images with html index view...";
this.saveAllImagesWithHtmlIndexViewToolStripMenuItem.Click += new System.EventHandler(this.saveAllImagesWithHtmlIndexViewToolStripMenuItem_Click); this.saveAllImagesWithHtmlIndexViewToolStripMenuItem.Click += new System.EventHandler(this.saveAllImagesWithHtmlIndexViewToolStripMenuItem_Click);
// //
// toolStripSeparatorImageCompare // toolStripSeparatorImageCompare
// //
this.toolStripSeparatorImageCompare.Name = "toolStripSeparatorImageCompare"; this.toolStripSeparatorImageCompare.Name = "toolStripSeparatorImageCompare";
this.toolStripSeparatorImageCompare.Size = new System.Drawing.Size(302, 6); this.toolStripSeparatorImageCompare.Size = new System.Drawing.Size(302, 6);
// //
// inspectImageCompareMatchesForCurrentImageToolStripMenuItem // inspectImageCompareMatchesForCurrentImageToolStripMenuItem
// //
this.inspectImageCompareMatchesForCurrentImageToolStripMenuItem.Name = "inspectImageCompareMatchesForCurrentImageToolStripMenuItem"; this.inspectImageCompareMatchesForCurrentImageToolStripMenuItem.Name = "inspectImageCompareMatchesForCurrentImageToolStripMenuItem";
this.inspectImageCompareMatchesForCurrentImageToolStripMenuItem.Size = new System.Drawing.Size(305, 22); this.inspectImageCompareMatchesForCurrentImageToolStripMenuItem.Size = new System.Drawing.Size(305, 22);
this.inspectImageCompareMatchesForCurrentImageToolStripMenuItem.Text = "Inspect compare matches for current image"; this.inspectImageCompareMatchesForCurrentImageToolStripMenuItem.Text = "Inspect compare matches for current image";
this.inspectImageCompareMatchesForCurrentImageToolStripMenuItem.Click += new System.EventHandler(this.inspectImageCompareMatchesForCurrentImageToolStripMenuItem_Click); this.inspectImageCompareMatchesForCurrentImageToolStripMenuItem.Click += new System.EventHandler(this.inspectImageCompareMatchesForCurrentImageToolStripMenuItem_Click);
// //
// EditLastAdditionsToolStripMenuItem // EditLastAdditionsToolStripMenuItem
// //
this.EditLastAdditionsToolStripMenuItem.Name = "EditLastAdditionsToolStripMenuItem"; this.EditLastAdditionsToolStripMenuItem.Name = "EditLastAdditionsToolStripMenuItem";
this.EditLastAdditionsToolStripMenuItem.Size = new System.Drawing.Size(305, 22); this.EditLastAdditionsToolStripMenuItem.Size = new System.Drawing.Size(305, 22);
this.EditLastAdditionsToolStripMenuItem.Text = "Edit last ocr image additions..."; this.EditLastAdditionsToolStripMenuItem.Text = "Edit last ocr image additions...";
this.EditLastAdditionsToolStripMenuItem.Click += new System.EventHandler(this.inspectLastAdditionsToolStripMenuItem_Click); this.EditLastAdditionsToolStripMenuItem.Click += new System.EventHandler(this.inspectLastAdditionsToolStripMenuItem_Click);
// //
// labelSubtitleText // labelSubtitleText
// //
this.labelSubtitleText.AutoSize = true; this.labelSubtitleText.AutoSize = true;
this.labelSubtitleText.Location = new System.Drawing.Point(7, 5); this.labelSubtitleText.Location = new System.Drawing.Point(7, 5);
this.labelSubtitleText.Name = "labelSubtitleText"; this.labelSubtitleText.Name = "labelSubtitleText";
this.labelSubtitleText.Size = new System.Drawing.Size(66, 13); this.labelSubtitleText.Size = new System.Drawing.Size(66, 13);
this.labelSubtitleText.TabIndex = 6; this.labelSubtitleText.TabIndex = 6;
this.labelSubtitleText.Text = "Subtitle text"; this.labelSubtitleText.Text = "Subtitle text";
// //
// progressBar1 // progressBar1
// //
this.progressBar1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) this.progressBar1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.progressBar1.Location = new System.Drawing.Point(12, 564); this.progressBar1.Location = new System.Drawing.Point(12, 564);
this.progressBar1.Name = "progressBar1"; this.progressBar1.Name = "progressBar1";
this.progressBar1.Size = new System.Drawing.Size(893, 10); this.progressBar1.Size = new System.Drawing.Size(893, 10);
this.progressBar1.TabIndex = 7; this.progressBar1.TabIndex = 7;
// //
// labelStatus // labelStatus
// //
this.labelStatus.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.labelStatus.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.labelStatus.AutoSize = true; this.labelStatus.AutoSize = true;
this.labelStatus.Location = new System.Drawing.Point(12, 543); this.labelStatus.Location = new System.Drawing.Point(12, 543);
@ -261,9 +261,9 @@ namespace Nikse.SubtitleEdit.Forms
this.labelStatus.Size = new System.Drawing.Size(131, 13); this.labelStatus.Size = new System.Drawing.Size(131, 13);
this.labelStatus.TabIndex = 8; this.labelStatus.TabIndex = 8;
this.labelStatus.Text = "Loading VobSub images..."; this.labelStatus.Text = "Loading VobSub images...";
// //
// buttonOK // buttonOK
// //
this.buttonOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); 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.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.buttonOK.Location = new System.Drawing.Point(911, 548); this.buttonOK.Location = new System.Drawing.Point(911, 548);
@ -273,9 +273,9 @@ namespace Nikse.SubtitleEdit.Forms
this.buttonOK.Text = "&OK"; this.buttonOK.Text = "&OK";
this.buttonOK.UseVisualStyleBackColor = true; this.buttonOK.UseVisualStyleBackColor = true;
this.buttonOK.Click += new System.EventHandler(this.ButtonOkClick); this.buttonOK.Click += new System.EventHandler(this.ButtonOkClick);
// //
// buttonCancel // buttonCancel
// //
this.buttonCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.buttonCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.buttonCancel.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.buttonCancel.ImeMode = System.Windows.Forms.ImeMode.NoControl;
@ -285,22 +285,22 @@ namespace Nikse.SubtitleEdit.Forms
this.buttonCancel.TabIndex = 7; this.buttonCancel.TabIndex = 7;
this.buttonCancel.Text = "C&ancel"; this.buttonCancel.Text = "C&ancel";
this.buttonCancel.UseVisualStyleBackColor = true; this.buttonCancel.UseVisualStyleBackColor = true;
// //
// groupBoxOcrMethod // groupBoxOcrMethod
// //
this.groupBoxOcrMethod.Controls.Add(this.groupBoxImageCompareMethod);
this.groupBoxOcrMethod.Controls.Add(this.groupBoxModiMethod);
this.groupBoxOcrMethod.Controls.Add(this.comboBoxOcrMethod); this.groupBoxOcrMethod.Controls.Add(this.comboBoxOcrMethod);
this.groupBoxOcrMethod.Controls.Add(this.GroupBoxTesseractMethod); this.groupBoxOcrMethod.Controls.Add(this.GroupBoxTesseractMethod);
this.groupBoxOcrMethod.Controls.Add(this.groupBoxImageCompareMethod);
this.groupBoxOcrMethod.Controls.Add(this.groupBoxModiMethod);
this.groupBoxOcrMethod.Location = new System.Drawing.Point(13, 5); this.groupBoxOcrMethod.Location = new System.Drawing.Point(13, 5);
this.groupBoxOcrMethod.Name = "groupBoxOcrMethod"; this.groupBoxOcrMethod.Name = "groupBoxOcrMethod";
this.groupBoxOcrMethod.Size = new System.Drawing.Size(392, 192); this.groupBoxOcrMethod.Size = new System.Drawing.Size(392, 192);
this.groupBoxOcrMethod.TabIndex = 13; this.groupBoxOcrMethod.TabIndex = 13;
this.groupBoxOcrMethod.TabStop = false; this.groupBoxOcrMethod.TabStop = false;
this.groupBoxOcrMethod.Text = "OCR method"; this.groupBoxOcrMethod.Text = "OCR method";
// //
// groupBoxImageCompareMethod // groupBoxImageCompareMethod
// //
this.groupBoxImageCompareMethod.Controls.Add(this.checkBoxRightToLeft); this.groupBoxImageCompareMethod.Controls.Add(this.checkBoxRightToLeft);
this.groupBoxImageCompareMethod.Controls.Add(this.numericUpDownPixelsIsSpace); this.groupBoxImageCompareMethod.Controls.Add(this.numericUpDownPixelsIsSpace);
this.groupBoxImageCompareMethod.Controls.Add(this.buttonEditCharacterDatabase); this.groupBoxImageCompareMethod.Controls.Add(this.buttonEditCharacterDatabase);
@ -314,9 +314,9 @@ namespace Nikse.SubtitleEdit.Forms
this.groupBoxImageCompareMethod.TabIndex = 35; this.groupBoxImageCompareMethod.TabIndex = 35;
this.groupBoxImageCompareMethod.TabStop = false; this.groupBoxImageCompareMethod.TabStop = false;
this.groupBoxImageCompareMethod.Text = "Image compare"; this.groupBoxImageCompareMethod.Text = "Image compare";
// //
// checkBoxRightToLeft // checkBoxRightToLeft
// //
this.checkBoxRightToLeft.AutoSize = true; this.checkBoxRightToLeft.AutoSize = true;
this.checkBoxRightToLeft.Location = new System.Drawing.Point(173, 100); this.checkBoxRightToLeft.Location = new System.Drawing.Point(173, 100);
this.checkBoxRightToLeft.Name = "checkBoxRightToLeft"; this.checkBoxRightToLeft.Name = "checkBoxRightToLeft";
@ -324,9 +324,9 @@ namespace Nikse.SubtitleEdit.Forms
this.checkBoxRightToLeft.TabIndex = 40; this.checkBoxRightToLeft.TabIndex = 40;
this.checkBoxRightToLeft.Text = "Right to left"; this.checkBoxRightToLeft.Text = "Right to left";
this.checkBoxRightToLeft.UseVisualStyleBackColor = true; this.checkBoxRightToLeft.UseVisualStyleBackColor = true;
// //
// numericUpDownPixelsIsSpace // numericUpDownPixelsIsSpace
// //
this.numericUpDownPixelsIsSpace.Location = new System.Drawing.Point(173, 67); this.numericUpDownPixelsIsSpace.Location = new System.Drawing.Point(173, 67);
this.numericUpDownPixelsIsSpace.Maximum = new decimal(new int[] { this.numericUpDownPixelsIsSpace.Maximum = new decimal(new int[] {
50, 50,
@ -346,9 +346,9 @@ namespace Nikse.SubtitleEdit.Forms
0, 0,
0, 0,
0}); 0});
// //
// buttonEditCharacterDatabase // buttonEditCharacterDatabase
// //
this.buttonEditCharacterDatabase.Location = new System.Drawing.Point(278, 46); this.buttonEditCharacterDatabase.Location = new System.Drawing.Point(278, 46);
this.buttonEditCharacterDatabase.Name = "buttonEditCharacterDatabase"; this.buttonEditCharacterDatabase.Name = "buttonEditCharacterDatabase";
this.buttonEditCharacterDatabase.Size = new System.Drawing.Size(68, 21); this.buttonEditCharacterDatabase.Size = new System.Drawing.Size(68, 21);
@ -356,18 +356,18 @@ namespace Nikse.SubtitleEdit.Forms
this.buttonEditCharacterDatabase.Text = "Edit"; this.buttonEditCharacterDatabase.Text = "Edit";
this.buttonEditCharacterDatabase.UseVisualStyleBackColor = true; this.buttonEditCharacterDatabase.UseVisualStyleBackColor = true;
this.buttonEditCharacterDatabase.Click += new System.EventHandler(this.ButtonEditCharacterDatabaseClick); this.buttonEditCharacterDatabase.Click += new System.EventHandler(this.ButtonEditCharacterDatabaseClick);
// //
// labelNoOfPixelsIsSpace // labelNoOfPixelsIsSpace
// //
this.labelNoOfPixelsIsSpace.AutoSize = true; this.labelNoOfPixelsIsSpace.AutoSize = true;
this.labelNoOfPixelsIsSpace.Location = new System.Drawing.Point(6, 69); this.labelNoOfPixelsIsSpace.Location = new System.Drawing.Point(6, 69);
this.labelNoOfPixelsIsSpace.Name = "labelNoOfPixelsIsSpace"; this.labelNoOfPixelsIsSpace.Name = "labelNoOfPixelsIsSpace";
this.labelNoOfPixelsIsSpace.Size = new System.Drawing.Size(104, 13); this.labelNoOfPixelsIsSpace.Size = new System.Drawing.Size(104, 13);
this.labelNoOfPixelsIsSpace.TabIndex = 34; this.labelNoOfPixelsIsSpace.TabIndex = 34;
this.labelNoOfPixelsIsSpace.Text = "No of pixels is space"; this.labelNoOfPixelsIsSpace.Text = "No of pixels is space";
// //
// comboBoxCharacterDatabase // comboBoxCharacterDatabase
// //
this.comboBoxCharacterDatabase.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBoxCharacterDatabase.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboBoxCharacterDatabase.FormattingEnabled = true; this.comboBoxCharacterDatabase.FormattingEnabled = true;
this.comboBoxCharacterDatabase.Location = new System.Drawing.Point(130, 19); this.comboBoxCharacterDatabase.Location = new System.Drawing.Point(130, 19);
@ -375,18 +375,18 @@ namespace Nikse.SubtitleEdit.Forms
this.comboBoxCharacterDatabase.Size = new System.Drawing.Size(142, 21); this.comboBoxCharacterDatabase.Size = new System.Drawing.Size(142, 21);
this.comboBoxCharacterDatabase.TabIndex = 31; this.comboBoxCharacterDatabase.TabIndex = 31;
this.comboBoxCharacterDatabase.SelectedIndexChanged += new System.EventHandler(this.ComboBoxCharacterDatabaseSelectedIndexChanged); this.comboBoxCharacterDatabase.SelectedIndexChanged += new System.EventHandler(this.ComboBoxCharacterDatabaseSelectedIndexChanged);
// //
// labelImageDatabase // labelImageDatabase
// //
this.labelImageDatabase.AutoSize = true; this.labelImageDatabase.AutoSize = true;
this.labelImageDatabase.Location = new System.Drawing.Point(7, 22); this.labelImageDatabase.Location = new System.Drawing.Point(7, 22);
this.labelImageDatabase.Name = "labelImageDatabase"; this.labelImageDatabase.Name = "labelImageDatabase";
this.labelImageDatabase.Size = new System.Drawing.Size(85, 13); this.labelImageDatabase.Size = new System.Drawing.Size(85, 13);
this.labelImageDatabase.TabIndex = 30; this.labelImageDatabase.TabIndex = 30;
this.labelImageDatabase.Text = "Image database"; this.labelImageDatabase.Text = "Image database";
// //
// buttonNewCharacterDatabase // buttonNewCharacterDatabase
// //
this.buttonNewCharacterDatabase.Location = new System.Drawing.Point(278, 19); this.buttonNewCharacterDatabase.Location = new System.Drawing.Point(278, 19);
this.buttonNewCharacterDatabase.Name = "buttonNewCharacterDatabase"; this.buttonNewCharacterDatabase.Name = "buttonNewCharacterDatabase";
this.buttonNewCharacterDatabase.Size = new System.Drawing.Size(68, 21); this.buttonNewCharacterDatabase.Size = new System.Drawing.Size(68, 21);
@ -394,9 +394,9 @@ namespace Nikse.SubtitleEdit.Forms
this.buttonNewCharacterDatabase.Text = "New"; this.buttonNewCharacterDatabase.Text = "New";
this.buttonNewCharacterDatabase.UseVisualStyleBackColor = true; this.buttonNewCharacterDatabase.UseVisualStyleBackColor = true;
this.buttonNewCharacterDatabase.Click += new System.EventHandler(this.ButtonNewCharacterDatabaseClick); this.buttonNewCharacterDatabase.Click += new System.EventHandler(this.ButtonNewCharacterDatabaseClick);
// //
// groupBoxModiMethod // groupBoxModiMethod
// //
this.groupBoxModiMethod.Controls.Add(this.label1); this.groupBoxModiMethod.Controls.Add(this.label1);
this.groupBoxModiMethod.Controls.Add(this.comboBoxModiLanguage); this.groupBoxModiMethod.Controls.Add(this.comboBoxModiLanguage);
this.groupBoxModiMethod.Location = new System.Drawing.Point(7, 50); this.groupBoxModiMethod.Location = new System.Drawing.Point(7, 50);
@ -405,18 +405,18 @@ namespace Nikse.SubtitleEdit.Forms
this.groupBoxModiMethod.TabIndex = 35; this.groupBoxModiMethod.TabIndex = 35;
this.groupBoxModiMethod.TabStop = false; this.groupBoxModiMethod.TabStop = false;
this.groupBoxModiMethod.Text = "MODI"; this.groupBoxModiMethod.Text = "MODI";
// //
// label1 // label1
// //
this.label1.AutoSize = true; this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(11, 58); this.label1.Location = new System.Drawing.Point(11, 58);
this.label1.Name = "label1"; this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(54, 13); this.label1.Size = new System.Drawing.Size(54, 13);
this.label1.TabIndex = 33; this.label1.TabIndex = 33;
this.label1.Text = "Language"; this.label1.Text = "Language";
// //
// comboBoxModiLanguage // comboBoxModiLanguage
// //
this.comboBoxModiLanguage.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBoxModiLanguage.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboBoxModiLanguage.FormattingEnabled = true; this.comboBoxModiLanguage.FormattingEnabled = true;
this.comboBoxModiLanguage.Location = new System.Drawing.Point(108, 55); this.comboBoxModiLanguage.Location = new System.Drawing.Point(108, 55);
@ -424,9 +424,9 @@ namespace Nikse.SubtitleEdit.Forms
this.comboBoxModiLanguage.Size = new System.Drawing.Size(195, 21); this.comboBoxModiLanguage.Size = new System.Drawing.Size(195, 21);
this.comboBoxModiLanguage.TabIndex = 9; this.comboBoxModiLanguage.TabIndex = 9;
this.comboBoxModiLanguage.SelectedIndexChanged += new System.EventHandler(this.ComboBoxModiLanguageSelectedIndexChanged); this.comboBoxModiLanguage.SelectedIndexChanged += new System.EventHandler(this.ComboBoxModiLanguageSelectedIndexChanged);
// //
// comboBoxOcrMethod // comboBoxOcrMethod
// //
this.comboBoxOcrMethod.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBoxOcrMethod.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboBoxOcrMethod.FormattingEnabled = true; this.comboBoxOcrMethod.FormattingEnabled = true;
this.comboBoxOcrMethod.Items.AddRange(new object[] { this.comboBoxOcrMethod.Items.AddRange(new object[] {
@ -438,9 +438,9 @@ namespace Nikse.SubtitleEdit.Forms
this.comboBoxOcrMethod.Size = new System.Drawing.Size(366, 21); this.comboBoxOcrMethod.Size = new System.Drawing.Size(366, 21);
this.comboBoxOcrMethod.TabIndex = 33; this.comboBoxOcrMethod.TabIndex = 33;
this.comboBoxOcrMethod.SelectedIndexChanged += new System.EventHandler(this.ComboBoxOcrMethodSelectedIndexChanged); this.comboBoxOcrMethod.SelectedIndexChanged += new System.EventHandler(this.ComboBoxOcrMethodSelectedIndexChanged);
// //
// GroupBoxTesseractMethod // GroupBoxTesseractMethod
// //
this.GroupBoxTesseractMethod.Controls.Add(this.checkBoxUseModiInTesseractForUnknownWords); this.GroupBoxTesseractMethod.Controls.Add(this.checkBoxUseModiInTesseractForUnknownWords);
this.GroupBoxTesseractMethod.Controls.Add(this.labelTesseractLanguage); this.GroupBoxTesseractMethod.Controls.Add(this.labelTesseractLanguage);
this.GroupBoxTesseractMethod.Controls.Add(this.comboBoxTesseractLanguages); this.GroupBoxTesseractMethod.Controls.Add(this.comboBoxTesseractLanguages);
@ -450,9 +450,9 @@ namespace Nikse.SubtitleEdit.Forms
this.GroupBoxTesseractMethod.TabIndex = 36; this.GroupBoxTesseractMethod.TabIndex = 36;
this.GroupBoxTesseractMethod.TabStop = false; this.GroupBoxTesseractMethod.TabStop = false;
this.GroupBoxTesseractMethod.Text = "Tesseract"; this.GroupBoxTesseractMethod.Text = "Tesseract";
// //
// checkBoxUseModiInTesseractForUnknownWords // checkBoxUseModiInTesseractForUnknownWords
// //
this.checkBoxUseModiInTesseractForUnknownWords.AutoSize = true; this.checkBoxUseModiInTesseractForUnknownWords.AutoSize = true;
this.checkBoxUseModiInTesseractForUnknownWords.Checked = true; this.checkBoxUseModiInTesseractForUnknownWords.Checked = true;
this.checkBoxUseModiInTesseractForUnknownWords.CheckState = System.Windows.Forms.CheckState.Checked; this.checkBoxUseModiInTesseractForUnknownWords.CheckState = System.Windows.Forms.CheckState.Checked;
@ -463,18 +463,18 @@ namespace Nikse.SubtitleEdit.Forms
this.checkBoxUseModiInTesseractForUnknownWords.TabIndex = 39; this.checkBoxUseModiInTesseractForUnknownWords.TabIndex = 39;
this.checkBoxUseModiInTesseractForUnknownWords.Text = "Try MODI for unknown words"; this.checkBoxUseModiInTesseractForUnknownWords.Text = "Try MODI for unknown words";
this.checkBoxUseModiInTesseractForUnknownWords.UseVisualStyleBackColor = true; this.checkBoxUseModiInTesseractForUnknownWords.UseVisualStyleBackColor = true;
// //
// labelTesseractLanguage // labelTesseractLanguage
// //
this.labelTesseractLanguage.AutoSize = true; this.labelTesseractLanguage.AutoSize = true;
this.labelTesseractLanguage.Location = new System.Drawing.Point(18, 34); this.labelTesseractLanguage.Location = new System.Drawing.Point(18, 34);
this.labelTesseractLanguage.Name = "labelTesseractLanguage"; this.labelTesseractLanguage.Name = "labelTesseractLanguage";
this.labelTesseractLanguage.Size = new System.Drawing.Size(54, 13); this.labelTesseractLanguage.Size = new System.Drawing.Size(54, 13);
this.labelTesseractLanguage.TabIndex = 4; this.labelTesseractLanguage.TabIndex = 4;
this.labelTesseractLanguage.Text = "Language"; this.labelTesseractLanguage.Text = "Language";
// //
// comboBoxTesseractLanguages // comboBoxTesseractLanguages
// //
this.comboBoxTesseractLanguages.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBoxTesseractLanguages.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboBoxTesseractLanguages.FormattingEnabled = true; this.comboBoxTesseractLanguages.FormattingEnabled = true;
this.comboBoxTesseractLanguages.Location = new System.Drawing.Point(99, 31); this.comboBoxTesseractLanguages.Location = new System.Drawing.Point(99, 31);
@ -482,10 +482,11 @@ namespace Nikse.SubtitleEdit.Forms
this.comboBoxTesseractLanguages.Size = new System.Drawing.Size(195, 21); this.comboBoxTesseractLanguages.Size = new System.Drawing.Size(195, 21);
this.comboBoxTesseractLanguages.TabIndex = 34; this.comboBoxTesseractLanguages.TabIndex = 34;
this.comboBoxTesseractLanguages.SelectedIndexChanged += new System.EventHandler(this.ComboBoxTesseractLanguagesSelectedIndexChanged); this.comboBoxTesseractLanguages.SelectedIndexChanged += new System.EventHandler(this.ComboBoxTesseractLanguagesSelectedIndexChanged);
// //
// textBoxCurrentText // textBoxCurrentText
// //
this.textBoxCurrentText.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) this.textBoxCurrentText.AllowDrop = true;
this.textBoxCurrentText.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.textBoxCurrentText.Font = new System.Drawing.Font("Tahoma", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.textBoxCurrentText.Font = new System.Drawing.Font("Tahoma", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.textBoxCurrentText.Location = new System.Drawing.Point(8, 214); this.textBoxCurrentText.Location = new System.Drawing.Point(8, 214);
@ -495,9 +496,9 @@ namespace Nikse.SubtitleEdit.Forms
this.textBoxCurrentText.TabIndex = 5; this.textBoxCurrentText.TabIndex = 5;
this.textBoxCurrentText.TextChanged += new System.EventHandler(this.TextBoxCurrentTextTextChanged); this.textBoxCurrentText.TextChanged += new System.EventHandler(this.TextBoxCurrentTextTextChanged);
this.textBoxCurrentText.KeyDown += new System.Windows.Forms.KeyEventHandler(this.textBoxCurrentText_KeyDown); this.textBoxCurrentText.KeyDown += new System.Windows.Forms.KeyEventHandler(this.textBoxCurrentText_KeyDown);
// //
// groupBoxOCRControls // groupBoxOCRControls
// //
this.groupBoxOCRControls.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.groupBoxOCRControls.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.groupBoxOCRControls.Controls.Add(this.labelStartFrom); this.groupBoxOCRControls.Controls.Add(this.labelStartFrom);
this.groupBoxOCRControls.Controls.Add(this.numericUpDownStartNumber); this.groupBoxOCRControls.Controls.Add(this.numericUpDownStartNumber);
@ -509,18 +510,18 @@ namespace Nikse.SubtitleEdit.Forms
this.groupBoxOCRControls.TabIndex = 28; this.groupBoxOCRControls.TabIndex = 28;
this.groupBoxOCRControls.TabStop = false; this.groupBoxOCRControls.TabStop = false;
this.groupBoxOCRControls.Text = "OCR Start/stop"; this.groupBoxOCRControls.Text = "OCR Start/stop";
// //
// labelStartFrom // labelStartFrom
// //
this.labelStartFrom.AutoSize = true; this.labelStartFrom.AutoSize = true;
this.labelStartFrom.Location = new System.Drawing.Point(120, 26); this.labelStartFrom.Location = new System.Drawing.Point(120, 26);
this.labelStartFrom.Name = "labelStartFrom"; this.labelStartFrom.Name = "labelStartFrom";
this.labelStartFrom.Size = new System.Drawing.Size(127, 13); this.labelStartFrom.Size = new System.Drawing.Size(127, 13);
this.labelStartFrom.TabIndex = 31; this.labelStartFrom.TabIndex = 31;
this.labelStartFrom.Text = "Start OCR from subtitle#"; this.labelStartFrom.Text = "Start OCR from subtitle#";
// //
// numericUpDownStartNumber // numericUpDownStartNumber
// //
this.numericUpDownStartNumber.Location = new System.Drawing.Point(123, 47); this.numericUpDownStartNumber.Location = new System.Drawing.Point(123, 47);
this.numericUpDownStartNumber.Maximum = new decimal(new int[] { this.numericUpDownStartNumber.Maximum = new decimal(new int[] {
99999, 99999,
@ -540,9 +541,9 @@ namespace Nikse.SubtitleEdit.Forms
0, 0,
0, 0,
0}); 0});
// //
// buttonStop // buttonStop
// //
this.buttonStop.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.buttonStop.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.buttonStop.Location = new System.Drawing.Point(11, 52); this.buttonStop.Location = new System.Drawing.Point(11, 52);
this.buttonStop.Name = "buttonStop"; this.buttonStop.Name = "buttonStop";
@ -551,9 +552,9 @@ namespace Nikse.SubtitleEdit.Forms
this.buttonStop.Text = "Stop OCR"; this.buttonStop.Text = "Stop OCR";
this.buttonStop.UseVisualStyleBackColor = true; this.buttonStop.UseVisualStyleBackColor = true;
this.buttonStop.Click += new System.EventHandler(this.ButtonStopClick); this.buttonStop.Click += new System.EventHandler(this.ButtonStopClick);
// //
// buttonStartOcr // buttonStartOcr
// //
this.buttonStartOcr.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.buttonStartOcr.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.buttonStartOcr.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.buttonStartOcr.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.buttonStartOcr.Location = new System.Drawing.Point(11, 24); this.buttonStartOcr.Location = new System.Drawing.Point(11, 24);
@ -563,9 +564,9 @@ namespace Nikse.SubtitleEdit.Forms
this.buttonStartOcr.Text = "Start OCR"; this.buttonStartOcr.Text = "Start OCR";
this.buttonStartOcr.UseVisualStyleBackColor = true; this.buttonStartOcr.UseVisualStyleBackColor = true;
this.buttonStartOcr.Click += new System.EventHandler(this.ButtonStartOcrClick); this.buttonStartOcr.Click += new System.EventHandler(this.ButtonStartOcrClick);
// //
// groupBoxOcrAutoFix // groupBoxOcrAutoFix
// //
this.groupBoxOcrAutoFix.Controls.Add(this.labelFixesMade); this.groupBoxOcrAutoFix.Controls.Add(this.labelFixesMade);
this.groupBoxOcrAutoFix.Controls.Add(this.comboBoxDictionaries); this.groupBoxOcrAutoFix.Controls.Add(this.comboBoxDictionaries);
this.groupBoxOcrAutoFix.Controls.Add(this.checkBoxGuessUnknownWords); this.groupBoxOcrAutoFix.Controls.Add(this.checkBoxGuessUnknownWords);
@ -581,19 +582,19 @@ namespace Nikse.SubtitleEdit.Forms
this.groupBoxOcrAutoFix.TabIndex = 34; this.groupBoxOcrAutoFix.TabIndex = 34;
this.groupBoxOcrAutoFix.TabStop = false; this.groupBoxOcrAutoFix.TabStop = false;
this.groupBoxOcrAutoFix.Text = "OCR auto correction / spellchecking"; this.groupBoxOcrAutoFix.Text = "OCR auto correction / spellchecking";
// //
// labelFixesMade // labelFixesMade
// //
this.labelFixesMade.AutoSize = true; this.labelFixesMade.AutoSize = true;
this.labelFixesMade.Location = new System.Drawing.Point(151, 48); this.labelFixesMade.Location = new System.Drawing.Point(151, 48);
this.labelFixesMade.Name = "labelFixesMade"; this.labelFixesMade.Name = "labelFixesMade";
this.labelFixesMade.Size = new System.Drawing.Size(98, 13); this.labelFixesMade.Size = new System.Drawing.Size(98, 13);
this.labelFixesMade.TabIndex = 35; this.labelFixesMade.TabIndex = 35;
this.labelFixesMade.Text = "NumberOfOcrFixes"; this.labelFixesMade.Text = "NumberOfOcrFixes";
// //
// comboBoxDictionaries // comboBoxDictionaries
// //
this.comboBoxDictionaries.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) this.comboBoxDictionaries.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.comboBoxDictionaries.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBoxDictionaries.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboBoxDictionaries.FormattingEnabled = true; this.comboBoxDictionaries.FormattingEnabled = true;
@ -602,9 +603,9 @@ namespace Nikse.SubtitleEdit.Forms
this.comboBoxDictionaries.Size = new System.Drawing.Size(265, 21); this.comboBoxDictionaries.Size = new System.Drawing.Size(265, 21);
this.comboBoxDictionaries.TabIndex = 41; this.comboBoxDictionaries.TabIndex = 41;
this.comboBoxDictionaries.SelectedIndexChanged += new System.EventHandler(this.comboBoxDictionaries_SelectedIndexChanged); this.comboBoxDictionaries.SelectedIndexChanged += new System.EventHandler(this.comboBoxDictionaries_SelectedIndexChanged);
// //
// checkBoxGuessUnknownWords // checkBoxGuessUnknownWords
// //
this.checkBoxGuessUnknownWords.AutoSize = true; this.checkBoxGuessUnknownWords.AutoSize = true;
this.checkBoxGuessUnknownWords.Checked = true; this.checkBoxGuessUnknownWords.Checked = true;
this.checkBoxGuessUnknownWords.CheckState = System.Windows.Forms.CheckState.Checked; this.checkBoxGuessUnknownWords.CheckState = System.Windows.Forms.CheckState.Checked;
@ -614,11 +615,11 @@ namespace Nikse.SubtitleEdit.Forms
this.checkBoxGuessUnknownWords.TabIndex = 39; this.checkBoxGuessUnknownWords.TabIndex = 39;
this.checkBoxGuessUnknownWords.Text = "Try to guess unknown words"; this.checkBoxGuessUnknownWords.Text = "Try to guess unknown words";
this.checkBoxGuessUnknownWords.UseVisualStyleBackColor = true; this.checkBoxGuessUnknownWords.UseVisualStyleBackColor = true;
// //
// tabControlLogs // tabControlLogs
// //
this.tabControlLogs.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) this.tabControlLogs.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.tabControlLogs.Controls.Add(this.tabPageAllFixes); this.tabControlLogs.Controls.Add(this.tabPageAllFixes);
this.tabControlLogs.Controls.Add(this.tabPageSuggestions); this.tabControlLogs.Controls.Add(this.tabPageSuggestions);
@ -628,9 +629,9 @@ namespace Nikse.SubtitleEdit.Forms
this.tabControlLogs.SelectedIndex = 0; this.tabControlLogs.SelectedIndex = 0;
this.tabControlLogs.Size = new System.Drawing.Size(383, 181); this.tabControlLogs.Size = new System.Drawing.Size(383, 181);
this.tabControlLogs.TabIndex = 35; this.tabControlLogs.TabIndex = 35;
// //
// tabPageAllFixes // tabPageAllFixes
// //
this.tabPageAllFixes.Controls.Add(this.listBoxLog); this.tabPageAllFixes.Controls.Add(this.listBoxLog);
this.tabPageAllFixes.Location = new System.Drawing.Point(4, 22); this.tabPageAllFixes.Location = new System.Drawing.Point(4, 22);
this.tabPageAllFixes.Name = "tabPageAllFixes"; this.tabPageAllFixes.Name = "tabPageAllFixes";
@ -639,9 +640,9 @@ namespace Nikse.SubtitleEdit.Forms
this.tabPageAllFixes.TabIndex = 0; this.tabPageAllFixes.TabIndex = 0;
this.tabPageAllFixes.Text = "All fixes"; this.tabPageAllFixes.Text = "All fixes";
this.tabPageAllFixes.UseVisualStyleBackColor = true; this.tabPageAllFixes.UseVisualStyleBackColor = true;
// //
// listBoxLog // listBoxLog
// //
this.listBoxLog.Dock = System.Windows.Forms.DockStyle.Fill; this.listBoxLog.Dock = System.Windows.Forms.DockStyle.Fill;
this.listBoxLog.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.listBoxLog.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.listBoxLog.FormattingEnabled = true; this.listBoxLog.FormattingEnabled = true;
@ -650,9 +651,9 @@ namespace Nikse.SubtitleEdit.Forms
this.listBoxLog.Size = new System.Drawing.Size(369, 149); this.listBoxLog.Size = new System.Drawing.Size(369, 149);
this.listBoxLog.TabIndex = 39; this.listBoxLog.TabIndex = 39;
this.listBoxLog.SelectedIndexChanged += new System.EventHandler(this.ListBoxLogSelectedIndexChanged); this.listBoxLog.SelectedIndexChanged += new System.EventHandler(this.ListBoxLogSelectedIndexChanged);
// //
// tabPageSuggestions // tabPageSuggestions
// //
this.tabPageSuggestions.Controls.Add(this.listBoxLogSuggestions); this.tabPageSuggestions.Controls.Add(this.listBoxLogSuggestions);
this.tabPageSuggestions.Location = new System.Drawing.Point(4, 22); this.tabPageSuggestions.Location = new System.Drawing.Point(4, 22);
this.tabPageSuggestions.Name = "tabPageSuggestions"; this.tabPageSuggestions.Name = "tabPageSuggestions";
@ -661,9 +662,9 @@ namespace Nikse.SubtitleEdit.Forms
this.tabPageSuggestions.TabIndex = 1; this.tabPageSuggestions.TabIndex = 1;
this.tabPageSuggestions.Text = "Guesses used"; this.tabPageSuggestions.Text = "Guesses used";
this.tabPageSuggestions.UseVisualStyleBackColor = true; this.tabPageSuggestions.UseVisualStyleBackColor = true;
// //
// listBoxLogSuggestions // listBoxLogSuggestions
// //
this.listBoxLogSuggestions.Dock = System.Windows.Forms.DockStyle.Fill; this.listBoxLogSuggestions.Dock = System.Windows.Forms.DockStyle.Fill;
this.listBoxLogSuggestions.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.listBoxLogSuggestions.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.listBoxLogSuggestions.FormattingEnabled = true; this.listBoxLogSuggestions.FormattingEnabled = true;
@ -672,9 +673,9 @@ namespace Nikse.SubtitleEdit.Forms
this.listBoxLogSuggestions.Size = new System.Drawing.Size(369, 149); this.listBoxLogSuggestions.Size = new System.Drawing.Size(369, 149);
this.listBoxLogSuggestions.TabIndex = 40; this.listBoxLogSuggestions.TabIndex = 40;
this.listBoxLogSuggestions.SelectedIndexChanged += new System.EventHandler(this.ListBoxLogSelectedIndexChanged); this.listBoxLogSuggestions.SelectedIndexChanged += new System.EventHandler(this.ListBoxLogSelectedIndexChanged);
// //
// tabPageUnknownWords // tabPageUnknownWords
// //
this.tabPageUnknownWords.Controls.Add(this.listBoxUnknownWords); this.tabPageUnknownWords.Controls.Add(this.listBoxUnknownWords);
this.tabPageUnknownWords.Location = new System.Drawing.Point(4, 22); this.tabPageUnknownWords.Location = new System.Drawing.Point(4, 22);
this.tabPageUnknownWords.Name = "tabPageUnknownWords"; this.tabPageUnknownWords.Name = "tabPageUnknownWords";
@ -682,9 +683,9 @@ namespace Nikse.SubtitleEdit.Forms
this.tabPageUnknownWords.TabIndex = 2; this.tabPageUnknownWords.TabIndex = 2;
this.tabPageUnknownWords.Text = "Unknown words"; this.tabPageUnknownWords.Text = "Unknown words";
this.tabPageUnknownWords.UseVisualStyleBackColor = true; this.tabPageUnknownWords.UseVisualStyleBackColor = true;
// //
// listBoxUnknownWords // listBoxUnknownWords
// //
this.listBoxUnknownWords.Dock = System.Windows.Forms.DockStyle.Fill; this.listBoxUnknownWords.Dock = System.Windows.Forms.DockStyle.Fill;
this.listBoxUnknownWords.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.listBoxUnknownWords.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.listBoxUnknownWords.FormattingEnabled = true; this.listBoxUnknownWords.FormattingEnabled = true;
@ -693,9 +694,9 @@ namespace Nikse.SubtitleEdit.Forms
this.listBoxUnknownWords.Size = new System.Drawing.Size(375, 155); this.listBoxUnknownWords.Size = new System.Drawing.Size(375, 155);
this.listBoxUnknownWords.TabIndex = 40; this.listBoxUnknownWords.TabIndex = 40;
this.listBoxUnknownWords.SelectedIndexChanged += new System.EventHandler(this.ListBoxLogSelectedIndexChanged); this.listBoxUnknownWords.SelectedIndexChanged += new System.EventHandler(this.ListBoxLogSelectedIndexChanged);
// //
// checkBoxPromptForUnknownWords // checkBoxPromptForUnknownWords
// //
this.checkBoxPromptForUnknownWords.AutoSize = true; this.checkBoxPromptForUnknownWords.AutoSize = true;
this.checkBoxPromptForUnknownWords.Checked = true; this.checkBoxPromptForUnknownWords.Checked = true;
this.checkBoxPromptForUnknownWords.CheckState = System.Windows.Forms.CheckState.Checked; this.checkBoxPromptForUnknownWords.CheckState = System.Windows.Forms.CheckState.Checked;
@ -705,9 +706,9 @@ namespace Nikse.SubtitleEdit.Forms
this.checkBoxPromptForUnknownWords.TabIndex = 38; this.checkBoxPromptForUnknownWords.TabIndex = 38;
this.checkBoxPromptForUnknownWords.Text = "Prompt for unknown words (requires dictionary)"; this.checkBoxPromptForUnknownWords.Text = "Prompt for unknown words (requires dictionary)";
this.checkBoxPromptForUnknownWords.UseVisualStyleBackColor = true; this.checkBoxPromptForUnknownWords.UseVisualStyleBackColor = true;
// //
// checkBoxAutoBreakLines // checkBoxAutoBreakLines
// //
this.checkBoxAutoBreakLines.AutoSize = true; this.checkBoxAutoBreakLines.AutoSize = true;
this.checkBoxAutoBreakLines.Checked = true; this.checkBoxAutoBreakLines.Checked = true;
this.checkBoxAutoBreakLines.CheckState = System.Windows.Forms.CheckState.Checked; this.checkBoxAutoBreakLines.CheckState = System.Windows.Forms.CheckState.Checked;
@ -717,18 +718,18 @@ namespace Nikse.SubtitleEdit.Forms
this.checkBoxAutoBreakLines.TabIndex = 37; this.checkBoxAutoBreakLines.TabIndex = 37;
this.checkBoxAutoBreakLines.Text = "Auto break subtitle, if line number > 2"; this.checkBoxAutoBreakLines.Text = "Auto break subtitle, if line number > 2";
this.checkBoxAutoBreakLines.UseVisualStyleBackColor = true; this.checkBoxAutoBreakLines.UseVisualStyleBackColor = true;
// //
// labelDictionaryLoaded // labelDictionaryLoaded
// //
this.labelDictionaryLoaded.AutoSize = true; this.labelDictionaryLoaded.AutoSize = true;
this.labelDictionaryLoaded.Location = new System.Drawing.Point(11, 24); this.labelDictionaryLoaded.Location = new System.Drawing.Point(11, 24);
this.labelDictionaryLoaded.Name = "labelDictionaryLoaded"; this.labelDictionaryLoaded.Name = "labelDictionaryLoaded";
this.labelDictionaryLoaded.Size = new System.Drawing.Size(112, 13); this.labelDictionaryLoaded.Size = new System.Drawing.Size(112, 13);
this.labelDictionaryLoaded.TabIndex = 36; this.labelDictionaryLoaded.TabIndex = 36;
this.labelDictionaryLoaded.Text = "labelDictionaryLoaded"; this.labelDictionaryLoaded.Text = "labelDictionaryLoaded";
// //
// checkBoxAutoFixCommonErrors // checkBoxAutoFixCommonErrors
// //
this.checkBoxAutoFixCommonErrors.AutoSize = true; this.checkBoxAutoFixCommonErrors.AutoSize = true;
this.checkBoxAutoFixCommonErrors.Checked = true; this.checkBoxAutoFixCommonErrors.Checked = true;
this.checkBoxAutoFixCommonErrors.CheckState = System.Windows.Forms.CheckState.Checked; this.checkBoxAutoFixCommonErrors.CheckState = System.Windows.Forms.CheckState.Checked;
@ -738,10 +739,10 @@ namespace Nikse.SubtitleEdit.Forms
this.checkBoxAutoFixCommonErrors.TabIndex = 34; this.checkBoxAutoFixCommonErrors.TabIndex = 34;
this.checkBoxAutoFixCommonErrors.Text = "Fix common OCR errors"; this.checkBoxAutoFixCommonErrors.Text = "Fix common OCR errors";
this.checkBoxAutoFixCommonErrors.UseVisualStyleBackColor = true; this.checkBoxAutoFixCommonErrors.UseVisualStyleBackColor = true;
// //
// groupBoxImagePalette // groupBoxImagePalette
// //
this.groupBoxImagePalette.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) this.groupBoxImagePalette.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.groupBoxImagePalette.Controls.Add(this.checkBoxBackgroundTransparent); this.groupBoxImagePalette.Controls.Add(this.checkBoxBackgroundTransparent);
this.groupBoxImagePalette.Controls.Add(this.pictureBoxBackground); this.groupBoxImagePalette.Controls.Add(this.pictureBoxBackground);
@ -758,9 +759,9 @@ namespace Nikse.SubtitleEdit.Forms
this.groupBoxImagePalette.TabIndex = 35; this.groupBoxImagePalette.TabIndex = 35;
this.groupBoxImagePalette.TabStop = false; this.groupBoxImagePalette.TabStop = false;
this.groupBoxImagePalette.Text = "Image palette"; this.groupBoxImagePalette.Text = "Image palette";
// //
// checkBoxBackgroundTransparent // checkBoxBackgroundTransparent
// //
this.checkBoxBackgroundTransparent.AutoSize = true; this.checkBoxBackgroundTransparent.AutoSize = true;
this.checkBoxBackgroundTransparent.Checked = true; this.checkBoxBackgroundTransparent.Checked = true;
this.checkBoxBackgroundTransparent.CheckState = System.Windows.Forms.CheckState.Checked; this.checkBoxBackgroundTransparent.CheckState = System.Windows.Forms.CheckState.Checked;
@ -771,9 +772,9 @@ namespace Nikse.SubtitleEdit.Forms
this.checkBoxBackgroundTransparent.Text = "Transparent"; this.checkBoxBackgroundTransparent.Text = "Transparent";
this.checkBoxBackgroundTransparent.UseVisualStyleBackColor = true; this.checkBoxBackgroundTransparent.UseVisualStyleBackColor = true;
this.checkBoxBackgroundTransparent.CheckedChanged += new System.EventHandler(this.CheckBoxPatternTransparentCheckedChanged); this.checkBoxBackgroundTransparent.CheckedChanged += new System.EventHandler(this.CheckBoxPatternTransparentCheckedChanged);
// //
// pictureBoxBackground // pictureBoxBackground
// //
this.pictureBoxBackground.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.pictureBoxBackground.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.pictureBoxBackground.Location = new System.Drawing.Point(120, 12); this.pictureBoxBackground.Location = new System.Drawing.Point(120, 12);
this.pictureBoxBackground.Name = "pictureBoxBackground"; this.pictureBoxBackground.Name = "pictureBoxBackground";
@ -781,9 +782,9 @@ namespace Nikse.SubtitleEdit.Forms
this.pictureBoxBackground.TabIndex = 7; this.pictureBoxBackground.TabIndex = 7;
this.pictureBoxBackground.TabStop = false; this.pictureBoxBackground.TabStop = false;
this.pictureBoxBackground.Click += new System.EventHandler(this.PictureBoxColorChooserClick); this.pictureBoxBackground.Click += new System.EventHandler(this.PictureBoxColorChooserClick);
// //
// checkBoxEmphasis2Transparent // checkBoxEmphasis2Transparent
// //
this.checkBoxEmphasis2Transparent.AutoSize = true; this.checkBoxEmphasis2Transparent.AutoSize = true;
this.checkBoxEmphasis2Transparent.Location = new System.Drawing.Point(507, 19); this.checkBoxEmphasis2Transparent.Location = new System.Drawing.Point(507, 19);
this.checkBoxEmphasis2Transparent.Name = "checkBoxEmphasis2Transparent"; this.checkBoxEmphasis2Transparent.Name = "checkBoxEmphasis2Transparent";
@ -792,9 +793,9 @@ namespace Nikse.SubtitleEdit.Forms
this.checkBoxEmphasis2Transparent.Text = "Transparent"; this.checkBoxEmphasis2Transparent.Text = "Transparent";
this.checkBoxEmphasis2Transparent.UseVisualStyleBackColor = true; this.checkBoxEmphasis2Transparent.UseVisualStyleBackColor = true;
this.checkBoxEmphasis2Transparent.CheckedChanged += new System.EventHandler(this.CheckBoxEmphasis2TransparentCheckedChanged); this.checkBoxEmphasis2Transparent.CheckedChanged += new System.EventHandler(this.CheckBoxEmphasis2TransparentCheckedChanged);
// //
// checkBoxEmphasis1Transparent // checkBoxEmphasis1Transparent
// //
this.checkBoxEmphasis1Transparent.AutoSize = true; this.checkBoxEmphasis1Transparent.AutoSize = true;
this.checkBoxEmphasis1Transparent.Location = new System.Drawing.Point(387, 19); this.checkBoxEmphasis1Transparent.Location = new System.Drawing.Point(387, 19);
this.checkBoxEmphasis1Transparent.Name = "checkBoxEmphasis1Transparent"; this.checkBoxEmphasis1Transparent.Name = "checkBoxEmphasis1Transparent";
@ -803,9 +804,9 @@ namespace Nikse.SubtitleEdit.Forms
this.checkBoxEmphasis1Transparent.Text = "Transparent"; this.checkBoxEmphasis1Transparent.Text = "Transparent";
this.checkBoxEmphasis1Transparent.UseVisualStyleBackColor = true; this.checkBoxEmphasis1Transparent.UseVisualStyleBackColor = true;
this.checkBoxEmphasis1Transparent.CheckedChanged += new System.EventHandler(this.CheckBoxEmphasis1TransparentCheckedChanged); this.checkBoxEmphasis1Transparent.CheckedChanged += new System.EventHandler(this.CheckBoxEmphasis1TransparentCheckedChanged);
// //
// checkBoxPatternTransparent // checkBoxPatternTransparent
// //
this.checkBoxPatternTransparent.AutoSize = true; this.checkBoxPatternTransparent.AutoSize = true;
this.checkBoxPatternTransparent.Location = new System.Drawing.Point(266, 19); this.checkBoxPatternTransparent.Location = new System.Drawing.Point(266, 19);
this.checkBoxPatternTransparent.Name = "checkBoxPatternTransparent"; this.checkBoxPatternTransparent.Name = "checkBoxPatternTransparent";
@ -814,9 +815,9 @@ namespace Nikse.SubtitleEdit.Forms
this.checkBoxPatternTransparent.Text = "Transparent"; this.checkBoxPatternTransparent.Text = "Transparent";
this.checkBoxPatternTransparent.UseVisualStyleBackColor = true; this.checkBoxPatternTransparent.UseVisualStyleBackColor = true;
this.checkBoxPatternTransparent.CheckedChanged += new System.EventHandler(this.CheckBoxPatternTransparentCheckedChanged); this.checkBoxPatternTransparent.CheckedChanged += new System.EventHandler(this.CheckBoxPatternTransparentCheckedChanged);
// //
// pictureBoxEmphasis2 // pictureBoxEmphasis2
// //
this.pictureBoxEmphasis2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.pictureBoxEmphasis2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.pictureBoxEmphasis2.Location = new System.Drawing.Point(484, 12); this.pictureBoxEmphasis2.Location = new System.Drawing.Point(484, 12);
this.pictureBoxEmphasis2.Name = "pictureBoxEmphasis2"; this.pictureBoxEmphasis2.Name = "pictureBoxEmphasis2";
@ -825,9 +826,9 @@ namespace Nikse.SubtitleEdit.Forms
this.pictureBoxEmphasis2.TabStop = false; this.pictureBoxEmphasis2.TabStop = false;
this.pictureBoxEmphasis2.Click += new System.EventHandler(this.PictureBoxColorChooserClick); this.pictureBoxEmphasis2.Click += new System.EventHandler(this.PictureBoxColorChooserClick);
this.pictureBoxEmphasis2.DoubleClick += new System.EventHandler(this.PictureBoxColorChooserClick); this.pictureBoxEmphasis2.DoubleClick += new System.EventHandler(this.PictureBoxColorChooserClick);
// //
// pictureBoxEmphasis1 // pictureBoxEmphasis1
// //
this.pictureBoxEmphasis1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.pictureBoxEmphasis1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.pictureBoxEmphasis1.Location = new System.Drawing.Point(363, 12); this.pictureBoxEmphasis1.Location = new System.Drawing.Point(363, 12);
this.pictureBoxEmphasis1.Name = "pictureBoxEmphasis1"; this.pictureBoxEmphasis1.Name = "pictureBoxEmphasis1";
@ -836,9 +837,9 @@ namespace Nikse.SubtitleEdit.Forms
this.pictureBoxEmphasis1.TabStop = false; this.pictureBoxEmphasis1.TabStop = false;
this.pictureBoxEmphasis1.Click += new System.EventHandler(this.PictureBoxColorChooserClick); this.pictureBoxEmphasis1.Click += new System.EventHandler(this.PictureBoxColorChooserClick);
this.pictureBoxEmphasis1.DoubleClick += new System.EventHandler(this.PictureBoxColorChooserClick); this.pictureBoxEmphasis1.DoubleClick += new System.EventHandler(this.PictureBoxColorChooserClick);
// //
// pictureBoxPattern // pictureBoxPattern
// //
this.pictureBoxPattern.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.pictureBoxPattern.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.pictureBoxPattern.Location = new System.Drawing.Point(242, 12); this.pictureBoxPattern.Location = new System.Drawing.Point(242, 12);
this.pictureBoxPattern.Name = "pictureBoxPattern"; this.pictureBoxPattern.Name = "pictureBoxPattern";
@ -847,9 +848,9 @@ namespace Nikse.SubtitleEdit.Forms
this.pictureBoxPattern.TabStop = false; this.pictureBoxPattern.TabStop = false;
this.pictureBoxPattern.Click += new System.EventHandler(this.PictureBoxColorChooserClick); this.pictureBoxPattern.Click += new System.EventHandler(this.PictureBoxColorChooserClick);
this.pictureBoxPattern.DoubleClick += new System.EventHandler(this.PictureBoxColorChooserClick); this.pictureBoxPattern.DoubleClick += new System.EventHandler(this.PictureBoxColorChooserClick);
// //
// checkBoxCustomFourColors // checkBoxCustomFourColors
// //
this.checkBoxCustomFourColors.AutoSize = true; this.checkBoxCustomFourColors.AutoSize = true;
this.checkBoxCustomFourColors.Location = new System.Drawing.Point(7, 16); this.checkBoxCustomFourColors.Location = new System.Drawing.Point(7, 16);
this.checkBoxCustomFourColors.Name = "checkBoxCustomFourColors"; this.checkBoxCustomFourColors.Name = "checkBoxCustomFourColors";
@ -858,10 +859,10 @@ namespace Nikse.SubtitleEdit.Forms
this.checkBoxCustomFourColors.Text = "Use custom colors:"; this.checkBoxCustomFourColors.Text = "Use custom colors:";
this.checkBoxCustomFourColors.UseVisualStyleBackColor = true; this.checkBoxCustomFourColors.UseVisualStyleBackColor = true;
this.checkBoxCustomFourColors.CheckedChanged += new System.EventHandler(this.CheckBoxCustomFourColorsCheckedChanged); this.checkBoxCustomFourColors.CheckedChanged += new System.EventHandler(this.CheckBoxCustomFourColorsCheckedChanged);
// //
// groupBoxSubtitleImage // groupBoxSubtitleImage
// //
this.groupBoxSubtitleImage.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) this.groupBoxSubtitleImage.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.groupBoxSubtitleImage.Controls.Add(this.checkBoxAutoTransparentBackground); this.groupBoxSubtitleImage.Controls.Add(this.checkBoxAutoTransparentBackground);
this.groupBoxSubtitleImage.Controls.Add(this.groupBoxImagePalette); this.groupBoxSubtitleImage.Controls.Add(this.groupBoxImagePalette);
@ -872,9 +873,9 @@ namespace Nikse.SubtitleEdit.Forms
this.groupBoxSubtitleImage.TabIndex = 36; this.groupBoxSubtitleImage.TabIndex = 36;
this.groupBoxSubtitleImage.TabStop = false; this.groupBoxSubtitleImage.TabStop = false;
this.groupBoxSubtitleImage.Text = "Subtitle image"; this.groupBoxSubtitleImage.Text = "Subtitle image";
// //
// checkBoxAutoTransparentBackground // checkBoxAutoTransparentBackground
// //
this.checkBoxAutoTransparentBackground.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.checkBoxAutoTransparentBackground.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.checkBoxAutoTransparentBackground.AutoSize = true; this.checkBoxAutoTransparentBackground.AutoSize = true;
this.checkBoxAutoTransparentBackground.Location = new System.Drawing.Point(485, 170); this.checkBoxAutoTransparentBackground.Location = new System.Drawing.Point(485, 170);
@ -884,9 +885,9 @@ namespace Nikse.SubtitleEdit.Forms
this.checkBoxAutoTransparentBackground.Text = "Auto transparent background"; this.checkBoxAutoTransparentBackground.Text = "Auto transparent background";
this.checkBoxAutoTransparentBackground.UseVisualStyleBackColor = true; this.checkBoxAutoTransparentBackground.UseVisualStyleBackColor = true;
this.checkBoxAutoTransparentBackground.CheckedChanged += new System.EventHandler(this.checkBoxAutoTransparentBackground_CheckedChanged); this.checkBoxAutoTransparentBackground.CheckedChanged += new System.EventHandler(this.checkBoxAutoTransparentBackground_CheckedChanged);
// //
// checkBoxShowOnlyForced // checkBoxShowOnlyForced
// //
this.checkBoxShowOnlyForced.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.checkBoxShowOnlyForced.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.checkBoxShowOnlyForced.AutoSize = true; this.checkBoxShowOnlyForced.AutoSize = true;
this.checkBoxShowOnlyForced.Location = new System.Drawing.Point(369, 313); this.checkBoxShowOnlyForced.Location = new System.Drawing.Point(369, 313);
@ -896,9 +897,9 @@ namespace Nikse.SubtitleEdit.Forms
this.checkBoxShowOnlyForced.Text = "Show only forced subtitles"; this.checkBoxShowOnlyForced.Text = "Show only forced subtitles";
this.checkBoxShowOnlyForced.UseVisualStyleBackColor = true; this.checkBoxShowOnlyForced.UseVisualStyleBackColor = true;
this.checkBoxShowOnlyForced.CheckedChanged += new System.EventHandler(this.checkBoxShowOnlyForced_CheckedChanged); this.checkBoxShowOnlyForced.CheckedChanged += new System.EventHandler(this.checkBoxShowOnlyForced_CheckedChanged);
// //
// checkBoxUseTimeCodesFromIdx // checkBoxUseTimeCodesFromIdx
// //
this.checkBoxUseTimeCodesFromIdx.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.checkBoxUseTimeCodesFromIdx.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.checkBoxUseTimeCodesFromIdx.AutoSize = true; this.checkBoxUseTimeCodesFromIdx.AutoSize = true;
this.checkBoxUseTimeCodesFromIdx.Location = new System.Drawing.Point(369, 295); this.checkBoxUseTimeCodesFromIdx.Location = new System.Drawing.Point(369, 295);
@ -908,21 +909,21 @@ namespace Nikse.SubtitleEdit.Forms
this.checkBoxUseTimeCodesFromIdx.Text = "Use lines/time codes from .idx file"; this.checkBoxUseTimeCodesFromIdx.Text = "Use lines/time codes from .idx file";
this.checkBoxUseTimeCodesFromIdx.UseVisualStyleBackColor = true; this.checkBoxUseTimeCodesFromIdx.UseVisualStyleBackColor = true;
this.checkBoxUseTimeCodesFromIdx.CheckedChanged += new System.EventHandler(this.checkBoxUseTimeCodesFromIdx_CheckedChanged); this.checkBoxUseTimeCodesFromIdx.CheckedChanged += new System.EventHandler(this.checkBoxUseTimeCodesFromIdx_CheckedChanged);
// //
// openFileDialog1 // openFileDialog1
// //
this.openFileDialog1.FileName = "openFileDialog1"; this.openFileDialog1.FileName = "openFileDialog1";
// //
// splitContainerBottom // splitContainerBottom
// //
this.splitContainerBottom.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) this.splitContainerBottom.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.splitContainerBottom.Location = new System.Drawing.Point(15, 199); this.splitContainerBottom.Location = new System.Drawing.Point(15, 199);
this.splitContainerBottom.Name = "splitContainerBottom"; this.splitContainerBottom.Name = "splitContainerBottom";
// //
// splitContainerBottom.Panel1 // splitContainerBottom.Panel1
// //
this.splitContainerBottom.Panel1.Controls.Add(this.checkBoxShowOnlyForced); this.splitContainerBottom.Panel1.Controls.Add(this.checkBoxShowOnlyForced);
this.splitContainerBottom.Panel1.Controls.Add(this.textBoxCurrentText); this.splitContainerBottom.Panel1.Controls.Add(this.textBoxCurrentText);
this.splitContainerBottom.Panel1.Controls.Add(this.groupBoxOCRControls); this.splitContainerBottom.Panel1.Controls.Add(this.groupBoxOCRControls);
@ -930,19 +931,19 @@ namespace Nikse.SubtitleEdit.Forms
this.splitContainerBottom.Panel1.Controls.Add(this.subtitleListView1); this.splitContainerBottom.Panel1.Controls.Add(this.subtitleListView1);
this.splitContainerBottom.Panel1.Controls.Add(this.labelSubtitleText); this.splitContainerBottom.Panel1.Controls.Add(this.labelSubtitleText);
this.splitContainerBottom.Panel1MinSize = 100; this.splitContainerBottom.Panel1MinSize = 100;
// //
// splitContainerBottom.Panel2 // splitContainerBottom.Panel2
// //
this.splitContainerBottom.Panel2.Controls.Add(this.groupBoxOcrAutoFix); this.splitContainerBottom.Panel2.Controls.Add(this.groupBoxOcrAutoFix);
this.splitContainerBottom.Panel2MinSize = 100; this.splitContainerBottom.Panel2MinSize = 100;
this.splitContainerBottom.Size = new System.Drawing.Size(1062, 333); this.splitContainerBottom.Size = new System.Drawing.Size(1062, 333);
this.splitContainerBottom.SplitterDistance = 658; this.splitContainerBottom.SplitterDistance = 658;
this.splitContainerBottom.TabIndex = 39; this.splitContainerBottom.TabIndex = 39;
// //
// subtitleListView1 // subtitleListView1
// //
this.subtitleListView1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) this.subtitleListView1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.subtitleListView1.ContextMenuStrip = this.contextMenuStripListview; this.subtitleListView1.ContextMenuStrip = this.contextMenuStripListview;
this.subtitleListView1.DisplayExtraFromExtra = false; this.subtitleListView1.DisplayExtraFromExtra = false;
@ -958,9 +959,9 @@ namespace Nikse.SubtitleEdit.Forms
this.subtitleListView1.UseCompatibleStateImageBehavior = false; this.subtitleListView1.UseCompatibleStateImageBehavior = false;
this.subtitleListView1.View = System.Windows.Forms.View.Details; this.subtitleListView1.View = System.Windows.Forms.View.Details;
this.subtitleListView1.SelectedIndexChanged += new System.EventHandler(this.SubtitleListView1SelectedIndexChanged); this.subtitleListView1.SelectedIndexChanged += new System.EventHandler(this.SubtitleListView1SelectedIndexChanged);
// //
// VobSubOcr // VobSubOcr
// //
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(1089, 579); this.ClientSize = new System.Drawing.Size(1089, 579);
@ -978,6 +979,7 @@ namespace Nikse.SubtitleEdit.Forms
this.Name = "VobSubOcr"; this.Name = "VobSubOcr";
this.ShowIcon = false; this.ShowIcon = false;
this.Text = "Import/OCR VobSub (sub/idx) subtitle"; this.Text = "Import/OCR VobSub (sub/idx) subtitle";
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.VobSubOcr_FormClosing);
this.Shown += new System.EventHandler(this.FormVobSubOcr_Shown); this.Shown += new System.EventHandler(this.FormVobSubOcr_Shown);
this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.VobSubOcr_KeyDown); this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.VobSubOcr_KeyDown);
this.Resize += new System.EventHandler(this.VobSubOcr_Resize); this.Resize += new System.EventHandler(this.VobSubOcr_Resize);

View File

@ -148,6 +148,10 @@ namespace Nikse.SubtitleEdit.Forms
Keys _italicShortcut = Utilities.GetKeys(Configuration.Settings.Shortcuts.MainTextBoxItalic); Keys _italicShortcut = Utilities.GetKeys(Configuration.Settings.Shortcuts.MainTextBoxItalic);
private string[] _tesseractAsyncStrings = null;
private int _tesseractAsyncIndex = 0;
private BackgroundWorker _tesseractThread;
public VobSubOcr() public VobSubOcr()
{ {
InitializeComponent(); InitializeComponent();
@ -957,49 +961,52 @@ namespace Nikse.SubtitleEdit.Forms
// Search images with minor location changes // Search images with minor location changes
FindBestMatch(ref index, ref smallestDifference, ref smallestIndex, target); FindBestMatch(ref index, ref smallestDifference, ref smallestIndex, target);
if (smallestDifference > 0 && target.Width > 12)
{
Bitmap cutBitmap = CopyBitmapSection(target, new Rectangle(1, 0, target.Width - 2, target.Height));
FindBestMatch(ref index, ref smallestDifference, ref smallestIndex, cutBitmap);
cutBitmap.Dispose();
}
if (smallestDifference > 0 && target.Width > 12) if (target.Height < 35)
{ {
Bitmap cutBitmap = CopyBitmapSection(target, new Rectangle(0, 0, target.Width - 2, target.Height)); if (smallestDifference > 0 && target.Width > 12)
FindBestMatch(ref index, ref smallestDifference, ref smallestIndex, cutBitmap); {
cutBitmap.Dispose(); Bitmap cutBitmap = CopyBitmapSection(target, new Rectangle(1, 0, target.Width - 2, target.Height));
}
if (smallestDifference > 0 && target.Width > 12)
{
Bitmap cutBitmap = CopyBitmapSection(target, new Rectangle(1, 0, target.Width - 2, target.Height));
int topCrop = 0;
cutBitmap = ImageSplitter.CropTopAndBottom(cutBitmap, out topCrop, 2);
if (cutBitmap.Height != target.Height)
FindBestMatch(ref index, ref smallestDifference, ref smallestIndex, cutBitmap); FindBestMatch(ref index, ref smallestDifference, ref smallestIndex, cutBitmap);
cutBitmap.Dispose(); cutBitmap.Dispose();
} }
if (smallestDifference > 0 && target.Width > 15) if (smallestDifference > 0 && target.Width > 12)
{ {
Bitmap cutBitmap = CopyBitmapSection(target, new Rectangle(1, 0, target.Width - 2, target.Height)); Bitmap cutBitmap = CopyBitmapSection(target, new Rectangle(0, 0, target.Width - 2, target.Height));
int topCrop = 0;
cutBitmap = ImageSplitter.CropTopAndBottom(cutBitmap, out topCrop);
if (cutBitmap.Height != target.Height)
FindBestMatch(ref index, ref smallestDifference, ref smallestIndex, cutBitmap); FindBestMatch(ref index, ref smallestDifference, ref smallestIndex, cutBitmap);
cutBitmap.Dispose(); cutBitmap.Dispose();
} }
if (smallestDifference > 0 && target.Width > 12)
{
Bitmap cutBitmap = CopyBitmapSection(target, new Rectangle(1, 0, target.Width - 2, target.Height));
int topCrop = 0;
cutBitmap = ImageSplitter.CropTopAndBottom(cutBitmap, out topCrop, 2);
if (cutBitmap.Height != target.Height)
FindBestMatch(ref index, ref smallestDifference, ref smallestIndex, cutBitmap);
cutBitmap.Dispose();
}
if (smallestDifference > 0 && target.Width > 15) if (smallestDifference > 0 && target.Width > 15)
{ {
Bitmap cutBitmap = CopyBitmapSection(target, new Rectangle(1, 0, target.Width - 2, target.Height)); Bitmap cutBitmap = CopyBitmapSection(target, new Rectangle(1, 0, target.Width - 2, target.Height));
int topCrop = 0; int topCrop = 0;
cutBitmap = ImageSplitter.CropTopAndBottom(cutBitmap, out topCrop); cutBitmap = ImageSplitter.CropTopAndBottom(cutBitmap, out topCrop);
if (cutBitmap.Height != target.Height) if (cutBitmap.Height != target.Height)
FindBestMatch(ref index, ref smallestDifference, ref smallestIndex, cutBitmap); FindBestMatch(ref index, ref smallestDifference, ref smallestIndex, cutBitmap);
cutBitmap.Dispose(); cutBitmap.Dispose();
}
if (smallestDifference > 0 && target.Width > 15)
{
Bitmap cutBitmap = CopyBitmapSection(target, new Rectangle(1, 0, target.Width - 2, target.Height));
int topCrop = 0;
cutBitmap = ImageSplitter.CropTopAndBottom(cutBitmap, out topCrop);
if (cutBitmap.Height != target.Height)
FindBestMatch(ref index, ref smallestDifference, ref smallestIndex, cutBitmap);
cutBitmap.Dispose();
}
} }
if (smallestIndex >= 0) if (smallestIndex >= 0)
@ -1755,7 +1762,7 @@ namespace Nikse.SubtitleEdit.Forms
} }
private void ButtonOkClick(object sender, EventArgs e) private void ButtonOkClick(object sender, EventArgs e)
{ {
if (Configuration.Settings.VobSubOcr.XOrMorePixelsMakesSpace != (int)numericUpDownPixelsIsSpace.Value && _bluRaySubtitlesOriginal == null) if (Configuration.Settings.VobSubOcr.XOrMorePixelsMakesSpace != (int)numericUpDownPixelsIsSpace.Value && _bluRaySubtitlesOriginal == null)
{ {
Configuration.Settings.VobSubOcr.XOrMorePixelsMakesSpace = (int)numericUpDownPixelsIsSpace.Value; Configuration.Settings.VobSubOcr.XOrMorePixelsMakesSpace = (int)numericUpDownPixelsIsSpace.Value;
@ -1777,6 +1784,26 @@ namespace Nikse.SubtitleEdit.Forms
progressBar1.Visible = false; progressBar1.Visible = false;
} }
void TesseractThreadDoWork(object sender, DoWorkEventArgs e)
{
var bitmap = (Bitmap)e.Argument;
if (_tesseractAsyncIndex >= 0 && _tesseractAsyncIndex < _tesseractAsyncStrings.Length)
{
if (string.IsNullOrEmpty(_tesseractAsyncStrings[_tesseractAsyncIndex]))
_tesseractAsyncStrings[_tesseractAsyncIndex] = Tesseract3DoOcrViaExe(bitmap, _languageId);
}
}
void TesseractThreadRunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
{
if (!e.Cancelled)
{
_tesseractAsyncIndex++;
if (_tesseractAsyncIndex >= 0 && _tesseractAsyncIndex < _tesseractAsyncStrings.Length)
_tesseractThread.RunWorkerAsync(GetSubtitleBitmap(_tesseractAsyncIndex));
}
}
private void ButtonStartOcrClick(object sender, EventArgs e) private void ButtonStartOcrClick(object sender, EventArgs e)
{ {
Configuration.Settings.VobSubOcr.RightToLeft = checkBoxRightToLeft.Checked; Configuration.Settings.VobSubOcr.RightToLeft = checkBoxRightToLeft.Checked;
@ -1792,6 +1819,17 @@ namespace Nikse.SubtitleEdit.Forms
int max = GetSubtitleCount(); int max = GetSubtitleCount();
if (comboBoxOcrMethod.SelectedIndex == 0 && _tesseractAsyncStrings == null)
{
_tesseractAsyncStrings = new string[max];
_tesseractAsyncIndex = (int)numericUpDownStartNumber.Value + 5;
_tesseractThread = new BackgroundWorker();
_tesseractThread.DoWork += TesseractThreadDoWork;
_tesseractThread.RunWorkerCompleted += TesseractThreadRunWorkerCompleted;
_tesseractThread.WorkerSupportsCancellation = true;
_tesseractThread.RunWorkerAsync(GetSubtitleBitmap(_tesseractAsyncIndex));
}
progressBar1.Maximum = max; progressBar1.Maximum = max;
progressBar1.Value = 0; progressBar1.Value = 0;
progressBar1.Visible = true; progressBar1.Visible = true;
@ -1944,7 +1982,17 @@ namespace Nikse.SubtitleEdit.Forms
LoadOcrFixEngine(); LoadOcrFixEngine();
int badWords = 0; int badWords = 0;
string textWithOutFixes = Tesseract3DoOcrViaExe(bitmap, _languageId); string textWithOutFixes;
if (!string.IsNullOrEmpty(_tesseractAsyncStrings[index]))
{
textWithOutFixes = _tesseractAsyncStrings[index];
}
else
{
if (_tesseractAsyncIndex <= index || _tesseractAsyncIndex > index + 50)
_tesseractAsyncIndex = index + 10;
textWithOutFixes = Tesseract3DoOcrViaExe(bitmap, _languageId);
}
if (textWithOutFixes.ToString().Trim().Length == 0) if (textWithOutFixes.ToString().Trim().Length == 0)
textWithOutFixes = TesseractResizeAndRetry(bitmap); textWithOutFixes = TesseractResizeAndRetry(bitmap);
@ -2734,7 +2782,7 @@ namespace Nikse.SubtitleEdit.Forms
string name = comboBoxDictionaries.SelectedItem.ToString(); string name = comboBoxDictionaries.SelectedItem.ToString();
int start = name.LastIndexOf("["); int start = name.LastIndexOf("[");
int end = name.LastIndexOf("]"); int end = name.LastIndexOf("]");
if (start > 0 && end > start) if (start >= 0 && end > start)
{ {
start++; start++;
name = name.Substring(start, end - start); name = name.Substring(start, end - start);
@ -2984,7 +3032,6 @@ namespace Nikse.SubtitleEdit.Forms
SubtitleListView1SelectedIndexChanged(null, null); SubtitleListView1SelectedIndexChanged(null, null);
} }
internal void Initialize(string fileName, List<Color> palette, VobSubOcrSettings vobSubOcrSettings, List<SpHeader> spList) internal void Initialize(string fileName, List<Color> palette, VobSubOcrSettings vobSubOcrSettings, List<SpHeader> spList)
{ {
_spList = spList; _spList = spList;
@ -3079,7 +3126,6 @@ namespace Nikse.SubtitleEdit.Forms
LoadImageCompareCharacterDatabaseList(); LoadImageCompareCharacterDatabaseList();
//_palette = palette; //_palette = palette;
if (_palette == null) if (_palette == null)
checkBoxCustomFourColors.Checked = true; checkBoxCustomFourColors.Checked = true;
@ -3101,5 +3147,12 @@ namespace Nikse.SubtitleEdit.Forms
subtitleListView1.Fill(_subtitle); subtitleListView1.Fill(_subtitle);
subtitleListView1.SelectIndexAndEnsureVisible(0); subtitleListView1.SelectIndexAndEnsureVisible(0);
} }
private void VobSubOcr_FormClosing(object sender, FormClosingEventArgs e)
{
if (_tesseractThread != null)
_tesseractThread.CancelAsync();
_tesseractAsyncIndex = 10000;
}
} }
} }

View File

@ -1,17 +1,17 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<root> <root>
<!-- <!--
Microsoft ResX Schema Microsoft ResX Schema
Version 2.0 Version 2.0
The primary goals of this format is to allow a simple XML format The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes various data types are done through the TypeConverter classes
associated with the data types. associated with the data types.
Example: Example:
... ado.net/XML headers & schema ... ... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader> <resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader> <resheader name="version">2.0</resheader>
@ -26,36 +26,36 @@
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment> <comment>This is a comment</comment>
</data> </data>
There are any number of "resheader" rows that contain simple There are any number of "resheader" rows that contain simple
name/value pairs. name/value pairs.
Each data row contains a name, and value. The row also contains a Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture. text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the Classes that don't support this are serialized and stored with the
mimetype set. mimetype set.
The mimetype is used for serialized objects, and tells the The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly: extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below. read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64 mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding. : and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64 mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding. : and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64 mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter : using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding. : and then encoded with base64 encoding.
--> -->