Rm4scc.py revision 12a239f8730c2bb6e3738d5e75b3237877594d07
369N/A# Copyright (C) 2007 Martin Owens 369N/A# This program is free software; you can redistribute it and/or modify 369N/A# it under the terms of the GNU General Public License as published by 369N/A# the Free Software Foundation; either version 2 of the License, or 369N/A# (at your option) any later version. 369N/A# This program is distributed in the hope that it will be useful, 369N/A# but WITHOUT ANY WARRANTY; without even the implied warranty of 369N/A# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 369N/A# GNU General Public License for more details. 369N/A# You should have received a copy of the GNU General Public License 369N/A# along with this program; if not, write to the Free Software 369N/A# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 369N/APython barcode renderer for RM4CC barcodes. Designed for use with Inkscape. 369N/Acheck = [
'ZUVWXY',
'501234',
'B6789A',
'HCDEFG',
'NIJKLM',
'TOPQRS']
369N/A # given a string of data, return the check character """Royal Mail Barcodes use a completely different style""" result = {
'width' :
2,
'write' :
True,
'top' :
0 }