Code39.py revision 1ef3c8b1b935901dd133c337031a7300334db424
1472N/A# Copyright (C) 2007 Martin Owens 0N/A# This program is free software; you can redistribute it and/or modify 0N/A# it under the terms of the GNU General Public License as published by 0N/A# the Free Software Foundation; either version 2 of the License, or 1472N/A# (at your option) any later version. 1472N/A# This program is distributed in the hope that it will be useful, 0N/A# but WITHOUT ANY WARRANTY; without even the implied warranty of 0N/A# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 0N/A# GNU General Public License for more details. 0N/A# You should have received a copy of the GNU General Public License 0N/A# along with this program; if not, write to the Free Software 0N/A# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 0N/APython barcode renderer for Code39 barcodes. Designed for use with Inkscape. # Convert a text into string binary of black and white markers # It isposible for us to encode code39 # into full ascii, but this feature is # Now we need to encode the code39, best read # the code to understand what it's up to: colour =
'1';
# 1 = Black, 0 = White