mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-10-28 15:02:35 +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)
|
public string NormalizeUnicode(string text)
|
||||||
{
|
{
|
||||||
const char defHyphen = '-'; // - Hyphen-minus (\u002D) (Basic Latin)
|
const char defHyphen = '-'; // - Hyphen-minus (\u002D) (Basic Latin)
|
||||||
const char defColon = ':'; // : Colon (\u003A) (Basic Latin)
|
const char defColon = ':'; // : Colon (\u003A) (Basic Latin)
|
||||||
|
|
||||||
// Hyphens
|
// Hyphens
|
||||||
text = text.Replace('\u2043', defHyphen); // ⁃ Hyphen bullet (\u2043)
|
text = text.Replace('\u2043', defHyphen); // ⁃ Hyphen bullet (\u2043)
|
||||||
@ -3220,7 +3220,7 @@ namespace Nikse.SubtitleEdit.Forms
|
|||||||
// Colons:
|
// Colons:
|
||||||
text = text.Replace('\u02F8', defColon); // ˸ Modifier Letter Raised Colon (\u02F8)
|
text = text.Replace('\u02F8', defColon); // ˸ Modifier Letter Raised Colon (\u02F8)
|
||||||
text = text.Replace('\uFF1A', defColon); // : Fullwidth Colon (\uFF1A)
|
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
|
// Others
|
||||||
text = text.Replace("…", "...");
|
text = text.Replace("…", "...");
|
||||||
@ -3233,11 +3233,11 @@ namespace Nikse.SubtitleEdit.Forms
|
|||||||
text = text.Replace("\uFEFF", string.Empty); // Zero Width No-Break Space
|
text = text.Replace("\uFEFF", string.Empty); // Zero Width No-Break Space
|
||||||
|
|
||||||
// Intellectual property
|
// Intellectual property
|
||||||
text = text.Replace("\u00A9", "(Copyright)"); // copyright ©
|
text = text.Replace("\u00A9", "(Copyright)"); // © copyright
|
||||||
text = text.Replace("\u2117", "(Sound-recording Copyright)"); // sound-recording copyright ℗
|
text = text.Replace("\u2117", "(Sound-recording Copyright)"); // ℗ sound-recording copyright
|
||||||
text = text.Replace("\u00AE", "(Registered Trademark)"); // registered trademark ®
|
text = text.Replace("\u00AE", "(Registered Trademark)"); // ® registered trademark
|
||||||
text = text.Replace("\u2120", "(Service Mark)"); // service mark ℠
|
text = text.Replace("\u2120", "(Service Mark)"); // ℠ service mark
|
||||||
text = text.Replace("\u2122", "(Trademark)"); // trademark ™
|
text = text.Replace("\u2122", "(Trademark)"); // ™ trademark
|
||||||
|
|
||||||
return text;
|
return text;
|
||||||
}
|
}
|
||||||
|
@ -30,7 +30,7 @@ namespace Nikse.SubtitleEdit.Logic.Forms
|
|||||||
ColonSeparateLine = Configuration.Settings.RemoveTextForHearingImpaired.RemoveTextBeforeColonOnlyOnSeparateLine;
|
ColonSeparateLine = Configuration.Settings.RemoveTextForHearingImpaired.RemoveTextBeforeColonOnlyOnSeparateLine;
|
||||||
RemoveWhereContains = Configuration.Settings.RemoveTextForHearingImpaired.RemoveIfContains;
|
RemoveWhereContains = Configuration.Settings.RemoveTextForHearingImpaired.RemoveIfContains;
|
||||||
RemoveIfTextContains = new List<string>();
|
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());
|
RemoveIfTextContains.Add(item.Trim());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user