Table of contents
Namespace: Com\Tecnick\Barcode\Type\Square\HanXin
class Data
Source: src/Type/Square/HanXin/Data.php:34
Symbol tables for the HanXin Barcode type class
Constants
ALIGNMENT
Alignment pattern parameters of Annex A, by version: the length in modules of the two alignment lines of the bottom left corner, the length of the other alignment lines and the number of alignment line steps.
The versions 1 to 3 have no alignment pattern.
public const ALIGNMENT = [4 => [15, 14, 1], 5 => [15, 16, 1], 6 => [17, 16, 1], 7 => [18, 17, 1], 8 => [19, 18, 1], 9 => [20, 19, 1], 10 => [21, 20, 1], 11 => [15, 14, 2], 12 => [15, 15, 2], 13 => [15, 16, 2], 14 => [17, 16, 2], 15 => [17, 17, 2], 16 => [19, 17, 2], 17 => [19, 18, 2], 18 => [19, 19, 2], 19 => [19, 20, 2], 20 => [21, 20, 2], 21 => [21, 21, 2], 22 => [17, 16, 3], 23 => [16, 17, 3], 24 => [18, 17, 3], 25 =>
// … truncated, see source
Source: src/Type/Square/HanXin/Data.php:220
BINARY_COUNT_BITS
Number of bits of the binary byte mode character count indicator.
public const BINARY_COUNT_BITS = 13
Source: src/Type/Square/HanXin/Data.php:147
BLOCKS
Error correction block structure of Annex B, by version and error correction level: the number of blocks, the total number of codewords of each block and the number of data codewords of each block.
public const BLOCKS = [1 => [1 => [[1, 25, 21]], 2 => [[1, 25, 17]], 3 => [[1, 25, 13]], 4 => [[1, 25, 9]]], 2 => [1 => [[1, 37, 31]], 2 => [[1, 37, 25]], 3 => [[1, 37, 19]], 4 => [[1, 37, 15]]], 3 => [1 => [[1, 50, 42]], 2 => [[1, 50, 34]], 3 => [[1, 50, 26]], 4 => [[1, 50, 20]]], 4 => [1 => [[1, 54, 46]], 2 => [[1, 54, 38]], 3 => [[1, 54, 30]], 4 => [[1, 54, 22]]], 5 => [1 => [[1, 69, 57]], 2 => [[1, 69, 49]], 3 => [
// … truncated, see source
Source: src/Type/Square/HanXin/Data.php:311
GB_TWO_TERMINATOR
GB 18030 two byte region mode terminator.
public const GB_TWO_TERMINATOR = '111111111111111'
Source: src/Type/Square/HanXin/Data.php:193
GF_DATA
Primitive polynomial of the GF(256) of the data error correction: x^8 + x^6 + x^5 + x + 1.
public const GF_DATA = 355
Source: src/Type/Square/HanXin/Data.php:77
GROUP_SIZE
Number of codewords of a data placement group.
public const GROUP_SIZE = 13
Source: src/Type/Square/HanXin/Data.php:69
HANZI_SWITCH
Switch between the two common Chinese character region modes.
public const HANZI_SWITCH = '111111111110'
Source: src/Type/Square/HanXin/Data.php:179
HANZI_TERMINATOR
Common Chinese character region mode terminator.
public const HANZI_TERMINATOR = '111111111111'
Source: src/Type/Square/HanXin/Data.php:186
INFO_AREA_MODULES
Number of modules of each of the four function information areas.
public const INFO_AREA_MODULES = 17
Source: src/Type/Square/HanXin/Data.php:91
INFO_DATA_BITS
Number of function information bits before the error correction.
public const INFO_DATA_BITS = 12
Source: src/Type/Square/HanXin/Data.php:84
MODE_BINARY
Binary byte mode indicator.
public const MODE_BINARY = '0011'
Source: src/Type/Square/HanXin/Data.php:112
MODE_GB_FOUR
GB 18030 four byte region mode indicator.
public const MODE_GB_FOUR = '0111'
Source: src/Type/Square/HanXin/Data.php:140
MODE_GB_TWO
GB 18030 two byte region mode indicator.
public const MODE_GB_TWO = '0110'
Source: src/Type/Square/HanXin/Data.php:133
MODE_HANZI_ONE
Common Chinese character region one mode indicator.
public const MODE_HANZI_ONE = '0100'
Source: src/Type/Square/HanXin/Data.php:119
MODE_HANZI_TWO
Common Chinese character region two mode indicator.
public const MODE_HANZI_TWO = '0101'
Source: src/Type/Square/HanXin/Data.php:126
MODE_NUMERIC
Numeric mode indicator.
public const MODE_NUMERIC = '0001'
Source: src/Type/Square/HanXin/Data.php:98
MODE_TEXT
Text mode indicator.
public const MODE_TEXT = '0010'
Source: src/Type/Square/HanXin/Data.php:105
NUMERIC_TERMINATOR
Numeric mode terminator by the number of digits of the last group.
public const NUMERIC_TERMINATOR = [1 => '1111111101', 2 => '1111111110', 3 => '1111111111']
Source: src/Type/Square/HanXin/Data.php:154
SIZE_BASE
Number of modules of the side of the version 1 symbol.
public const SIZE_BASE = 23
Source: src/Type/Square/HanXin/Data.php:48
SIZE_STEP
Number of modules each version adds to the side of the symbol.
public const SIZE_STEP = 2
Source: src/Type/Square/HanXin/Data.php:55
TEXT_SWITCH
Text mode sub mode switch.
public const TEXT_SWITCH = '111110'
Source: src/Type/Square/HanXin/Data.php:165
TEXT_TERMINATOR
Text mode terminator.
public const TEXT_TERMINATOR = '111111'
Source: src/Type/Square/HanXin/Data.php:172
TEXT_TWO_RANGES
Byte value ranges of the Text2 sub mode, as low byte, high byte and the value subtracted from the byte to get the six bit code. The ranges are the byte values 00 to 1B and 20 to 7F of 5.3.3 that the Text1 sub mode does not carry, and they fill the codes 0 to 61 of Table 4, the two remaining codes being the sub mode switch and the mode terminator.
public const TEXT_TWO_RANGES = [[0x0, 0x1b, 0], [0x20, 0x2f, 4], [0x3a, 0x40, 14], [0x5b, 0x60, 40], [0x7b, 0x7f, 66]]
Source: src/Type/Square/HanXin/Data.php:204
VERSION_MAX
Highest symbol version.
public const VERSION_MAX = 84
Source: src/Type/Square/HanXin/Data.php:41
VERSION_OFFSET
Value added to the version number in the function information.
public const VERSION_OFFSET = 20