Unveil

Code

Marks made for a machine to read — barcodes from the shop to the post, QR codes, a passport’s lines — made and read with their structure shown.

Barcodes

Makes and reads the linear and postal barcodes whose rules can be read free: EAN and UPC, ITF-14 and GS1-128 from GS1’s General Specifications, Code 39 from MIL-STD-1189B, Codabar from the FDA’s blood-labelling guideline, Code 93 from Intermec’s patent, and the Postal Service’s POSTNET, PLANET and Intelligent Mail barcode. GS1 data is read by GS1’s Barcode Syntax Dictionary.

History, how it works, how it was checked, limits

History

GS1’s General Specifications define EAN, UPC, ITF-14 and GS1-128 (Release 26.0, 2026). The US Department of Defense made Code 39, the “3 of 9 bar code”, its standard for marking packs in MIL-STD-1189B (1989). The FDA’s guideline of 1985 labelled blood with Codabar, whose patterns stand in a patent of 1975 (US 3,886,521). Code 93 is described as the prior art of Intermec’s patent for 93i (2000). The Postal Service wrote a ZIP Code in POSTNET’s bars of two heights (Publication 25, 2003), confirmed mail by PLANET (Publication 197, 2008), and specifies the Intelligent Mail barcode of four states (USPS-B-3200, 2015).

How it works

Each symbology’s module holds its source’s own table: EAN’s number sets and the leading digit’s mix of them, Code 128’s 106 characters, Code 39’s nine elements, Codabar’s widths in inches, the Postal Service’s tables of bars. A symbol is made from them, its check computed as its source says, and drawn black on white; the structure view bands each part over its bars. To read, lines are laid across a picture, each made bars and spaces by a threshold that follows the line, and every symbology tried both ways; EAN and UPC by GS1’s reference decode algorithm, which measures from edge to like edge. Postal bars are measured in height, column by column.

How it was checked

Each source’s worked examples, from GS1’s zero suppressions and Table 5-27 to USPS-B-3200’s four, step by step to the 65 bars. Sixty pictures of random bars read nothing. Two programs that are not Unveil’s: python-barcode and zxing-cpp encode the same symbols module for module, zxing-cpp reads all 25 of the symbols Unveil makes, and Unveil’s reader reads 35 of their pictures, blurred, turned, small and faint.

The tests hold 38 checks of this tool; 27 rest on outside material, the first eight here:

  • A standard’s own vectors GS1 General Specifications §7.9.1, Table 7-9 (p. 545): 37610425002123456 takes the check digit 9
  • A standard’s own vectors GS1 General Specifications Table 5-12 (p. 333): EAN-13 113 modules with its quiet zones, UPC-A 113, EAN-8 81, UPC-E 67; with a two-digit add-on 138 and 92, with five 165 and 119
  • A standard’s own vectors GS1 General Specifications Figures 5-15 to 5-18 (pp. 328–329): UPC-E’s zero suppression of 012345000058, 045670000080, 034000005673 and 098400000751 by rules 2a, 2b, 2c, 2d, and Table 5-6’s sets for their check digits
  • A standard’s own vectors GS1 General Specifications §5.2.2.5.2 (p. 331): the add-on 86104 has V = 3 and the sets B A A A B; a two-digit add-on of 12 (a multiple of 4) is A A by Table 5-8
  • A standard’s own vectors GS1 General Specifications Figures 5-11 to 5-13: EAN-13 9 501101 531000, EAN-8 9501 2346, UPC-A 0 12345 00005 8 made with the check digits printed
  • A standard’s own vectors GS1 General Specifications Table 5-13 (§5.2.4): every digit of every set read back by the reference decode algorithm from its edge-to-similar-edge measurements
  • A standard’s own vectors GS1 General Specifications Table 5-27 (p. 365): Start C FNC1 10 25 03 Code B X, the values weighted and summed to 1150, the check character 17
  • A standard’s own vectors GS1 General Specifications Table 5-25: 106 characters of 11 modules each with an even number of bar modules, and the stop of 13

The other 19, and every tool’s checks

Limits

GS1 DataBar, Data Matrix, Aztec and PDF417 are not built: their rules are in sold ISO/IEC standards or only in patents for earlier forms. Code 93’s modulus, 47, is Unveil’s reading, the patent stating it only for 93i, and its Full ASCII is not in the source read. Codabar is drawn at the guideline’s traditional widths, Interleaved 2 of 5 at other even lengths, six or more, by the same rule. The reader takes a symbol within about nine degrees of level or upright, its narrowest bar two pixels or more, and gives a reading only where two lines agree, three for a symbol with no check; a postal code within twelve degrees. A GS1 date’s century is not given.