Download BOP Technical Reference Manual
Transcript
page 114 / 175 Barcode & OCR Printing: Technical Reference Manual 5.24.8 Code construction: Steps The conversion of the message data M = "<d#1>...<d#n>" into the symbology character set depends on the actual symbology of this family. Please see the corresponding chapter below. The message characters are encoded in one of the pools A, B, C and are enclosed by a start and a stop character. An intermediate guard character may need to be used as well. The following kind of scheme is used: byte # symb. char. pool 1 [start] 2 [<c#1>] ... ... ... [guard] ... ... A/B ... [<c#n>] ... [<CHK>] C C ... [stop] In general, the following sequence of steps is applied. 1. Apply check characters A check digit is calculated according to the algorithm indicated in the section "Checksum methods". (The result is either appended to the message, or used in determining the pattern of pools to be used.) 2. Convert the message characters into symbology characters Each message digit <d#i> is converted into one or more symbology characters [<d#i>], using the pools indicated in Encoding (I), depending on the value of the 1st digit and/or the CHK digit. 3. Insert symbology control characters The [start], [guard], and [stop] characters are inserted where indicated. 5.24.9 Encoding (II): The Physical encoding In the physical realization of the encoding as barcode images, every symbology character is mapped to a barcode character. Depending on the barcode solution, this can be the ASCII code of a barcode font character, whose glyph makes up the black-and-white rectangular pattern, or it can be a sequence of Draw rectangle commands in some printer language, realizing the black-and-white rectangular pattern, corresponding to the logical width encoding defined above. 5.24.10 Code construction: The complete procedure (Example) For a full example of all stages of the Code construction, please see the members of this family.