mirror of
https://github.com/claunia/Claunia.Encoding.git
synced 2025-12-16 19:24:43 +00:00
Name normalization.
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user