mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-22 11:12:36 +01:00
Allow char "…" in ANSI if exists in codepage - thx fr :)
This commit is contained in:
parent
94efc44978
commit
889878ddac
@ -4357,6 +4357,11 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
text = text.Replace("®", "(Registered Trademark)");
|
||||
}
|
||||
|
||||
if (encoding.GetString(encoding.GetBytes("…")) != "…")
|
||||
{
|
||||
text = text.Replace("…", "...");
|
||||
}
|
||||
|
||||
// Hyphens
|
||||
return text.Replace('\u2043', defHyphen) // ⁃ Hyphen bullet (\u2043)
|
||||
.Replace('\u2010', defHyphen) // ‐ Hyphen (\u2010)
|
||||
@ -4371,7 +4376,6 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
.Replace('\uFE13', defColon) // ︓ Presentation Form for Vertical Colon (\uFE13)
|
||||
|
||||
// Others
|
||||
.Replace("…", "...")
|
||||
.Replace("⇒", "=>")
|
||||
|
||||
// Spaces
|
||||
|
Loading…
Reference in New Issue
Block a user