From c2765d6bb1cbbaee086fe1c68b74b251263a4f1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20Andr=C3=A9?= Date: Thu, 13 Aug 2026 18:21:22 +0200 Subject: [PATCH] docs: draw the example symbols dark on a light ground The figures were drawn in currentColor on a transparent ground so they would inherit whatever page they landed on. That inverts them wherever the page is dark: the documentation site on its dark theme, and GitHub on its dark theme, which is where these same files are read. A symbol is defined by its reflectance. A decoder finds it by that polarity, locking onto the finder patterns of a matrix code or the guard bars of a linear one. Inverted, it looks like a barcode and does not scan, so a page showing one to say "this package encodes barcodes" was showing a drawing of one. The QR figures also take the four-module quiet zone ISO/IEC 18004 requires, where they had two. The DataMatrix figures keep theirs: ISO/IEC 16022 asks for one module, which they already clear. Regenerated with tools/barcode/generate-examples.php. Verified by sampling the raster on the module grid: quiet zone clear, three finder patterns exact, timing pattern alternating. --- docs/images/codabar-guards.svg | 2 +- docs/images/codabar.svg | 2 +- docs/images/code-128-numeric.svg | 2 +- docs/images/code-128.svg | 2 +- docs/images/code-39-narrow-ratio.svg | 2 +- docs/images/code-39.svg | 2 +- docs/images/code-93-checksum-text.svg | 2 +- docs/images/code-93.svg | 2 +- docs/images/data-matrix-long.svg | 2 +- docs/images/data-matrix.svg | 2 +- docs/images/ean-13.svg | 2 +- docs/images/ean-8-no-text.svg | 2 +- docs/images/ean-8.svg | 2 +- docs/images/gs1-128-no-text.svg | 2 +- docs/images/gs1-128.svg | 2 +- docs/images/gs1-datamatrix-short.svg | 2 +- docs/images/gs1-datamatrix.svg | 2 +- docs/images/interleaved-2-of-5-narrow-ratio.svg | 2 +- docs/images/interleaved-2-of-5.svg | 2 +- docs/images/isbn-from-isbn-10.svg | 2 +- docs/images/isbn.svg | 2 +- docs/images/itf-14-no-bearer-bars.svg | 2 +- docs/images/itf-14.svg | 2 +- docs/images/qr-code-ecc-low.svg | 2 +- docs/images/qr-code.svg | 2 +- docs/images/upc-a.svg | 2 +- docs/images/upc-e-expanded.svg | 2 +- docs/images/upc-e.svg | 2 +- 28 files changed, 28 insertions(+), 28 deletions(-) diff --git a/docs/images/codabar-guards.svg b/docs/images/codabar-guards.svg index a6f4be2..5cb81a0 100644 --- a/docs/images/codabar-guards.svg +++ b/docs/images/codabar-guards.svg @@ -1 +1 @@ -C12345D \ No newline at end of file +C12345D \ No newline at end of file diff --git a/docs/images/codabar.svg b/docs/images/codabar.svg index bfc1d14..9800d3d 100644 --- a/docs/images/codabar.svg +++ b/docs/images/codabar.svg @@ -1 +1 @@ -A12345B \ No newline at end of file +A12345B \ No newline at end of file diff --git a/docs/images/code-128-numeric.svg b/docs/images/code-128-numeric.svg index 364d41e..c4cbc6e 100644 --- a/docs/images/code-128-numeric.svg +++ b/docs/images/code-128-numeric.svg @@ -1 +1 @@ -20260810123456 \ No newline at end of file +20260810123456 \ No newline at end of file diff --git a/docs/images/code-128.svg b/docs/images/code-128.svg index a1c5e2f..cccec7f 100644 --- a/docs/images/code-128.svg +++ b/docs/images/code-128.svg @@ -1 +1 @@ -ATELIER-2026 \ No newline at end of file +ATELIER-2026 \ No newline at end of file diff --git a/docs/images/code-39-narrow-ratio.svg b/docs/images/code-39-narrow-ratio.svg index 53ec862..ac65a66 100644 --- a/docs/images/code-39-narrow-ratio.svg +++ b/docs/images/code-39-narrow-ratio.svg @@ -1 +1 @@ -ATELIER-399 \ No newline at end of file +ATELIER-399 \ No newline at end of file diff --git a/docs/images/code-39.svg b/docs/images/code-39.svg index 29da676..3bccabc 100644 --- a/docs/images/code-39.svg +++ b/docs/images/code-39.svg @@ -1 +1 @@ -ATELIER-399 \ No newline at end of file +ATELIER-399 \ No newline at end of file diff --git a/docs/images/code-93-checksum-text.svg b/docs/images/code-93-checksum-text.svg index 0e51d45..6e569c4 100644 --- a/docs/images/code-93-checksum-text.svg +++ b/docs/images/code-93-checksum-text.svg @@ -1 +1 @@ -ATELIER-931% \ No newline at end of file +ATELIER-931% \ No newline at end of file diff --git a/docs/images/code-93.svg b/docs/images/code-93.svg index 7aed6fb..92616f6 100644 --- a/docs/images/code-93.svg +++ b/docs/images/code-93.svg @@ -1 +1 @@ -ATELIER-93 \ No newline at end of file +ATELIER-93 \ No newline at end of file diff --git a/docs/images/data-matrix-long.svg b/docs/images/data-matrix-long.svg index 67bf2c4..b49ab93 100644 --- a/docs/images/data-matrix-long.svg +++ b/docs/images/data-matrix-long.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/docs/images/data-matrix.svg b/docs/images/data-matrix.svg index 510441f..7d4b38b 100644 --- a/docs/images/data-matrix.svg +++ b/docs/images/data-matrix.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/docs/images/ean-13.svg b/docs/images/ean-13.svg index b50bb16..0b9afce 100644 --- a/docs/images/ean-13.svg +++ b/docs/images/ean-13.svg @@ -1 +1 @@ -5901234123457 \ No newline at end of file +5901234123457 \ No newline at end of file diff --git a/docs/images/ean-8-no-text.svg b/docs/images/ean-8-no-text.svg index 618cc44..ec16dcd 100644 --- a/docs/images/ean-8-no-text.svg +++ b/docs/images/ean-8-no-text.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/docs/images/ean-8.svg b/docs/images/ean-8.svg index fcaf714..e63cbac 100644 --- a/docs/images/ean-8.svg +++ b/docs/images/ean-8.svg @@ -1 +1 @@ -55123457 \ No newline at end of file +55123457 \ No newline at end of file diff --git a/docs/images/gs1-128-no-text.svg b/docs/images/gs1-128-no-text.svg index e0d5aec..0e78c8e 100644 --- a/docs/images/gs1-128-no-text.svg +++ b/docs/images/gs1-128-no-text.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/docs/images/gs1-128.svg b/docs/images/gs1-128.svg index 5f8fe50..87f1ced 100644 --- a/docs/images/gs1-128.svg +++ b/docs/images/gs1-128.svg @@ -1 +1 @@ -(01)09501101530003(17)260728(10)BATCH42 \ No newline at end of file +(01)09501101530003(17)260728(10)BATCH42 \ No newline at end of file diff --git a/docs/images/gs1-datamatrix-short.svg b/docs/images/gs1-datamatrix-short.svg index fc8191e..812b874 100644 --- a/docs/images/gs1-datamatrix-short.svg +++ b/docs/images/gs1-datamatrix-short.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/docs/images/gs1-datamatrix.svg b/docs/images/gs1-datamatrix.svg index 2072096..1169f9d 100644 --- a/docs/images/gs1-datamatrix.svg +++ b/docs/images/gs1-datamatrix.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/docs/images/interleaved-2-of-5-narrow-ratio.svg b/docs/images/interleaved-2-of-5-narrow-ratio.svg index 9ba5102..5646c11 100644 --- a/docs/images/interleaved-2-of-5-narrow-ratio.svg +++ b/docs/images/interleaved-2-of-5-narrow-ratio.svg @@ -1 +1 @@ -1234567890 \ No newline at end of file +1234567890 \ No newline at end of file diff --git a/docs/images/interleaved-2-of-5.svg b/docs/images/interleaved-2-of-5.svg index 0851c19..7013c27 100644 --- a/docs/images/interleaved-2-of-5.svg +++ b/docs/images/interleaved-2-of-5.svg @@ -1 +1 @@ -1234567890 \ No newline at end of file +1234567890 \ No newline at end of file diff --git a/docs/images/isbn-from-isbn-10.svg b/docs/images/isbn-from-isbn-10.svg index 1a4f851..a33c092 100644 --- a/docs/images/isbn-from-isbn-10.svg +++ b/docs/images/isbn-from-isbn-10.svg @@ -1 +1 @@ -9780201379624 \ No newline at end of file +9780201379624 \ No newline at end of file diff --git a/docs/images/isbn.svg b/docs/images/isbn.svg index 1a4f851..a33c092 100644 --- a/docs/images/isbn.svg +++ b/docs/images/isbn.svg @@ -1 +1 @@ -9780201379624 \ No newline at end of file +9780201379624 \ No newline at end of file diff --git a/docs/images/itf-14-no-bearer-bars.svg b/docs/images/itf-14-no-bearer-bars.svg index 0a29792..66f29b9 100644 --- a/docs/images/itf-14-no-bearer-bars.svg +++ b/docs/images/itf-14-no-bearer-bars.svg @@ -1 +1 @@ -10012345678902 \ No newline at end of file +10012345678902 \ No newline at end of file diff --git a/docs/images/itf-14.svg b/docs/images/itf-14.svg index 8284d47..5fff4bb 100644 --- a/docs/images/itf-14.svg +++ b/docs/images/itf-14.svg @@ -1 +1 @@ -10012345678902 \ No newline at end of file +10012345678902 \ No newline at end of file diff --git a/docs/images/qr-code-ecc-low.svg b/docs/images/qr-code-ecc-low.svg index 81e2cd3..5095eb0 100644 --- a/docs/images/qr-code-ecc-low.svg +++ b/docs/images/qr-code-ecc-low.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/docs/images/qr-code.svg b/docs/images/qr-code.svg index 625eef7..45c6d86 100644 --- a/docs/images/qr-code.svg +++ b/docs/images/qr-code.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/docs/images/upc-a.svg b/docs/images/upc-a.svg index 801fc64..173484d 100644 --- a/docs/images/upc-a.svg +++ b/docs/images/upc-a.svg @@ -1 +1 @@ -036000291452 \ No newline at end of file +036000291452 \ No newline at end of file diff --git a/docs/images/upc-e-expanded.svg b/docs/images/upc-e-expanded.svg index 858ba07..3378da6 100644 --- a/docs/images/upc-e-expanded.svg +++ b/docs/images/upc-e-expanded.svg @@ -1 +1 @@ -004000002101 \ No newline at end of file +004000002101 \ No newline at end of file diff --git a/docs/images/upc-e.svg b/docs/images/upc-e.svg index 71c2d3d..d324af9 100644 --- a/docs/images/upc-e.svg +++ b/docs/images/upc-e.svg @@ -1 +1 @@ -00421001 \ No newline at end of file +00421001 \ No newline at end of file