diff options
| author | Ted Gould <ted@gould.cx> | 2010-05-15 19:05:39 +0000 |
|---|---|---|
| committer | Ted Gould <ted@gould.cx> | 2010-05-15 19:05:39 +0000 |
| commit | 672afd6dd148c167ce8f5df23e35d15f888b9473 (patch) | |
| tree | 0d47f7e475daad3eedd7d89fbc5d183598044782 /share/extensions/Barcode/Code93.py | |
| parent | Making an enable/disable flag for building with dbus (diff) | |
| parent | Fix tooltip error in the preferences (Bug #446723). (diff) | |
| download | inkscape-672afd6dd148c167ce8f5df23e35d15f888b9473.tar.gz inkscape-672afd6dd148c167ce8f5df23e35d15f888b9473.zip | |
Pulling in a more recent trunk
(bzr r8254.1.56)
Diffstat (limited to 'share/extensions/Barcode/Code93.py')
| -rw-r--r-- | share/extensions/Barcode/Code93.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/share/extensions/Barcode/Code93.py b/share/extensions/Barcode/Code93.py index 5b013c509..d5646a1a3 100644 --- a/share/extensions/Barcode/Code93.py +++ b/share/extensions/Barcode/Code93.py @@ -55,6 +55,7 @@ encoding = '100010100 101001000 101000100 101000010 100101000 100100100 10010001 class Object(Barcode): def encode(self, text): + # start marker bits = self.encode93('MARKER') # Extend to ASCII charset ( return Array ) @@ -68,6 +69,12 @@ class Object(Barcode): for char in text: bits = bits + self.encode93(char) + # end marker + bits = bits + self.encode93('MARKER') + + # termination bar + bits = bits + '1' + self.inclabel = text return bits |
