From 433102f424c6a9d6d6a5fd771b0244c836bb48fa Mon Sep 17 00:00:00 2001 From: dakkar Date: Fri, 10 Feb 2023 12:45:24 +0000 Subject: update most links https, re-point some dead ones --- src/SW/fancy-qr-codes/document.en.rest.txt | 10 +++++----- src/SW/fancy-qr-codes/document.it.rest.txt | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) (limited to 'src/SW/fancy-qr-codes') diff --git a/src/SW/fancy-qr-codes/document.en.rest.txt b/src/SW/fancy-qr-codes/document.en.rest.txt index 152b8a2..7164f13 100644 --- a/src/SW/fancy-qr-codes/document.en.rest.txt +++ b/src/SW/fancy-qr-codes/document.en.rest.txt @@ -34,9 +34,9 @@ That code is full of magic numbers, and the multiple nested loops don't really help legibility much. What's going on in there? To understand where those numbers came from, I studied `a QR code -tutorial `_. The most useful +tutorial `_. The most useful page for our purposes is `the one that explains "function patterns" -`_. +`_. Everything in that function assumes a 3-pixel QR module, so: @@ -86,7 +86,7 @@ So, another way to get the same result would be: Of course, it's not trivial to know whether a module is part of the data or of a function pattern, but we're in luck: the |libqrencode|_ C library `provides us with that information -`_! +`_! It generates the QR code as a matrix of bytes, and each byte is a bitfield:: @@ -135,7 +135,7 @@ Once we've installed |alien-qrencode|_, |data-qrcode|_, and .. parsed_literal:: - perl `overlay-qr.pl`_ 'http://pokketmowse.deviantart.com/art/In-the-Kawaii-of-the-Beholder-177076230' `kawaii-beholder.png`_ `kawaii-beholder-qr.png`_ + perl `overlay-qr.pl`_ 'https://pokketmowse.deviantart.com/art/In-the-Kawaii-of-the-Beholder-177076230' `kawaii-beholder.png`_ `kawaii-beholder-qr.png`_ and get this: @@ -161,7 +161,7 @@ maintained. .. _myqrpy: https://github.com/sylnsfar/qrcode/blob/master/MyQR/myqr.py#L51 .. |myqrpy| replace:: ``myqr.py`` -.. _libqrencode: http://fukuchi.org/works/qrencode/index.html.en +.. _libqrencode: https://fukuchi.org/works/qrencode/index.html.en .. |libqrencode| replace:: ``libqrencode`` .. _`text-qrcode`: https://metacpan.org/pod/Text::QRCode diff --git a/src/SW/fancy-qr-codes/document.it.rest.txt b/src/SW/fancy-qr-codes/document.it.rest.txt index ab8b6e7..43539b9 100644 --- a/src/SW/fancy-qr-codes/document.it.rest.txt +++ b/src/SW/fancy-qr-codes/document.it.rest.txt @@ -35,9 +35,9 @@ aiutano la leggibilità. Cosa fa tutta quella roba? Per capire da dove venissero quei numeri, mi sono studiato `un tutorial sui codici QR -`_. Per i nostri scopi, la +`_. Per i nostri scopi, la pagina più utile è `quella che spiega i "function patterns" -`_. +`_. In quella funzione, tutto suppone che i moduli siano 3×3 pixel, per cui: @@ -89,7 +89,7 @@ In altre parole, per ottenere lo stesso risultato potremmo: Ovviamente, non è proprio banale sapere se un modulo è parte dei dati o di un pattern, ma siamo fortunati: la libreria C |libqrencode|_ `ci fornisce proprio questa informazione -`_! +`_! Genera il codice QR come matrice di byte, e ogni byte è in bit-field:: MSB 76543210 LSB @@ -136,7 +136,7 @@ Una volta installati |alien-qrencode|_, |data-qrcode|_, e .. parsed_literal:: - perl `overlay-qr.pl`_ 'http://pokketmowse.deviantart.com/art/In-the-Kawaii-of-the-Beholder-177076230' `kawaii-beholder.png`_ `kawaii-beholder-qr.png`_ + perl `overlay-qr.pl`_ 'https://pokketmowse.deviantart.com/art/In-the-Kawaii-of-the-Beholder-177076230' `kawaii-beholder.png`_ `kawaii-beholder-qr.png`_ e ottenere questo: @@ -162,7 +162,7 @@ trasparenza è rispettata. .. _myqrpy: https://github.com/sylnsfar/qrcode/blob/master/MyQR/myqr.py#L51 .. |myqrpy| replace:: ``myqr.py`` -.. _libqrencode: http://fukuchi.org/works/qrencode/index.html.en +.. _libqrencode: https://fukuchi.org/works/qrencode/index.html.en .. |libqrencode| replace:: ``libqrencode`` .. _`text-qrcode`: https://metacpan.org/pod/Text::QRCode -- cgit v1.2.3