From 5832c3c48733af4a770c6ac956ae721916ffb237 Mon Sep 17 00:00:00 2001 From: Natalia Portillo Date: Thu, 12 Oct 2017 22:47:37 +0100 Subject: [PATCH] Name normalization. --- Claunia.Encoding/ATASCII.cs | 2 +- Claunia.Encoding/AtariST.cs | 2 +- Claunia.Encoding/Encoding.cs | 4 ++-- Claunia.Encoding/LisaRoman.cs | 2 +- Claunia.Encoding/PETSCII.cs | 2 +- Claunia.Encoding/ZXSpectrum.cs | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Claunia.Encoding/ATASCII.cs b/Claunia.Encoding/ATASCII.cs index 9745d84..ce73615 100644 --- a/Claunia.Encoding/ATASCII.cs +++ b/Claunia.Encoding/ATASCII.cs @@ -35,7 +35,7 @@ namespace Claunia.Encoding { const string _bodyname = "atascii"; const int _codepage = 0; - const string _encodingname = "ATARI Standard Code for Information Interchange"; + const string _encodingname = "Atari Standard Code for Information Interchange"; const string _headername = "atascii"; const string _webname = ""; const int _windowsCodepage = 0; diff --git a/Claunia.Encoding/AtariST.cs b/Claunia.Encoding/AtariST.cs index 504f33e..1ae3e84 100644 --- a/Claunia.Encoding/AtariST.cs +++ b/Claunia.Encoding/AtariST.cs @@ -36,7 +36,7 @@ namespace Claunia.Encoding { const string _bodyname = "atarist"; const int _codepage = 0; - const string _encodingname = "Atari ST"; + const string _encodingname = "Western European (Atari ST)"; const string _headername = "atarist"; const string _webname = ""; const int _windowsCodepage = 0; diff --git a/Claunia.Encoding/Encoding.cs b/Claunia.Encoding/Encoding.cs index d5a8165..4cb3a5a 100644 --- a/Claunia.Encoding/Encoding.cs +++ b/Claunia.Encoding/Encoding.cs @@ -62,8 +62,8 @@ namespace Claunia.Encoding foreach(Type type in Assembly.GetExecutingAssembly().GetTypes()) { if(type.IsSubclassOf(typeof(Encoding))) { - Encoding filter = (Encoding)type.GetConstructor(new Type[] {}).Invoke(new object[] { }); - encodings.Add(new EncodingInfo(filter.CodePage, filter.BodyName, filter.EncodingName, false, type)); + Encoding encoding = (Encoding)type.GetConstructor(new Type[] {}).Invoke(new object[] { }); + encodings.Add(new EncodingInfo(encoding.CodePage, encoding.BodyName, encoding.EncodingName, false, type)); } } diff --git a/Claunia.Encoding/LisaRoman.cs b/Claunia.Encoding/LisaRoman.cs index 295b693..da18203 100644 --- a/Claunia.Encoding/LisaRoman.cs +++ b/Claunia.Encoding/LisaRoman.cs @@ -35,7 +35,7 @@ namespace Claunia.Encoding { const string _bodyname = "lisa"; const int _codepage = 0; - const string _encodingname = "Apple Lisa"; + const string _encodingname = "Western European (Apple Lisa)"; const string _headername = "lisa"; const string _webname = ""; const int _windowsCodepage = 10000; diff --git a/Claunia.Encoding/PETSCII.cs b/Claunia.Encoding/PETSCII.cs index f3b0aa6..b1735c9 100644 --- a/Claunia.Encoding/PETSCII.cs +++ b/Claunia.Encoding/PETSCII.cs @@ -35,7 +35,7 @@ namespace Claunia.Encoding { const string _bodyname = "petscii"; const int _codepage = 0; - const string _encodingname = "PET Standard Code for Information Interchange"; + const string _encodingname = "Commodore PET Standard Code for Information Interchange"; const string _headername = "petscii"; const string _webname = ""; const int _windowsCodepage = 0; diff --git a/Claunia.Encoding/ZXSpectrum.cs b/Claunia.Encoding/ZXSpectrum.cs index dad531b..9aaddee 100644 --- a/Claunia.Encoding/ZXSpectrum.cs +++ b/Claunia.Encoding/ZXSpectrum.cs @@ -35,7 +35,7 @@ namespace Claunia.Encoding { const string _bodyname = "spectrum"; const int _codepage = 0; - const string _encodingname = "ZX Spectrum"; + const string _encodingname = "Sinclair ZX Spectrum character set"; const string _headername = "spectrum"; const string _webname = ""; const int _windowsCodepage = 0;