diff --git a/libs/piccreate.py b/libs/piccreate.py index 9540bf3..90ec728 100644 --- a/libs/piccreate.py +++ b/libs/piccreate.py @@ -163,7 +163,7 @@ class Word: content = dict() content['posy'] = y g = self.font.GlyphGet(c) - if c ==' ' or c.isupper() : + if options.startfrom and (c ==' ' or c.isupper()) : counter = 0 content['posx'] = str(x) # die Position ist erst für den nächsten Buchstaben relevant @@ -375,6 +375,9 @@ Read Confg, create wakeup and scale this kind of jiffy box parser.add_option("-i", "--infile", dest="infile", help="csv file with input of names/content", action='store') + parser.add_option("-s", "--startfrom", dest="startfrom", + help="csv file with input of names/content", + action='store_true') parser.add_option("-o", "--outdir", dest="outdir", default=os.path.expandvars('$PICCREATE_OUT'), help="path to the directory where the maps will be generated", action='store')