Lines Matching refs:text
63 def encode(self, text):
68 text = self.encode_ascii(text)
71 text.append(self.checksum(text, 20)) # C
72 text.append(self.checksum(text, 15)) # K
74 # Now convert text into the ENCODE bits (black and white stripes)
75 for char in text:
81 def checksum(self, text, mod):
83 weight = len(text) % mod
85 for char in text:
95 def encode_ascii(self, text):
97 for char in text: