diff --git a/QRCoder.Xaml/Assets/nuget-readme-xaml.md b/QRCoder.Xaml/Assets/nuget-readme-xaml.md index a31b121b..3d14ea97 100644 --- a/QRCoder.Xaml/Assets/nuget-readme-xaml.md +++ b/QRCoder.Xaml/Assets/nuget-readme-xaml.md @@ -2,20 +2,20 @@ QRCoder.Xaml is an extension that provides the `XamlQRCode`-renderer for the popular [QRCoder.NET library](https://www.nuget.org/packages/QRCoder/). It allows you to render QRCodes as `DrawingImage`-objects for usage in WPF/XAML-based projects. -For usage information see the demo code below. For more general information check the [QRCoder-wiki](https://github.com/codebude/QRCoder/wiki). +For usage information see the demo code below. For more general information check the [QRCoder-wiki](https://github.com/Shane32/QRCoder/wiki). *** ## Documentation 👉 *Your first place to go should be our wiki. Here you can find a detailed documentation of the QRCoder and its functions.* -* [**QRCode Wiki**](https://github.com/codebude/QRCoder/wiki) -* [**QRCode Wiki > XamlQRCode**](https://github.com/codebude/QRCoder/wiki/Advanced-usage---QR-Code-renderers#28-xamlqrcode-renderer-in-detail) +* [**QRCode Wiki**](https://github.com/Shane32/QRCoder/wiki) +* [**QRCode Wiki > XamlQRCode**](https://github.com/Shane32/QRCoder/wiki/Advanced-usage---QR-Code-renderers#28-xamlqrcode-renderer-in-detail) * [Creator's blog (english)](http://en.code-bude.net/2013/10/17/qrcoder-an-open-source-qr-code-generator-implementation-in-csharp/) * [Creator's blog (german)](http://code-bude.net/2013/10/17/qrcoder-eine-open-source-qr-code-implementierung-in-csharp/) ### Release Notes -The release notes for the current and all past releases can be read here: [📄 Release Notes](https://github.com/codebude/QRCoder/wiki/Release-notes) +The release notes for the current and all past releases can be read here: [📄 Release Notes](https://github.com/Shane32/QRCoder/wiki/Release-notes) ## Usage / Quick start @@ -32,15 +32,15 @@ using (XamlQRCode qrCode = new XamlQRCode(qrCodeData)) ### Optional parameters and overloads -There are a plenty of other options. So feel free to read more on that in our wiki: [Wiki: How to use QRCoder](https://github.com/codebude/QRCoder/wiki/How-to-use-QRCoder) +There are a plenty of other options. So feel free to read more on that in our wiki: [Wiki: How to use QRCoder](https://github.com/Shane32/QRCoder/wiki/How-to-use-QRCoder) ## Help & Issues -If you think you have found a bug or have new ideas or feature requests, then feel free to open a new issue: https://github.com/codebude/QRCoder/issues +If you think you have found a bug or have new ideas or feature requests, then feel free to open a new issue: https://github.com/Shane32/QRCoder/issues -In case you have a question about using the library (and couldn't find an answer in our wiki), feel free to open a new question/discussion: https://github.com/codebude/QRCoder/discussions +In case you have a question about using the library (and couldn't find an answer in our wiki), feel free to open a new question/discussion: https://github.com/Shane32/QRCoder/discussions ## Legal information and credits -QRCoder is a project by [Raffael Herrmann](https://raffaelherrmann.de) and was first released in 10/2013. It's licensed under the [MIT license](https://github.com/codebude/QRCoder/blob/master/LICENSE.txt). \ No newline at end of file +QRCoder is a project by [Raffael Herrmann](https://raffaelherrmann.de) and was first released in 10/2013. It's licensed under the [MIT license](https://github.com/Shane32/QRCoder/blob/master/LICENSE.txt). \ No newline at end of file diff --git a/QRCoder/Assets/nuget-readme.md b/QRCoder/Assets/nuget-readme.md deleted file mode 100644 index 9b7e32de..00000000 --- a/QRCoder/Assets/nuget-readme.md +++ /dev/null @@ -1,44 +0,0 @@ -## About - -QRCoder is a simple library, written in C#.NET, which enables you to create QR codes. It hasn't any dependencies to external libraries(\*), is available as package on NuGet and supports .NET Framework, .NET Core, .NET Standard and .NET. A full list of supported target frameworks can be [found here](https://www.nuget.org/packages/QRCoder/#supportedframeworks-body-tab). - -*** - -## Documentation - -👉 *Your first place to go should be our wiki. Here you can find a detailed documentation of the QRCoder and its functions.* -* [**QRCode Wiki**](https://github.com/codebude/QRCoder/wiki) -* [Creator's blog (english)](http://en.code-bude.net/2013/10/17/qrcoder-an-open-source-qr-code-generator-implementation-in-csharp/) -* [Creator's blog (german)](http://code-bude.net/2013/10/17/qrcoder-eine-open-source-qr-code-implementierung-in-csharp/) - -### Release Notes -The release notes for the current and all past releases can be read here: [📄 Release Notes](https://github.com/codebude/QRCoder/wiki/Release-notes) - -## Usage / Quick start - -You only need a couple lines of code, to generate your first QR code. - -```csharp -using (QRCodeGenerator qrGenerator = new QRCodeGenerator()) -using (QRCodeData qrCodeData = qrGenerator.CreateQrCode("The text which should be encoded.", QRCodeGenerator.ECCLevel.Q)) -using (PngByteQRCode qrCode = new PngByteQRCode(qrCodeData)) -{ - byte[] qrCodeImage = qrCode.GetGraphic(20); -} -``` - -There are a plenty of other options. So feel free to read more on that in our wiki: [Wiki: How to use QRCoder](https://github.com/codebude/QRCoder/wiki/How-to-use-QRCoder) - -## Help & Issues - -If you think you have found a bug or have new ideas or feature requests, then feel free to open a new issue: https://github.com/codebude/QRCoder/issues - -In case you have a question about using the library (and couldn't find an answer in our wiki), feel free to open a new question/discussion: https://github.com/codebude/QRCoder/discussions - - -## Legal information and credits - -QRCoder is a project by [Raffael Herrmann](https://raffaelherrmann.de) and was first released in 10/2013. It's licensed under the [MIT license](https://github.com/codebude/QRCoder/blob/master/LICENSE.txt). - -*** -(\*) *Depending on the targeted framework the .NET libraries System.Drawing.Common and System.Text.Encoding.CodePages will used as package dependencies.* \ No newline at end of file diff --git a/QRCoder/PayloadGenerator/SwissQrCode.cs b/QRCoder/PayloadGenerator/SwissQrCode.cs index 917115a0..6c1bb80e 100644 --- a/QRCoder/PayloadGenerator/SwissQrCode.cs +++ b/QRCoder/PayloadGenerator/SwissQrCode.cs @@ -398,7 +398,7 @@ public static Contact WithCombinedAddress(string name, string country, string ad private Contact(string name, string? zipCode, string? city, string country, string? streetOrAddressline1, string? houseNumberOrAddressline2, AddressType addressType) { - //Pattern extracted from https://qr-validation.iso-payments.ch as explained in https://github.com/codebude/QRCoder/issues/97 + //Pattern extracted from https://qr-validation.iso-payments.ch as explained in https://github.com/Shane32/QRCoder/issues/97 var charsetPattern = @"^([a-zA-Z0-9\.,;:'\ \+\-/\(\)?\*\[\]\{\}\\`´~ ^|]|[!""#%&<>÷=@_$£¡¢¤¥¦§¨©ª«¬®¯°±²³µ¶·¸¹º»¼½¾¿×Ø€]|[àáâäãåāăąçćĉċčďđèéêëēĕėęěĝğġģĥħìíîïĩīĭįıijķĸĺļľŀłñńņňʼnŋòóôöōŏőõŕŗřśŝşšșţťŧțùúûüũūŭůűųŵýÿŷźżžßÀÁÂÄÃÅĀĂĄÇĆĈĊČĎĐÈÉÊËĒĔĖĘĚĜĞĠĢĤĦÌÍÎÏĨĪĬĮİIJĴĵĶĹĻĽĿŁÑŃŅŇŊÒÓÔÖÕŌŎŐŔŖŘŚŜŞŠȘŢŤŦȚÙÚÛÜŨŪŬŮŰŲŴÝŶŸŹŻŽÆÐÞæðøþŒœſ])*$"; _adrType = addressType; diff --git a/QRCoder/PdfByteQRCode.cs b/QRCoder/PdfByteQRCode.cs index 1492bec5..84df07e6 100644 --- a/QRCoder/PdfByteQRCode.cs +++ b/QRCoder/PdfByteQRCode.cs @@ -7,7 +7,7 @@ using System.Linq; using static QRCoder.QRCodeGenerator; -/* This renderer is inspired by RemusVasii: https://github.com/codebude/QRCoder/issues/223 */ +/* This renderer is inspired by RemusVasii: https://github.com/Shane32/QRCoder/issues/223 */ namespace QRCoder; diff --git a/QRCoder/QRCoder.csproj b/QRCoder/QRCoder.csproj index 5a840f3a..cae73ca4 100644 --- a/QRCoder/QRCoder.csproj +++ b/QRCoder/QRCoder.csproj @@ -26,7 +26,7 @@ MIT https://github.com/Shane32/QRCoder/ nuget-icon.png - nuget-readme.md + README.md c# csharp qr qrcoder qrcode qr-generator qr-code-generator https://github.com/Shane32/QRCoder.git git @@ -35,7 +35,7 @@ - + diff --git a/QRCoderBenchmarks/BitmapByteQRCode.cs b/QRCoderBenchmarks/BitmapByteQRCode.cs index 446d8b3a..e762ed19 100644 --- a/QRCoderBenchmarks/BitmapByteQRCode.cs +++ b/QRCoderBenchmarks/BitmapByteQRCode.cs @@ -14,7 +14,7 @@ public BitmapByteQRCodeBenchmark() _samples = new Dictionary() { { "small", QRCoder.QRCodeGenerator.GenerateQrCode("ABCD", eccLvl) }, - { "medium", QRCoder.QRCodeGenerator.GenerateQrCode("https://github.com/codebude/QRCoder/blob/f89aa90081f369983a9ba114e49cc6ebf0b2a7b1/QRCoder/Framework4.0Methods/Stream4Methods.cs", eccLvl) }, + { "medium", QRCoder.QRCodeGenerator.GenerateQrCode("https://github.com/Shane32/QRCoder/blob/f89aa90081f369983a9ba114e49cc6ebf0b2a7b1/QRCoder/Framework4.0Methods/Stream4Methods.cs", eccLvl) }, { "big", QRCoder.QRCodeGenerator.GenerateQrCode( new string('a', 2600), eccLvl) } }; } diff --git a/QRCoderBenchmarks/PngByteQRCode.cs b/QRCoderBenchmarks/PngByteQRCode.cs index d97ffbd3..befc7d86 100644 --- a/QRCoderBenchmarks/PngByteQRCode.cs +++ b/QRCoderBenchmarks/PngByteQRCode.cs @@ -14,7 +14,7 @@ public PngByteQRCodeBenchmark() _samples = new Dictionary() { { "small", QRCoder.QRCodeGenerator.GenerateQrCode("ABCD", eccLvl) }, - { "medium", QRCoder.QRCodeGenerator.GenerateQrCode("https://github.com/codebude/QRCoder/blob/f89aa90081f369983a9ba114e49cc6ebf0b2a7b1/QRCoder/Framework4.0Methods/Stream4Methods.cs", eccLvl) }, + { "medium", QRCoder.QRCodeGenerator.GenerateQrCode("https://github.com/Shane32/QRCoder/blob/f89aa90081f369983a9ba114e49cc6ebf0b2a7b1/QRCoder/Framework4.0Methods/Stream4Methods.cs", eccLvl) }, { "big", QRCoder.QRCodeGenerator.GenerateQrCode( new string('a', 2600), eccLvl) } }; } diff --git a/QRCoderBenchmarks/QRCodeGenerator.cs b/QRCoderBenchmarks/QRCodeGenerator.cs index c8256adb..c98973de 100644 --- a/QRCoderBenchmarks/QRCodeGenerator.cs +++ b/QRCoderBenchmarks/QRCodeGenerator.cs @@ -16,7 +16,7 @@ public void CreateQRCode() [Benchmark] public void CreateQRCodeLong() { - var payload = new QRCoder.PayloadGenerator.Url("https://github.com/codebude/QRCoder/blob/f89aa90081f369983a9ba114e49cc6ebf0b2a7b1/QRCoder/Framework4.0Methods/Stream4Methods.cs"); + var payload = new QRCoder.PayloadGenerator.Url("https://github.com/Shane32/QRCoder/blob/f89aa90081f369983a9ba114e49cc6ebf0b2a7b1/QRCoder/Framework4.0Methods/Stream4Methods.cs"); var qrGenerator = new QRCoder.QRCodeGenerator(); _ = qrGenerator.CreateQrCode(payload, QRCoder.QRCodeGenerator.ECCLevel.H); } diff --git a/QRCoderTests/PayloadGeneratorTests/RussiaPaymentOrderTests.cs b/QRCoderTests/PayloadGeneratorTests/RussiaPaymentOrderTests.cs index 53ad4482..2533ad59 100644 --- a/QRCoderTests/PayloadGeneratorTests/RussiaPaymentOrderTests.cs +++ b/QRCoderTests/PayloadGeneratorTests/RussiaPaymentOrderTests.cs @@ -133,7 +133,7 @@ public void russiapayment_generator_should_throw_no_data_too_long_exception() var generator = new PayloadGenerator.RussiaPaymentOrder(name, account, bankName, bic, correspAcc, optionalFields); // Should throw no exception as the 300 byte limit applies only to the mandatory fields - // See https://github.com/codebude/QRCoder/issues/392 + // See https://github.com/Shane32/QRCoder/issues/392 var exception = Record.Exception(() => generator.ToString()); Assert.Null(exception); } diff --git a/QRCoderTests/PayloadGeneratorTests/SwissQrCodeTests.cs b/QRCoderTests/PayloadGeneratorTests/SwissQrCodeTests.cs index 128aac4b..dfa1c89a 100644 --- a/QRCoderTests/PayloadGeneratorTests/SwissQrCodeTests.cs +++ b/QRCoderTests/PayloadGeneratorTests/SwissQrCodeTests.cs @@ -631,7 +631,7 @@ public void swissqrcode_generator_should_validate_two_lettercodes() Assert.Null(exception); // Should work, as XK is is defined as special case (not officially ISO-3166-1,but used in the wild) - // See https://en.wikipedia.org/wiki/XK_(user_assigned_code) and https://github.com/codebude/QRCoder/issues/420 + // See https://en.wikipedia.org/wiki/XK_(user_assigned_code) and https://github.com/Shane32/QRCoder/issues/420 country = "XK"; exception = Record.Exception(() => PayloadGenerator.SwissQrCode.Contact.WithStructuredAddress(name, zip, city, country)); Assert.Null(exception); diff --git a/QRCoderTests/QRGeneratorTests.cs b/QRCoderTests/QRGeneratorTests.cs index ded8cf89..350a2d3a 100644 --- a/QRCoderTests/QRGeneratorTests.cs +++ b/QRCoderTests/QRGeneratorTests.cs @@ -479,9 +479,9 @@ public void can_encode_alphanumeric() public void can_encode_byte_long() { var gen = new QRCodeGenerator(); - var qrData = gen.CreateQrCode("https://github.com/codebude/QRCoder/blob/f89aa90081f369983a9ba114e49cc6ebf0b2a7b1/QRCoder/Framework4.0Methods/Stream4Methods.cs", ECCLevel.H); + var qrData = gen.CreateQrCode("https://github.com/Shane32/QRCoder/blob/f89aa90081f369983a9ba114e49cc6ebf0b2a7b1/QRCoder/Framework4.0Methods/Stream4Methods.cs", ECCLevel.H); var result = string.Join("", qrData.ModuleMatrix.Select(x => x.ToBitString()).ToArray()); - result.ShouldBe("000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111110111011110110000101001110011101111011110001011011111110000000010000010111110111110001010010001100010100000011000011010000010000000010111010110010100110110000100110001010110100101010111010111010000000010111010000110010111011000101111110011010101000100101010111010000000010111010011010111000011000101111100001101111110001110010111010000000010000010110101101010101100011000100100100001011101100010000010000000011111110101010101010101010101010101010101010101010101011111110000000000000000111011011010010111001000100010111011010101000000000000000000000111010111110001111111100111111110110000111011110011111001110000000011111101111010101011111100011110101010001011000111000110100000000000000101111000110111101010010011011000010000110010110101000000110000000000000001111100010111100110100010100011010111100000001000100010000000000101010011011100110011111101000111110001100011111011011011110000000010010001110011110000101111001100100011001111110010010011010100000000001010011010001011011011010111011001110110000001001100101011110000000010110000111100111100010110011101110000001101111001000010110010000000010101010100011010111011110111010010100010100000110111111011010000000000110101111110101110100001101100010101110110010111000011010000000000001011111111001010110101000111001001011011000101011111101010110000000000010000000110100110010011100110100000100110111101001011110000000000010101110011111100011001000110101101111001011000011001001001100000000000100000101111001101001100001000010110010111000001000010010100000000010000011000010110111001110111011010010101000111011110100111110000000001100000100110001100100010101111011011100010110101000010000010000000000001111101011110111110100010100101010101111000010000000011110000000011010100010000111011000110000110001011000111110011010011100100000000010010011011110011110011001101110011001110001111110000000011010000000011101000110001100001110010010001011000000010101101110010110100000000010111111101100100010001000111111100111011101000010101111101000000000011001000110101111011001011001000101101011111100001101000100000000000010001010100000111101011101111010101010000000011110011010110110000000010111000100001011000010010011000100000100110101000011000100100000000000001111101111110100000010101111111100001001001110001111111100000000010111001011011001100001101010001000100111111100101011011000000000000000000011111101001100110000110100010001111001111101100111010110000000010101101101010110010011111101010000100100010000110001011010000000000010100011111001110010000010000111111110110001110111111011111010000000000001000000111110111001100111011011010100110100111011110010000000000000110111001011011100010111100000000010010011111010100110111110000000001110000110101101001100001001000111010011100110001111001100110000000001100011100110101100100101001010001100110101000111111101111000000000011101100100001000100011101010100111110101110010101001001010100000000011111110000111010111100001011011101000110100100101000101001010000000010111101100010010110000011101011011101101101101100001011000110000000010101111001111111101011010100000001000100101001010110110101000000000000011101100001001011001110010110111100101110010100000011001100000000010001111010011100000100100110111011011010111011010111110001110000000010000001111101010111111110001110110001011111101110000100000110000000000100010110000000101000111001011000011100011001011111011111110000000010110101101100011101011100001111101011111111000110010000011000000000000111111100010001000110100000001101111110101011011110011010110000000011101000111010011011110100001010110011111101010001001000000010000000011110011110100001110111110011111101110100001001111011111101110000000000000000100110000001011111101000100101001101100110001000110100000000011111110011101111000110110011010110001110011111101111010111110000000010000010010101100101110011001000111101111010111001011000100110000000010111010100001010110001101111111101101000111010111111111101000000000010111010101001111101101011110000100011100011110011011111101010000000010111010100101010001000010100001001101000100001110100010001010000000010000010001010111111111001100110111100101011111000010110000010000000011111110001011000110010001101010000101110110000110101000011110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"); + result.ShouldBe("000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111110111011110011001011001111110100001111110001011011111110000000010000010100110100001000000101000011110000111111001011010000010000000010111010111101110010100000011111010001101111101110111010111010000000010111010011000001001010001010111110101001011000010101010111010000000010111010010010100000010111111111110111100111110111110010111010000000010000010101101111011000001111000111010110101111011100010000010000000011111110101010101010101010101010101010101010101010101011111110000000000000000111101010100111001111000101000000100010001010000000000000000000111010110101000110101000101111110110110001001111011111001110000000000010000110011101010010010100001010100101100100010010110001000000000010101111110100010001000110001000001000011010011111111001111110000000000000000010001011101010110001111111001100110111001010011100010000000000100011110110110010110101011001111001011101010111100110011110000000000010100111000110101110011010111100111011110110101000111101100000000011001111110001100000000100111110001111000001001100101000001110000000010111101011110000000010010001110111000001000111000001010100010000000001111011000010001111111101100110011111111011000110111111011010000000010101000011010011011000011101001001000110111110111000011010100000000000111011100011011110110111001101101110010000001100111101010110000000010100000111100001011000111111011011000111110110001001011110100000000001010110011101010101001111011101100111011111001010001001001010000000000000101111001011101111110110000010000001111000111000110010000000000001001111001000111100111001110011111001001100011010110000100110000000010110101011011000101000101000011110001010010101001100100010000000000000000011001000001111000110110100000110010111001111010101101010000000000001100010101111011011001101111101001001010000111001110110000000000001011011011010110100000010111100001100000101000000111011110010000000001101100000010111011001010011100100110110010100100001100100010000000011101111110001001000011001111111101110001111000011011111111110000000011101000101001110011011101011000100111100011100110011000100000000000010001010100100000010111100111010110100110100001001001010100110000000011111000100011010000010110111000111101011110100100011000100010000000011011111110011000110110000001111101100001111010010011111101110000000001010101001000011110111110101010011101100111100001011111001100000000011010111110111000010100100001101000011110001101111111111011010000000000000000100110010011101011101001101111010011011010001000010000000000010100110111001000010100011110011010000101100010111111100001110000000001110100011110001111010101000100101111011111000001011111000000000000001100111100001001010100101111100110101101000011010111010000110000000001011100001110010110101011111011100100111010101000001100000000000000011001110000011111001111001000000110100000001011111010010111010000000011100001100011100011001100100110101110111111101101001110010100000000000100110100100000110000100100110001110101001110101011010101010000000000101100010101110101110111101101111010101010101101100110010010000000000001010001100111001111111100011001100100100001011111111110010000000011110000101001111010010101001011101110010111110101010010001000000000000010010100001011100111111111111100110000100011010110110111010000000011100000111111100101001011010010101001001010101011001100000000000000011110111111100000101010110101000111110110101001100110011111010000000011001100110010000100110010100000001101101011100000011000011000000000000111110110001011010010100000010111011011001000101111011010110000000011101001111111010110001001000111111001111011001101000000000110000000011110010010100111111101010101111100010000111001110011111101010000000000000000100100001011110000101000111100001011000110011000100100000000011111110000011111010110111011010100110101110011111101010100110000000010000010011011000101110101001000110100011001111000001000110110000000010111010101001000000000101101111100111100110000110111111101000000000010111010110001111001110110110000111100111011100010011011110010000000010111010100101010100001111011100001110010100011001100000011010000000010000010000100100101000100000010001001011001111000001010000010000000011111110001100100110010101000111001011000110010111001000111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"); } [Fact] diff --git a/readme.md b/README.md similarity index 100% rename from readme.md rename to README.md