summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3309abb)
raw | patch | inline | side by side (parent: 3309abb)
author | buliabyak <> | |
Tue, 27 Apr 2010 17:09:54 +0000 (14:09 -0300) | ||
committer | buliabyak <> | |
Tue, 27 Apr 2010 17:09:54 +0000 (14:09 -0300) |
share/extensions/Barcode/Code93.py | patch | blob | history |
index 5b013c509e5c3b4fa9c59555bae966bfada1258f..d5646a1a3d3842ac56271b5e68df20c126005828 100644 (file)
class Object(Barcode):
def encode(self, text):
+ # start marker
bits = self.encode93('MARKER')
# Extend to ASCII charset ( return Array )
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