Table of contents
Namespace: Com\Tecnick\Barcode\Type\Linear\CodeFourNine
abstract class Data
Source: src/Type/Linear/CodeFourNine/Data.php:36
Data for CodeFourNine Barcode type class
Constants
ASCII
Code characters of each of the 128 ASCII characters, in code point order.
A character outside the alphanumeric set is a Shift 1 or Shift 2 pair.
public const ASCII = [[43, 38], [43, 10], [43, 11], [43, 12], [43, 13], [43, 14], [43, 15], [43, 16], [43, 17], [43, 18], [43, 19], [43, 20], [43, 21], [43, 22], [43, 23], [43, 24], [43, 25], [43, 26], [43, 27], [43, 28], [43, 29], [43, 30], [43, 31], [43, 32], [43, 33], [43, 34], [43, 35], [43, 1], [43, 2], [43, 3], [43, 4], [43, 5], [38], [43, 6], [43, 7], [43, 8], [39], [42], [43, 9], [43, 0], [43, 36], [43, 37], [
// … truncated, see source
Source: src/Type/Linear/CodeFourNine/Data.php:82
CHARS
Code characters of the alphanumeric encodation, in code character value order.
The values from 43 to 48 are the six non-data characters and have no character.
public const CHARS = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%'
Source: src/Type/Linear/CodeFourNine/Data.php:44
FNC_ONE
Code character value of FNC 1
public const FNC_ONE = 45
Source: src/Type/Linear/CodeFourNine/Data.php:59
FNC_THREE
Code character value of FNC 3
public const FNC_THREE = 47
Source: src/Type/Linear/CodeFourNine/Data.php:69
FNC_TWO
Code character value of FNC 2
public const FNC_TWO = 46
Source: src/Type/Linear/CodeFourNine/Data.php:64
MODE_WEIGHT
Check character weighting values of the row count and mode character: the X, Y and Z weights of the row 0 column 0 entry of the table.
public const MODE_WEIGHT = [20, 16, 38]
Source: src/Type/Linear/CodeFourNine/Data.php:236
NUMERIC_SHIFT
Code character value of the numeric shift, which is also the pad character
public const NUMERIC_SHIFT = 48
Source: src/Type/Linear/CodeFourNine/Data.php:74
PATTERNS
Bar and space widths of every symbol character value, from 0 to 2400, as eight digits in even parity followed by eight digits in odd parity.
Each pattern is a bar, a space, a bar and so on, and sums to 16 modules.
public const PATTERNS = ['1152113222121116', '2511213142121114', '1421213231221115', '2512122151221113', '1422122232112115', '1241213252112113', '2332122121212116', '1242122241212114', '2152122161212112', '1511222223121115', '1512131243121113', '1331222212221116', '2422131132221114', '1332131252221112', '1151222221321115', '2242131141321113', '1152131261321111', '2511231113112116', '1421231233112114', '2331231122212115',
// … truncated, see source
Source: src/Type/Linear/CodeFourNine/Data.php:290
ROW_PARITY
Parity of the four symbol characters of a row, in row order, where the last row of a symbol is always even. Odd is 1 and even is 0.
public const ROW_PARITY = [[1, 0, 0, 1], [0, 1, 0, 1], [1, 1, 0, 0], [0, 0, 1, 1], [1, 0, 1, 0], [0, 1, 1, 0], [1, 1, 1, 1], [0, 0, 0, 0]]
Source: src/Type/Linear/CodeFourNine/Data.php:219
SHIFT_ONE
Code character value of Shift 1
public const SHIFT_ONE = 43
Source: src/Type/Linear/CodeFourNine/Data.php:49
SHIFT_TWO
Code character value of Shift 2
public const SHIFT_TWO = 44
Source: src/Type/Linear/CodeFourNine/Data.php:54
WEIGHT
Check character weighting values of the symbol characters. The table lists the X, Y and Z weights of a symbol character as three successive entries of this sequence, the first one at four times the row index plus the column index, both counted from zero.
public const WEIGHT = [1, 9, 31, 26, 2, 12, 17, 23, 37, 18, 22, 6, 27, 44, 15, 43, 39, 11, 13, 5, 41, 33, 36, 8, 4, 32, 3, 19, 40, 25, 29, 10, 24, 30]