~ubuntu-branches/ubuntu/precise/inkscape/precise-updates

« back to all changes in this revision

Viewing changes to share/extensions/Barcode/Code93.py

  • Committer: Bazaar Package Importer
  • Author(s): Alex Valavanis
  • Date: 2010-09-12 19:44:58 UTC
  • mfrom: (1.1.12 upstream) (45.1.3 maverick)
  • Revision ID: james.westby@ubuntu.com-20100912194458-4sjwmbl7dlsrk5dc
Tags: 0.48.0-1ubuntu1
* Merge with Debian unstable (LP: #628048, LP: #401567, LP: #456248, 
  LP: #463602, LP: #591986)
* debian/control: 
  - Ubuntu maintainers
  - Promote python-lxml, python-numpy, python-uniconvertor to Recommends.
  - Demote pstoedit to Suggests (universe package).
  - Suggests ttf-dejavu instead of ttf-bitstream-vera (LP: #513319)
* debian/rules:
  - Run intltool-update on build (Ubuntu-specific).
  - Add translation domain to .desktop files (Ubuntu-specific).
* debian/dirs:
  - Add usr/share/pixmaps.  Allow inkscape.xpm installation
* drop 50-poppler-API.dpatch (now upstream)
* drop 51-paste-in-unwritable-directory.dpatch (now upstream) 

Show diffs side-by-side

added added

removed removed

Lines of Context:
55
55
 
56
56
class Object(Barcode):
57
57
        def encode(self, text):
 
58
                # start marker  
58
59
                bits = self.encode93('MARKER')
59
60
 
60
61
                # Extend to ASCII charset ( return Array )
68
69
                for char in text:
69
70
                        bits = bits + self.encode93(char)
70
71
 
 
72
                # end marker  
 
73
                bits = bits + self.encode93('MARKER')
 
74
 
 
75
                # termination bar
 
76
                bits = bits + '1'
 
77
    
71
78
                self.inclabel = text
72
79
                return bits
73
80