Data

Tables of the GS1 DataBar family (ISO/IEC 24724)

Namespace: Com\Tecnick\Barcode\Type\Linear\GsOneDataBar

class Data

Source: src/Type/Linear/GsOneDataBar/Data.php:34

Tables of the GS1 DataBar family (ISO/IEC 24724)

Constants

EXPANDED_FINDER

Element widths in modules of the twelve GS1 DataBar Expanded finder patterns, in the order A1, A2, B1, B2, C1, C2, D1, D2, E1, E2, F1, F2.

The patterns whose name ends in 1 start with a space, the ones whose name ends in 2 are their mirror image with the bars and spaces exchanged.

public const EXPANDED_FINDER = [[1, 8, 4, 1, 1], [1, 1, 4, 8, 1], [3, 6, 4, 1, 1], [1, 1, 4, 6, 3], [3, 4, 6, 1, 1], [1, 1, 6, 4, 3], [3, 2, 8, 1, 1], [1, 1, 8, 2, 3], [2, 6, 5, 1, 1], [1, 1, 5, 6, 2], [2, 2, 9, 1, 1], [1, 1, 9, 2, 2]]

Source: src/Type/Linear/GsOneDataBar/Data.php:51

EXPANDED_SEQUENCE

Sequence of finder patterns of a GS1 DataBar Expanded symbol, as indices into EXPANDED_FINDER, keyed by the number of symbol characters. Each sequence carries a subset of the patterns that no other sequence of its group carries, so that a misdecoded check character cannot pass as a symbol of a different length.

public const EXPANDED_SEQUENCE = [4 => [0, 1], 5 => [0, 3, 2], 6 => [0, 3, 2], 7 => [0, 5, 2, 7], 8 => [0, 5, 2, 7], 9 => [0, 9, 2, 7, 4], 10 => [0, 9, 2, 7, 4], 11 => [0, 9, 2, 7, 6, 11], 12 => [0, 9, 2, 7, 6, 11], 13 => [0, 9, 2, 7, 8, 11, 10], 14 => [0, 9, 2, 7, 8, 11, 10], 15 => [0, 1, 2, 3, 4, 5, 6, 7], 16 => [0, 1, 2, 3, 4, 5, 6, 7], 17 => [0, 1, 2, 3, 4, 5, 6, 9, 8], 18 => [0, 1, 2, 3, 4, 5, 6, 9, 8], 19 => [0, 1, 2, 3, 4,
// … truncated, see source

Source: src/Type/Linear/GsOneDataBar/Data.php:75

LIMITED_CHECK

public const LIMITED_CHECK = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 3, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, 2, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 3, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 3, 2, 1, 1], [1, 1, 1, 1, 1, 1, 1, 2, 1, 2, 3, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 3, 1, 1, 3, 1, 1, 1], [1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 3, 2, 1, 1], [1, 1, 1, 1, 1, 2, 1, 1, 1, 2, 3, 1, 1, 1], [1, 1, 1, 1, 1, 2, 1, 2, 1, 1, 3, 1, 1, 1], [1,
// … truncated, see source

Source: src/Type/Linear/GsOneDataBar/Data.php:97