mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-22 19:22:53 +01:00
Unicode/rtl testing
git-svn-id: https://subtitleedit.googlecode.com/svn/trunk@2245 99eadd0c-20b8-1223-b5c4-2a2b2df33de2
This commit is contained in:
parent
5369b87db4
commit
d6ff825113
@ -9,10 +9,10 @@
|
||||
* Added Chinese Traditional to Tesseract ocr dictionary list
|
||||
* Added Polish spelling dictionary to download list
|
||||
* "Adjust display durations" now allows down to 75% - thx Dennis
|
||||
* "Restore auto-backup" window now displays number of bytes
|
||||
* FIXED:
|
||||
* Dragging line in wave form in frames mode keeps duration - thx Adrian
|
||||
* Fixed Slovak spell check dictionary link
|
||||
* "Restore auto-backup" window now displays number of bytes
|
||||
* Status text after re-calculating display times fixed - thx Dennis
|
||||
|
||||
|
||||
|
132
src/Forms/Main.Designer.cs
generated
132
src/Forms/Main.Designer.cs
generated
@ -411,6 +411,13 @@
|
||||
this.fontNameToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.toolStripSeparator26 = new System.Windows.Forms.ToolStripSeparator();
|
||||
this.toolStripMenuItemInsertUnicodeSymbol = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.toolStripMenuItemInsertUnicodeControlCharacters = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.leftToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.righttoleftMarkToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.startOfLefttorightEmbeddingLREToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.startOfRighttoleftEmbeddingRLEToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.startOfLefttorightOverrideLROToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.startOfRighttoleftOverrideRLOToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.superscriptToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.subscriptToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.buttonAutoBreak = new System.Windows.Forms.Button();
|
||||
@ -435,13 +442,7 @@
|
||||
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.toolStripMenuItemInsertUnicodeControlCharacters = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.leftToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.righttoleftMarkToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.startOfLefttorightEmbeddingLREToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.startOfRighttoleftEmbeddingRLEToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.startOfLefttorightOverrideLROToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.startOfRighttoleftOverrideRLOToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.toolStripMenuItemRtlUnicodeControlChars = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.statusStrip1.SuspendLayout();
|
||||
this.toolStrip1.SuspendLayout();
|
||||
this.menuStrip1.SuspendLayout();
|
||||
@ -1303,6 +1304,7 @@
|
||||
this.toolStripMenuItemShowOriginalInPreview,
|
||||
this.toolStripSeparator25,
|
||||
this.toolStripMenuItemRightToLeftMode,
|
||||
this.toolStripMenuItemRtlUnicodeControlChars,
|
||||
this.toolStripMenuItemReverseRightToLeftStartEnd,
|
||||
this.toolStripSeparator21,
|
||||
this.toolStripMenuItemModifySelection,
|
||||
@ -3890,7 +3892,7 @@
|
||||
this.superscriptToolStripMenuItem,
|
||||
this.subscriptToolStripMenuItem});
|
||||
this.contextMenuStripTextBoxListView.Name = "contextMenuStripTextBoxListView";
|
||||
this.contextMenuStripTextBoxListView.Size = new System.Drawing.Size(243, 424);
|
||||
this.contextMenuStripTextBoxListView.Size = new System.Drawing.Size(243, 402);
|
||||
this.contextMenuStripTextBoxListView.Opening += new System.ComponentModel.CancelEventHandler(this.ContextMenuStripTextBoxListViewOpening);
|
||||
//
|
||||
// toolStripMenuItemWebVttVoice
|
||||
@ -4014,6 +4016,61 @@
|
||||
this.toolStripMenuItemInsertUnicodeSymbol.Size = new System.Drawing.Size(242, 22);
|
||||
this.toolStripMenuItemInsertUnicodeSymbol.Text = "Insert unicode character";
|
||||
//
|
||||
// toolStripMenuItemInsertUnicodeControlCharacters
|
||||
//
|
||||
this.toolStripMenuItemInsertUnicodeControlCharacters.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.leftToolStripMenuItem,
|
||||
this.righttoleftMarkToolStripMenuItem,
|
||||
this.startOfLefttorightEmbeddingLREToolStripMenuItem,
|
||||
this.startOfRighttoleftEmbeddingRLEToolStripMenuItem,
|
||||
this.startOfLefttorightOverrideLROToolStripMenuItem,
|
||||
this.startOfRighttoleftOverrideRLOToolStripMenuItem});
|
||||
this.toolStripMenuItemInsertUnicodeControlCharacters.Name = "toolStripMenuItemInsertUnicodeControlCharacters";
|
||||
this.toolStripMenuItemInsertUnicodeControlCharacters.Size = new System.Drawing.Size(242, 22);
|
||||
this.toolStripMenuItemInsertUnicodeControlCharacters.Text = "Insert unicode control character";
|
||||
//
|
||||
// leftToolStripMenuItem
|
||||
//
|
||||
this.leftToolStripMenuItem.Name = "leftToolStripMenuItem";
|
||||
this.leftToolStripMenuItem.Size = new System.Drawing.Size(272, 22);
|
||||
this.leftToolStripMenuItem.Text = "Left-to-right mark (LRM)";
|
||||
this.leftToolStripMenuItem.Click += new System.EventHandler(this.leftToolStripMenuItem_Click);
|
||||
//
|
||||
// righttoleftMarkToolStripMenuItem
|
||||
//
|
||||
this.righttoleftMarkToolStripMenuItem.Name = "righttoleftMarkToolStripMenuItem";
|
||||
this.righttoleftMarkToolStripMenuItem.Size = new System.Drawing.Size(272, 22);
|
||||
this.righttoleftMarkToolStripMenuItem.Text = "Right-to-left mark (RLM)";
|
||||
this.righttoleftMarkToolStripMenuItem.Click += new System.EventHandler(this.righttoleftMarkToolStripMenuItem_Click);
|
||||
//
|
||||
// startOfLefttorightEmbeddingLREToolStripMenuItem
|
||||
//
|
||||
this.startOfLefttorightEmbeddingLREToolStripMenuItem.Name = "startOfLefttorightEmbeddingLREToolStripMenuItem";
|
||||
this.startOfLefttorightEmbeddingLREToolStripMenuItem.Size = new System.Drawing.Size(272, 22);
|
||||
this.startOfLefttorightEmbeddingLREToolStripMenuItem.Text = "Start of left-to-right embedding (LRE)";
|
||||
this.startOfLefttorightEmbeddingLREToolStripMenuItem.Click += new System.EventHandler(this.startOfLefttorightEmbeddingLREToolStripMenuItem_Click);
|
||||
//
|
||||
// startOfRighttoleftEmbeddingRLEToolStripMenuItem
|
||||
//
|
||||
this.startOfRighttoleftEmbeddingRLEToolStripMenuItem.Name = "startOfRighttoleftEmbeddingRLEToolStripMenuItem";
|
||||
this.startOfRighttoleftEmbeddingRLEToolStripMenuItem.Size = new System.Drawing.Size(272, 22);
|
||||
this.startOfRighttoleftEmbeddingRLEToolStripMenuItem.Text = "Start of right-to-left embedding (RLE)";
|
||||
this.startOfRighttoleftEmbeddingRLEToolStripMenuItem.Click += new System.EventHandler(this.startOfRighttoleftEmbeddingRLEToolStripMenuItem_Click);
|
||||
//
|
||||
// startOfLefttorightOverrideLROToolStripMenuItem
|
||||
//
|
||||
this.startOfLefttorightOverrideLROToolStripMenuItem.Name = "startOfLefttorightOverrideLROToolStripMenuItem";
|
||||
this.startOfLefttorightOverrideLROToolStripMenuItem.Size = new System.Drawing.Size(272, 22);
|
||||
this.startOfLefttorightOverrideLROToolStripMenuItem.Text = "Start of left-to-right override (LRO)";
|
||||
this.startOfLefttorightOverrideLROToolStripMenuItem.Click += new System.EventHandler(this.startOfLefttorightOverrideLROToolStripMenuItem_Click);
|
||||
//
|
||||
// startOfRighttoleftOverrideRLOToolStripMenuItem
|
||||
//
|
||||
this.startOfRighttoleftOverrideRLOToolStripMenuItem.Name = "startOfRighttoleftOverrideRLOToolStripMenuItem";
|
||||
this.startOfRighttoleftOverrideRLOToolStripMenuItem.Size = new System.Drawing.Size(272, 22);
|
||||
this.startOfRighttoleftOverrideRLOToolStripMenuItem.Text = "Start of right-to-left override (RLO)";
|
||||
this.startOfRighttoleftOverrideRLOToolStripMenuItem.Click += new System.EventHandler(this.startOfRighttoleftOverrideRLOToolStripMenuItem_Click);
|
||||
//
|
||||
// superscriptToolStripMenuItem
|
||||
//
|
||||
this.superscriptToolStripMenuItem.Name = "superscriptToolStripMenuItem";
|
||||
@ -4282,60 +4339,12 @@
|
||||
this.timerAlternateTextUndo.Interval = 700;
|
||||
this.timerAlternateTextUndo.Tick += new System.EventHandler(this.TimerAlternateTextUndoTick);
|
||||
//
|
||||
// toolStripMenuItemInsertUnicodeControlCharacters
|
||||
// toolStripMenuItemRtlUnicodeControlChars
|
||||
//
|
||||
this.toolStripMenuItemInsertUnicodeControlCharacters.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.leftToolStripMenuItem,
|
||||
this.righttoleftMarkToolStripMenuItem,
|
||||
this.startOfLefttorightEmbeddingLREToolStripMenuItem,
|
||||
this.startOfRighttoleftEmbeddingRLEToolStripMenuItem,
|
||||
this.startOfLefttorightOverrideLROToolStripMenuItem,
|
||||
this.startOfRighttoleftOverrideRLOToolStripMenuItem});
|
||||
this.toolStripMenuItemInsertUnicodeControlCharacters.Name = "toolStripMenuItemInsertUnicodeControlCharacters";
|
||||
this.toolStripMenuItemInsertUnicodeControlCharacters.Size = new System.Drawing.Size(242, 22);
|
||||
this.toolStripMenuItemInsertUnicodeControlCharacters.Text = "Insert unicode control character";
|
||||
//
|
||||
// leftToolStripMenuItem
|
||||
//
|
||||
this.leftToolStripMenuItem.Name = "leftToolStripMenuItem";
|
||||
this.leftToolStripMenuItem.Size = new System.Drawing.Size(272, 22);
|
||||
this.leftToolStripMenuItem.Text = "Left-to-right mark (LRM)";
|
||||
this.leftToolStripMenuItem.Click += new System.EventHandler(this.leftToolStripMenuItem_Click);
|
||||
//
|
||||
// righttoleftMarkToolStripMenuItem
|
||||
//
|
||||
this.righttoleftMarkToolStripMenuItem.Name = "righttoleftMarkToolStripMenuItem";
|
||||
this.righttoleftMarkToolStripMenuItem.Size = new System.Drawing.Size(272, 22);
|
||||
this.righttoleftMarkToolStripMenuItem.Text = "Right-to-left mark (RLM)";
|
||||
this.righttoleftMarkToolStripMenuItem.Click += new System.EventHandler(this.righttoleftMarkToolStripMenuItem_Click);
|
||||
//
|
||||
// startOfLefttorightEmbeddingLREToolStripMenuItem
|
||||
//
|
||||
this.startOfLefttorightEmbeddingLREToolStripMenuItem.Name = "startOfLefttorightEmbeddingLREToolStripMenuItem";
|
||||
this.startOfLefttorightEmbeddingLREToolStripMenuItem.Size = new System.Drawing.Size(272, 22);
|
||||
this.startOfLefttorightEmbeddingLREToolStripMenuItem.Text = "Start of left-to-right embedding (LRE)";
|
||||
this.startOfLefttorightEmbeddingLREToolStripMenuItem.Click += new System.EventHandler(this.startOfLefttorightEmbeddingLREToolStripMenuItem_Click);
|
||||
//
|
||||
// startOfRighttoleftEmbeddingRLEToolStripMenuItem
|
||||
//
|
||||
this.startOfRighttoleftEmbeddingRLEToolStripMenuItem.Name = "startOfRighttoleftEmbeddingRLEToolStripMenuItem";
|
||||
this.startOfRighttoleftEmbeddingRLEToolStripMenuItem.Size = new System.Drawing.Size(272, 22);
|
||||
this.startOfRighttoleftEmbeddingRLEToolStripMenuItem.Text = "Start of right-to-left embedding (RLE)";
|
||||
this.startOfRighttoleftEmbeddingRLEToolStripMenuItem.Click += new System.EventHandler(this.startOfRighttoleftEmbeddingRLEToolStripMenuItem_Click);
|
||||
//
|
||||
// startOfLefttorightOverrideLROToolStripMenuItem
|
||||
//
|
||||
this.startOfLefttorightOverrideLROToolStripMenuItem.Name = "startOfLefttorightOverrideLROToolStripMenuItem";
|
||||
this.startOfLefttorightOverrideLROToolStripMenuItem.Size = new System.Drawing.Size(272, 22);
|
||||
this.startOfLefttorightOverrideLROToolStripMenuItem.Text = "Start of left-to-right override (LRO)";
|
||||
this.startOfLefttorightOverrideLROToolStripMenuItem.Click += new System.EventHandler(this.startOfLefttorightOverrideLROToolStripMenuItem_Click);
|
||||
//
|
||||
// startOfRighttoleftOverrideRLOToolStripMenuItem
|
||||
//
|
||||
this.startOfRighttoleftOverrideRLOToolStripMenuItem.Name = "startOfRighttoleftOverrideRLOToolStripMenuItem";
|
||||
this.startOfRighttoleftOverrideRLOToolStripMenuItem.Size = new System.Drawing.Size(272, 22);
|
||||
this.startOfRighttoleftOverrideRLOToolStripMenuItem.Text = "Start of right-to-left override (RLO)";
|
||||
this.startOfRighttoleftOverrideRLOToolStripMenuItem.Click += new System.EventHandler(this.startOfRighttoleftOverrideRLOToolStripMenuItem_Click);
|
||||
this.toolStripMenuItemRtlUnicodeControlChars.Name = "toolStripMenuItemRtlUnicodeControlChars";
|
||||
this.toolStripMenuItemRtlUnicodeControlChars.Size = new System.Drawing.Size(305, 22);
|
||||
this.toolStripMenuItemRtlUnicodeControlChars.Text = "Fix RTL via Unicode tags";
|
||||
this.toolStripMenuItemRtlUnicodeControlChars.Click += new System.EventHandler(this.toolStripMenuItemRtlUnicodeControlChar_Click);
|
||||
//
|
||||
// Main
|
||||
//
|
||||
@ -4829,6 +4838,7 @@
|
||||
private System.Windows.Forms.ToolStripMenuItem startOfRighttoleftEmbeddingRLEToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem startOfLefttorightOverrideLROToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem startOfRighttoleftOverrideRLOToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem toolStripMenuItemRtlUnicodeControlChars;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -18481,5 +18481,21 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
PasteIntoActiveTextBox(Convert.ToChar(0x202E).ToString());
|
||||
}
|
||||
|
||||
private void toolStripMenuItemRtlUnicodeControlChar_Click(object sender, EventArgs e)
|
||||
{
|
||||
string rtl = Convert.ToChar(0x202B).ToString();
|
||||
int selectedIndex = FirstSelectedIndex;
|
||||
foreach (int index in SubtitleListview1.SelectedIndices)
|
||||
{
|
||||
Paragraph p = _subtitle.Paragraphs[index];
|
||||
string text = p.Text.Replace(rtl, string.Empty);
|
||||
p.Text = rtl + text.Replace(Environment.NewLine, Environment.NewLine + rtl);
|
||||
SubtitleListview1.SetText(index, p.Text);
|
||||
if (index == selectedIndex)
|
||||
textBoxListViewText.Text = p.Text;
|
||||
}
|
||||
RefreshSelectedParagraph();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
@ -575,9 +575,6 @@
|
||||
<metadata name="toolStripWaveControls.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>208, 56</value>
|
||||
</metadata>
|
||||
<metadata name="toolStripWaveControls.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>208, 56</value>
|
||||
</metadata>
|
||||
<data name="toolStripButtonWaveFormZoomOut.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
|
||||
@ -693,7 +690,7 @@
|
||||
AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj0yLjAuMC4w
|
||||
LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0
|
||||
ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAAD2
|
||||
CAAAAk1TRnQBSQFMAgEBAgEAAZABIAGQASABEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo
|
||||
CAAAAk1TRnQBSQFMAgEBAgEAAZgBIAGYASABEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo
|
||||
AwABQAMAARADAAEBAQABCAYAAQQYAAGAAgABgAMAAoABAAGAAwABgAEAAYABAAKAAgADwAEAAcAB3AHA
|
||||
AQAB8AHKAaYBAAEzBQABMwEAATMBAAEzAQACMwIAAxYBAAMcAQADIgEAAykBAANVAQADTQEAA0IBAAM5
|
||||
AQABgAF8Af8BAAJQAf8BAAGTAQAB1gEAAf8B7AHMAQABxgHWAe8BAAHWAucBAAGQAakBrQIAAf8BMwMA
|
||||
|
Loading…
Reference in New Issue
Block a user