mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-22 11:12:36 +01:00
Regex: Two more regex added to context menu + multi-lang support
This commit is contained in:
parent
2872cfdf1d
commit
7278d104cf
@ -1421,8 +1421,10 @@ can edit in same subtitle file (collaboration)</Information>
|
||||
<NewLine>New line (\r\n)</NewLine>
|
||||
<NewLineShort>New line (\n)</NewLineShort>
|
||||
<AnyDigit>Any digit (\d)</AnyDigit>
|
||||
<NonDigit>Non digit (\D)</NonDigit>
|
||||
<AnyCharacter>Any character (.)</AnyCharacter>
|
||||
<AnyWhitespace>Any whitespace (\s)</AnyWhitespace>
|
||||
<NonSpaceCharacter>Non space character (\S)</NonSpaceCharacter>
|
||||
<ZeroOrMore>Zero or more (*)</ZeroOrMore>
|
||||
<OneOrMore>One or more (+)</OneOrMore>
|
||||
<InCharacterGroup>In character group ([test])</InCharacterGroup>
|
||||
|
@ -153,8 +153,10 @@ namespace Nikse.SubtitleEdit.Logic
|
||||
cm.MenuItems.Add(l.NonWordBoundary, delegate { textBox.SelectedText = "\\B"; });
|
||||
cm.MenuItems.Add(l.NewLine, delegate { textBox.SelectedText = "\\r\\n"; });
|
||||
cm.MenuItems.Add(l.AnyDigit, delegate { textBox.SelectedText = "\\d"; });
|
||||
cm.MenuItems.Add(l.NonDigit, delegate { textBox.SelectedText = "\\D"; });
|
||||
cm.MenuItems.Add(l.AnyCharacter, delegate { textBox.SelectedText = "."; });
|
||||
cm.MenuItems.Add(l.AnyWhitespace, delegate { textBox.SelectedText = "\\s"; });
|
||||
cm.MenuItems.Add(l.NonSpaceCharacter, delegate { textBox.SelectedText = "\\S"; });
|
||||
cm.MenuItems.Add(l.ZeroOrMore, delegate { textBox.SelectedText = "*"; });
|
||||
cm.MenuItems.Add(l.OneOrMore, delegate { textBox.SelectedText = "+"; });
|
||||
cm.MenuItems.Add(l.InCharacterGroup, delegate { textBox.SelectedText = "[test]"; });
|
||||
@ -170,8 +172,10 @@ namespace Nikse.SubtitleEdit.Logic
|
||||
cm.MenuItems.Add(l.NonWordBoundary, delegate { comboBox.SelectedText = "\\B"; });
|
||||
cm.MenuItems.Add(l.NewLine, delegate { comboBox.SelectedText = "\\r\\n"; });
|
||||
cm.MenuItems.Add(l.AnyDigit, delegate { comboBox.SelectedText = "\\d"; });
|
||||
cm.MenuItems.Add(l.NonDigit, delegate { comboBox.SelectedText = "\\D"; });
|
||||
cm.MenuItems.Add(l.AnyCharacter, delegate { comboBox.SelectedText = "."; });
|
||||
cm.MenuItems.Add(l.AnyWhitespace, delegate { comboBox.SelectedText = "\\s"; });
|
||||
cm.MenuItems.Add(l.NonSpaceCharacter, delegate { comboBox.SelectedText = "\\S"; });
|
||||
cm.MenuItems.Add(l.ZeroOrMore, delegate { comboBox.SelectedText = "*"; });
|
||||
cm.MenuItems.Add(l.OneOrMore, delegate { comboBox.SelectedText = "+"; });
|
||||
cm.MenuItems.Add(l.InCharacterGroup, delegate { comboBox.SelectedText = "[test]"; });
|
||||
|
@ -1686,7 +1686,9 @@ can edit in same subtitle file (collaboration)",
|
||||
NewLine = "New line (\\r\\n)",
|
||||
NewLineShort = "New line (\\n)",
|
||||
AnyDigit = "Any digit (\\d)",
|
||||
NonDigit = "Non digit (\\D)",
|
||||
AnyCharacter = "Any character (.)",
|
||||
NonSpaceCharacter = "Non space character (\\S)",
|
||||
AnyWhitespace = "Any whitespace (\\s)",
|
||||
ZeroOrMore = "Zero or more (*)",
|
||||
OneOrMore = "One or more (+)",
|
||||
|
@ -3771,12 +3771,18 @@ namespace Nikse.SubtitleEdit.Logic
|
||||
case "RegularExpressionContextMenu/AnyDigit":
|
||||
language.RegularExpressionContextMenu.AnyDigit = reader.Value;
|
||||
break;
|
||||
case "RegularExpressionContextMenu/NonDigit":
|
||||
language.RegularExpressionContextMenu.NonDigit = reader.Value;
|
||||
break;
|
||||
case "RegularExpressionContextMenu/AnyCharacter":
|
||||
language.RegularExpressionContextMenu.AnyCharacter = reader.Value;
|
||||
break;
|
||||
case "RegularExpressionContextMenu/AnyWhitespace":
|
||||
language.RegularExpressionContextMenu.AnyWhitespace = reader.Value;
|
||||
break;
|
||||
case "RegularExpressionContextMenu/NonSpaceCharacter":
|
||||
language.RegularExpressionContextMenu.NonSpaceCharacter = reader.Value;
|
||||
break;
|
||||
case "RegularExpressionContextMenu/ZeroOrMore":
|
||||
language.RegularExpressionContextMenu.ZeroOrMore = reader.Value;
|
||||
break;
|
||||
|
@ -191,11 +191,11 @@
|
||||
public string SetMinMsBetweenSubtitles { get; set; }
|
||||
public string PlainText { get; set; }
|
||||
public string Ocr { get; set; }
|
||||
public string Filter { get; set; }
|
||||
public string FilterSkipped { get; set; }
|
||||
public string Filter { get; set; }
|
||||
public string FilterSkipped { get; set; }
|
||||
public string FilterSrtNoUtf8BOM { get; set; }
|
||||
public string FilterMoreThanTwoLines { get; set; }
|
||||
public string FilterContains { get; set; }
|
||||
public string FilterMoreThanTwoLines { get; set; }
|
||||
public string FilterContains { get; set; }
|
||||
public string FixCommonErrorsErrorX { get; set; }
|
||||
public string MultipleReplaceErrorX { get; set; }
|
||||
public string AutoBalanceErrorX { get; set; }
|
||||
@ -1570,8 +1570,10 @@
|
||||
public string NewLine { get; set; }
|
||||
public string NewLineShort { get; set; }
|
||||
public string AnyDigit { get; set; }
|
||||
public string NonDigit { get; set; }
|
||||
public string AnyCharacter { get; set; }
|
||||
public string AnyWhitespace { get; set; }
|
||||
public string NonSpaceCharacter { get; set; }
|
||||
public string ZeroOrMore { get; set; }
|
||||
public string OneOrMore { get; set; }
|
||||
public string InCharacterGroup { get; set; }
|
||||
|
Loading…
Reference in New Issue
Block a user