mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-22 11:12:36 +01:00
Formatting (whitespace only)
This commit is contained in:
parent
f070d913b7
commit
d8e7124122
@ -3207,7 +3207,7 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
public string NormalizeUnicode(string text)
|
||||
{
|
||||
const char defHyphen = '-'; // - Hyphen-minus (\u002D) (Basic Latin)
|
||||
const char defColon = ':'; // : Colon (\u003A) (Basic Latin)
|
||||
const char defColon = ':'; // : Colon (\u003A) (Basic Latin)
|
||||
|
||||
// Hyphens
|
||||
text = text.Replace('\u2043', defHyphen); // ⁃ Hyphen bullet (\u2043)
|
||||
@ -3220,7 +3220,7 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
// Colons:
|
||||
text = text.Replace('\u02F8', defColon); // ˸ Modifier Letter Raised Colon (\u02F8)
|
||||
text = text.Replace('\uFF1A', defColon); // : Fullwidth Colon (\uFF1A)
|
||||
text = text.Replace('\uF313', defColon); // ︓ Presentation Form for Vertical Colon (\uF313)
|
||||
text = text.Replace('\uFE13', defColon); // ︓ Presentation Form for Vertical Colon (\uFE13)
|
||||
|
||||
// Others
|
||||
text = text.Replace("…", "...");
|
||||
@ -3233,11 +3233,11 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
text = text.Replace("\uFEFF", string.Empty); // Zero Width No-Break Space
|
||||
|
||||
// Intellectual property
|
||||
text = text.Replace("\u00A9", "(Copyright)"); // copyright ©
|
||||
text = text.Replace("\u2117", "(Sound-recording Copyright)"); // sound-recording copyright ℗
|
||||
text = text.Replace("\u00AE", "(Registered Trademark)"); // registered trademark ®
|
||||
text = text.Replace("\u2120", "(Service Mark)"); // service mark ℠
|
||||
text = text.Replace("\u2122", "(Trademark)"); // trademark ™
|
||||
text = text.Replace("\u00A9", "(Copyright)"); // © copyright
|
||||
text = text.Replace("\u2117", "(Sound-recording Copyright)"); // ℗ sound-recording copyright
|
||||
text = text.Replace("\u00AE", "(Registered Trademark)"); // ® registered trademark
|
||||
text = text.Replace("\u2120", "(Service Mark)"); // ℠ service mark
|
||||
text = text.Replace("\u2122", "(Trademark)"); // ™ trademark
|
||||
|
||||
return text;
|
||||
}
|
||||
|
@ -272,7 +272,7 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
// only works when used from "Form Load"
|
||||
comboBoxCustomStart.Text = Configuration.Settings.RemoveTextForHearingImpaired.RemoveTextBetweenCustomBefore;
|
||||
comboBoxCustomEnd.Text = Configuration.Settings.RemoveTextForHearingImpaired.RemoveTextBetweenCustomAfter;
|
||||
comboBoxRemoveIfTextContains.Text = Configuration.Settings.RemoveTextForHearingImpaired.RemoveIfContainsText;
|
||||
comboBoxRemoveIfTextContains.Text = Configuration.Settings.RemoveTextForHearingImpaired.RemoveIfContainsText;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -30,7 +30,7 @@ namespace Nikse.SubtitleEdit.Logic.Forms
|
||||
ColonSeparateLine = Configuration.Settings.RemoveTextForHearingImpaired.RemoveTextBeforeColonOnlyOnSeparateLine;
|
||||
RemoveWhereContains = Configuration.Settings.RemoveTextForHearingImpaired.RemoveIfContains;
|
||||
RemoveIfTextContains = new List<string>();
|
||||
foreach (string item in Configuration.Settings.RemoveTextForHearingImpaired.RemoveIfContainsText.Split(new char[] { ','},StringSplitOptions.RemoveEmptyEntries))
|
||||
foreach (string item in Configuration.Settings.RemoveTextForHearingImpaired.RemoveIfContainsText.Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries))
|
||||
{
|
||||
RemoveIfTextContains.Add(item.Trim());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user