EAN-2
Image:issn_barcode.png with an EAN-2 addon representing issue number 5.]]
The EAN-2 is a supplement to the EAN-13 and UPC-A barcodes. It is often used on magazines and periodicals to indicate an issue number.
Encoding
The encoding of EAN-2 characters is very similar to that of the other European Article Numbers. The only difference is that the digits are separated by 01. The EAN-2 always begins with "01011". Also, the R-Code is not used.
class="wikitable" style="text-align:center"
|+Encoding of the digits | ||
Digit | L-code | G-code |
---|---|---|
{{mono|0}} | {{mono|0001101}} | {{mono|0100111}} |
{{mono|1}} | {{mono|0011001}} | {{mono|0110011}} |
{{mono|2}} | {{mono|0010011}} | {{mono|0011011}} |
{{mono|3}} | {{mono|0111101}} | {{mono|0100001}} |
{{mono|4}} | {{mono|0100011}} | {{mono|0011101}} |
{{mono|5}} | {{mono|0110001}} | {{mono|0111001}} |
{{mono|6}} | {{mono|0101111}} | {{mono|0000101}} |
{{mono|7}} | {{mono|0111011}} | {{mono|0010001}} |
{{mono|8}} | {{mono|0110111}} | {{mono|0001001}} |
{{mono|9}} | {{mono|0001011}} | {{mono|0010111}} |
The structure of the barcode is based on the value of the two digit to be encoded. The two digits treated as a single two-digit number is reduced modulo 4 and used to find the parity pattern to be used. The parity pattern repeats every 4 values.
class="wikitable" style="text-align:center")
|+EAN-2 Parity | ||
Data to encode | Parity pattern | |
---|---|---|
{{mono|00}} | {{mono|LL}} | Encode as 0 from L table followed by 0 from L table |
{{mono|01}} | {{mono|LG}} | Encode as 0 from L table followed by 1 from G table |
{{mono|02}} | {{mono|GL}} | Encode as 0 from G table followed by 2 from L table |
{{mono|03}} | {{mono|GG}} | Encode as 0 from G table followed by 3 from G table |
{{mono|04}} | {{mono|LL}} | Encode as 0 from L table followed by 4 from L table |
{{mono|05}} | {{mono|LG}} | Encode as 0 from L table followed by 5 from G table |
{{mono|06}} | {{mono|GL}} | Encode as 0 from G table followed by 6 from L table |
{{mono|07}} | {{mono|GG}} | Encode as 0 from G table followed by 7 from G table |
{{mono|...}} | {{mono|...}} | |
{{mono|98}} | {{mono|GL}} | Encode as 9 from G table followed by 8 from L table |
{{mono|99}} | {{mono|GG}} | Encode as 9 from G table followed by 9 from G table |
class="wikitable" style="text-align:center"
|+Example - encoding 53 | |||
Start | 5 (L) | Separator | 3 (G) |
---|---|---|---|
{{mono|01011}} | {{mono|0110001}} | {{mono|01}} | {{mono|0100001}} |
References
- [https://web.archive.org/web/19990501035133/http://www.uc-council.org/d36-d.htm U.P.C. Symbol Specification Manual - Appendix D]