Tweaked comment for kanji demo in multiple languages, so that it corresponds to the order in the sample text string.
This commit is contained in:
parent
f2189395d0
commit
c0b684bc18
|
@ -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 qrcode[qrcodegen_BUFFER_LEN_MAX];
|
||||||
uint8_t tempBuffer[qrcodegen_BUFFER_LEN_MAX];
|
uint8_t tempBuffer[qrcodegen_BUFFER_LEN_MAX];
|
||||||
bool ok;
|
bool ok;
|
||||||
|
|
|
@ -128,7 +128,7 @@ static void doSegmentDemo() {
|
||||||
QrCode::Ecc::LOW);
|
QrCode::Ecc::LOW);
|
||||||
printQr(qr3);
|
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
|
const char *madoka = // Encoded in UTF-8
|
||||||
"\xE3\x80\x8C\xE9\xAD\x94\xE6\xB3\x95\xE5"
|
"\xE3\x80\x8C\xE9\xAD\x94\xE6\xB3\x95\xE5"
|
||||||
"\xB0\x91\xE5\xA5\xB3\xE3\x81\xBE\xE3\x81"
|
"\xB0\x91\xE5\xA5\xB3\xE3\x81\xBE\xE3\x81"
|
||||||
|
|
|
@ -132,7 +132,7 @@ public final class QrCodeGeneratorDemo {
|
||||||
qr = QrCode.encodeSegments(segs, QrCode.Ecc.LOW);
|
qr = QrCode.encodeSegments(segs, QrCode.Ecc.LOW);
|
||||||
writePng(qr.toImage(8, 5), "phi-segmented-QR.png");
|
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 κα?";
|
String madoka = "「魔法少女まどか☆マギカ」って、 ИАИ desu κα?";
|
||||||
qr = QrCode.encodeText(madoka, QrCode.Ecc.LOW);
|
qr = QrCode.encodeText(madoka, QrCode.Ecc.LOW);
|
||||||
writePng(qr.toImage(9, 4), "madoka-utf8-QR.png");
|
writePng(qr.toImage(9, 4), "madoka-utf8-QR.png");
|
||||||
|
|
|
@ -106,7 +106,7 @@ def do_segment_demo():
|
||||||
qr = QrCode.encode_segments(segs, QrCode.Ecc.LOW)
|
qr = QrCode.encode_segments(segs, QrCode.Ecc.LOW)
|
||||||
print_qr(qr)
|
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"
|
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)
|
qr = QrCode.encode_text(madoka, QrCode.Ecc.LOW)
|
||||||
print_qr(qr)
|
print_qr(qr)
|
||||||
|
|
|
@ -114,7 +114,7 @@ fn do_segment_demo() {
|
||||||
let qr = QrCode::encode_segments(&segs, QrCodeEcc::Low).unwrap();
|
let qr = QrCode::encode_segments(&segs, QrCodeEcc::Low).unwrap();
|
||||||
print_qr(&qr);
|
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 madoka = "「魔法少女まどか☆マギカ」って、 ИАИ desu κα?";
|
||||||
let qr = QrCode::encode_text(madoka, QrCodeEcc::Low).unwrap();
|
let qr = QrCode::encode_text(madoka, QrCodeEcc::Low).unwrap();
|
||||||
print_qr(&qr);
|
print_qr(&qr);
|
||||||
|
|
Loading…
Reference in New Issue