From c0b684bc18d073f50918e4a3078e341686134fb0 Mon Sep 17 00:00:00 2001 From: Project Nayuki Date: Sun, 24 Jun 2018 03:33:22 +0000 Subject: [PATCH] Tweaked comment for kanji demo in multiple languages, so that it corresponds to the order in the sample text string. --- c/qrcodegen-demo.c | 2 +- cpp/QrCodeGeneratorDemo.cpp | 2 +- java/io/nayuki/qrcodegen/QrCodeGeneratorDemo.java | 2 +- python/qrcodegen-demo.py | 2 +- rust/examples/qrcodegen-demo.rs | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/c/qrcodegen-demo.c b/c/qrcodegen-demo.c index c06e2f7..b859d4b 100644 --- a/c/qrcodegen-demo.c +++ b/c/qrcodegen-demo.c @@ -190,7 +190,7 @@ static void doSegmentDemo(void) { } } - { // Illustration "Madoka": kanji, kana, Greek, Cyrillic, full-width Latin characters + { // Illustration "Madoka": kanji, kana, Cyrillic, full-width Latin, Greek characters uint8_t qrcode[qrcodegen_BUFFER_LEN_MAX]; uint8_t tempBuffer[qrcodegen_BUFFER_LEN_MAX]; bool ok; diff --git a/cpp/QrCodeGeneratorDemo.cpp b/cpp/QrCodeGeneratorDemo.cpp index 5c78b51..f241e1c 100644 --- a/cpp/QrCodeGeneratorDemo.cpp +++ b/cpp/QrCodeGeneratorDemo.cpp @@ -128,7 +128,7 @@ static void doSegmentDemo() { QrCode::Ecc::LOW); printQr(qr3); - // Illustration "Madoka": kanji, kana, Greek, Cyrillic, full-width Latin characters + // Illustration "Madoka": kanji, kana, Cyrillic, full-width Latin, Greek characters const char *madoka = // Encoded in UTF-8 "\xE3\x80\x8C\xE9\xAD\x94\xE6\xB3\x95\xE5" "\xB0\x91\xE5\xA5\xB3\xE3\x81\xBE\xE3\x81" diff --git a/java/io/nayuki/qrcodegen/QrCodeGeneratorDemo.java b/java/io/nayuki/qrcodegen/QrCodeGeneratorDemo.java index b05c2b2..0b98db3 100644 --- a/java/io/nayuki/qrcodegen/QrCodeGeneratorDemo.java +++ b/java/io/nayuki/qrcodegen/QrCodeGeneratorDemo.java @@ -132,7 +132,7 @@ public final class QrCodeGeneratorDemo { qr = QrCode.encodeSegments(segs, QrCode.Ecc.LOW); writePng(qr.toImage(8, 5), "phi-segmented-QR.png"); - // Illustration "Madoka": kanji, kana, Greek, Cyrillic, full-width Latin characters + // Illustration "Madoka": kanji, kana, Cyrillic, full-width Latin, Greek characters String madoka = "「魔法少女まどか☆マギカ」って、 ИАИ desu κα?"; qr = QrCode.encodeText(madoka, QrCode.Ecc.LOW); writePng(qr.toImage(9, 4), "madoka-utf8-QR.png"); diff --git a/python/qrcodegen-demo.py b/python/qrcodegen-demo.py index 50e975e..7a1bfaa 100644 --- a/python/qrcodegen-demo.py +++ b/python/qrcodegen-demo.py @@ -106,7 +106,7 @@ def do_segment_demo(): qr = QrCode.encode_segments(segs, QrCode.Ecc.LOW) print_qr(qr) - # Illustration "Madoka": kanji, kana, Greek, Cyrillic, full-width Latin characters + # Illustration "Madoka": kanji, kana, Cyrillic, full-width Latin, Greek characters madoka = u"\u300C\u9B54\u6CD5\u5C11\u5973\u307E\u3069\u304B\u2606\u30DE\u30AE\u30AB\u300D\u3063\u3066\u3001\u3000\u0418\u0410\u0418\u3000\uFF44\uFF45\uFF53\uFF55\u3000\u03BA\u03B1\uFF1F" qr = QrCode.encode_text(madoka, QrCode.Ecc.LOW) print_qr(qr) diff --git a/rust/examples/qrcodegen-demo.rs b/rust/examples/qrcodegen-demo.rs index 1fa2d3f..c28ad72 100644 --- a/rust/examples/qrcodegen-demo.rs +++ b/rust/examples/qrcodegen-demo.rs @@ -114,7 +114,7 @@ fn do_segment_demo() { let qr = QrCode::encode_segments(&segs, QrCodeEcc::Low).unwrap(); print_qr(&qr); - // Illustration "Madoka": kanji, kana, Greek, Cyrillic, full-width Latin characters + // Illustration "Madoka": kanji, kana, Cyrillic, full-width Latin, Greek characters let madoka = "「魔法少女まどか☆マギカ」って、 ИАИ desu κα?"; let qr = QrCode::encode_text(madoka, QrCodeEcc::Low).unwrap(); print_qr(&qr);