Пример #1
0
 /**
  * Constructor
  */
 function BCGi25()
 {
     BCGBarcode1D::BCGBarcode1D();
     $this->keys = array('0', '1', '2', '3', '4', '5', '6', '7', '8', '9');
     $this->code = array('00110', '10001', '01001', '11000', '00101', '10100', '01100', '00011', '10010', '01010');
     $this->setChecksum(false);
 }
Пример #2
0
 /**
  * Constructor
  */
 function BCGcode11()
 {
     // public
     BCGBarcode1D::BCGBarcode1D();
     $this->keys = array('0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '-');
     $this->code = array('000010', '100010', '010010', '110000', '001010', '101000', '011000', '000110', '100100', '100000', '001000');
 }
 /**
  * Constructor
  */
 function BCGcodabar()
 {
     // public
     BCGBarcode1D::BCGBarcode1D();
     $this->keys = array('0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '-', '$', ':', '/', '.', '+', 'A', 'B', 'C', 'D');
     $this->code = array('00000110', '00001100', '00010010', '11000000', '00100100', '10000100', '01000010', '01001000', '01100000', '10010000', '00011000', '00110000', '10001010', '10100010', '10101000', '00111110', '00110100', '01010010', '00010110', '00011100');
 }
Пример #4
0
 /**
  * Constructor
  */
 function BCGean8()
 {
     BCGBarcode1D::BCGBarcode1D();
     $this->keys = array('0', '1', '2', '3', '4', '5', '6', '7', '8', '9');
     // Left-Hand Odd Parity starting with a space
     // Right-Hand is the same of Left-Hand starting with a bar
     $this->code = array('2100', '1110', '1011', '0300', '0021', '0120', '0003', '0201', '0102', '2001');
 }
 /**
  * Constructor
  */
 function BCGupcext2()
 {
     BCGBarcode1D::BCGBarcode1D();
     $this->keys = array('0', '1', '2', '3', '4', '5', '6', '7', '8', '9');
     $this->code = array('2100', '1110', '1011', '0300', '0021', '0120', '0003', '0201', '0102', '2001');
     // Parity, 0=Odd, 1=Even. Depending on ?%4
     $this->codeParity = array(array(0, 0), array(0, 1), array(1, 0), array(1, 1));
 }
Пример #6
0
 /**
  * Constructor
  */
 function BCGcode39()
 {
     // public
     BCGBarcode1D::BCGBarcode1D();
     $this->starting = $this->ending = 43;
     $this->keys = array('0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', '-', '.', ' ', '$', '/', '+', '%', '*');
     $this->code = array('0001101000', '1001000010', '0011000010', '1011000000', '0001100010', '1001100000', '0011100000', '0001001010', '1001001000', '0011001000', '1000010010', '0010010010', '1010010000', '0000110010', '1000110000', '0010110000', '0000011010', '1000011000', '0010011000', '0000111000', '1000000110', '0010000110', '1010000100', '0000100110', '1000100100', '0010100100', '0000001110', '1000001100', '0010001100', '0000101100', '1100000010', '0110000010', '1110000000', '0100100010', '1100100000', '0110100000', '0100001010', '1100001000', '0110001000', '0101010000', '0101000100', '0100010100', '0001010100', '0100101000');
     $this->setChecksum(false);
 }
Пример #7
0
 /**
  * Constructor
  */
 function BCGupce()
 {
     BCGBarcode1D::BCGBarcode1D();
     $this->keys = array('0', '1', '2', '3', '4', '5', '6', '7', '8', '9');
     // Odd Parity starting with a space
     // Even Parity is the inverse (0=0012) starting with a space
     $this->code = array('2100', '1110', '1011', '0300', '0021', '0120', '0003', '0201', '0102', '2001');
     // Parity, 0=Odd, 1=Even for manufacturer code. Depending on 1st System Digit and Checksum
     $this->codeParity = array(array(array(1, 1, 1, 0, 0, 0), array(1, 1, 0, 1, 0, 0), array(1, 1, 0, 0, 1, 0), array(1, 1, 0, 0, 0, 1), array(1, 0, 1, 1, 0, 0), array(1, 0, 0, 1, 1, 0), array(1, 0, 0, 0, 1, 1), array(1, 0, 1, 0, 1, 0), array(1, 0, 1, 0, 0, 1), array(1, 0, 0, 1, 0, 1)), array(array(0, 0, 0, 1, 1, 1), array(0, 0, 1, 0, 1, 1), array(0, 0, 1, 1, 0, 1), array(0, 0, 1, 1, 1, 0), array(0, 1, 0, 0, 1, 1), array(0, 1, 1, 0, 0, 1), array(0, 1, 1, 1, 0, 0), array(0, 1, 0, 1, 0, 1), array(0, 1, 0, 1, 1, 0), array(0, 1, 1, 0, 1, 0)));
 }
Пример #8
0
 /**
  * Constructor
  */
 function BCGcode93()
 {
     // public
     BCGBarcode1D::BCGBarcode1D();
     $this->starting = $this->ending = 47;
     /* * */
     $this->keys = array('0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', '-', '.', ' ', '$', '/', '+', '%', '($)', '(%)', '(/)', '(+)', '(*)');
     $this->code = array('020001', '000102', '000201', '000300', '010002', '010101', '010200', '000003', '020100', '030000', '100002', '100101', '100200', '110001', '110100', '120000', '001002', '001101', '001200', '011001', '021000', '000012', '000111', '000210', '010011', '020010', '101001', '101100', '100011', '100110', '110010', '111000', '001011', '001110', '011010', '012000', '010020', '200001', '200100', '210000', '001020', '002010', '100020', '010110', '201000', '200010', '011100', '000030');
     $this->errorText = '';
 }
Пример #9
0
 /**
  * Constructor
  */
 function BCGean13()
 {
     BCGBarcode1D::BCGBarcode1D();
     $this->keys = array('0', '1', '2', '3', '4', '5', '6', '7', '8', '9');
     // Left-Hand Odd Parity starting with a space
     // Left-Hand Even Parity is the inverse (0=0012) starting with a space
     // Right-Hand is the same of Left-Hand starting with a bar
     $this->code = array('2100', '1110', '1011', '0300', '0021', '0120', '0003', '0201', '0102', '2001');
     // Parity, 0=Odd, 1=Even for manufacturer code. Depending on 1st System Digit
     $this->codeParity = array(array(0, 0, 0, 0, 0), array(0, 1, 0, 1, 1), array(0, 1, 1, 0, 1), array(0, 1, 1, 1, 0), array(1, 0, 0, 1, 1), array(1, 1, 0, 0, 1), array(1, 1, 1, 0, 0), array(1, 0, 1, 0, 1), array(1, 0, 1, 1, 0), array(1, 1, 0, 1, 0));
 }
 /**
  * Constructor
  */
 function BCGothercode()
 {
     BCGBarcode1D::BCGBarcode1D();
 }
Пример #11
0
 /**
  * Constructor
  */
 function BCGpostnet()
 {
     BCGBarcode1D::BCGBarcode1D();
     $this->keys = array('0', '1', '2', '3', '4', '5', '6', '7', '8', '9');
     $this->code = array('11000', '00011', '00101', '00110', '01001', '01010', '01100', '10001', '10010', '10100');
 }
Пример #12
0
 /**
  * Constructor
  *
  * @param char $start
  */
 function BCGcode128($start = 'B')
 {
     // public
     BCGBarcode1D::BCGBarcode1D();
     /* CODE 128 A */
     $this->keysA = ' !"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_';
     for ($i = 0; $i < 32; $i++) {
         $this->keysA .= chr($i);
     }
     /* CODE 128 B */
     $this->keysB = ' !"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~' . chr(127);
     /* CODE 128 C */
     $this->keysC = '0123456789';
     $this->code = array('101111', '111011', '111110', '010112', '010211', '020111', '011102', '011201', '021101', '110102', '110201', '120101', '001121', '011021', '011120', '002111', '012011', '012110', '112100', '110021', '110120', '102101', '112001', '201020', '200111', '210011', '210110', '201101', '211001', '211100', '101012', '101210', '121010', '000212', '020012', '020210', '001202', '021002', '021200', '100202', '120002', '120200', '001022', '001220', '021020', '002012', '002210', '022010', '202010', '100220', '120020', '102002', '102200', '102020', '200012', '200210', '220010', '201002', '201200', '221000', '203000', '110300', '320000', '000113', '000311', '010013', '010310', '030011', '030110', '001103', '001301', '011003', '011300', '031001', '031100', '130100', '110003', '302000', '130001', '023000', '000131', '010031', '010130', '003101', '013001', '013100', '300101', '310001', '310100', '101030', '103010', '301010', '000032', '000230', '020030', '003002', '003200', '300002', '300200', '002030', '003020', '200030', '300020', '100301', '100103', '100121', '122000');
     $this->errorText = '';
     $this->setStart($start);
     $this->setTilde(true);
     // Latches and Shifts
     $this->latch = array(array(null, $this->KEYA_CODEB, $this->KEYA_CODEC), array($this->KEYB_CODEA, null, $this->KEYB_CODEC), array($this->KEYC_CODEA, $this->KEYC_CODEB, null));
     $this->shift = array(array(null, $this->KEYA_SHIFT), array($this->KEYB_SHIFT, null));
     $this->fnc = array(array($this->KEYA_FNC1, $this->KEYA_FNC2, $this->KEYA_FNC3, $this->KEYA_FNC4), array($this->KEYB_FNC1, $this->KEYB_FNC2, $this->KEYB_FNC3, $this->KEYB_FNC4), array($this->KEYC_FNC1, null, null, null));
 }