EAN8.py revision 56dcb73b5a1df7498fc6c7722ac4a380b9646fad
210N/ACopyright (C) 2007 Martin Owens 943N/AThis program is free software; you can redistribute it and/or modify 210N/Ait under the terms of the GNU General Public License as published by 210N/Athe Free Software Foundation; either version 2 of the License, or 919N/A(at your option) any later version. 919N/AThis program is distributed in the hope that it will be useful, 919N/Abut WITHOUT ANY WARRANTY; without even the implied warranty of 919N/AMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 919N/AGNU General Public License for more details. 919N/AYou should have received a copy of the GNU General Public License 919N/Aalong with this program; if not, write to the Free Software 919N/AFoundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 919N/AleftMap = [
'0001101',
'0011001',
'0010011',
'0111101',
'0100011',
'0110001',
'0101111',
'0111011',
'0110111',
'0001011' ]
919N/ArightMap = [
'1110010',
'1100110',
'1101100',
'1000010',
'1011100',
'1001110',
'1010000',
'1000100',
'1001000',
'1110100' ]
911N/A # Rejig the label for use if index==
0:
# White Space elif index==
1:
# Black Bar elif index==
2:
# Guide Bar