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