Lines Matching refs:options

138         #inkex.errormsg( self.options.input_encode )
140 m = re.match('\s*(.*[^\s])\s*', self.options.month_names)
141 self.options.month_names = re.split('\s+', m.group(1))
142 m = re.match('\s*(.*[^\s])\s*', self.options.day_names)
143 self.options.day_names = re.split('\s+', m.group(1))
145 if len(self.options.month_names) != 12:
147 str(self.options.month_names) + \
149 self.options.month_names = ['January', 'February', 'March',
153 if len(self.options.day_names) != 7:
155 str(self.options.day_names)+
157 self.options.day_names = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu',
160 if self.options.year == 0: self.options.year = datetime.today().year
162 if self.options.year == 1: self.options.start_day = 'mon'
164 if self.options.start_day=='sun':
169 self.options.month_width = self.unittouu( self.options.month_width )
170 self.options.month_margin = self.unittouu( self.options.month_margin )
181 if self.options.show_weeknr:
185 if self.options.auto_organize:
191 self.months_per_line = self.options.months_per_line
193 if self.options.auto_organize:
197 self.month_w = self.options.month_width
198 self.month_margin = self.options.month_margin
202 if self.options.month == 0:
214 'fill': self.options.color_day
217 self.style_weekend['fill'] = self.options.color_weekend
219 self.style_nmd['fill'] = self.options.color_nmd
221 self.style_month['fill'] = self.options.color_month
225 self.style_day_name['fill'] = self.options.color_day_name
228 self.style_year['fill'] = self.options.color_year
232 self.style_weeknr['fill'] = self.options.color_weeknr
237 if self.options.start_day == 'sun':
238 if self.options.weekend == 'sat+sun' and pos == 0: return True
239 if self.options.weekend == 'sat+sun' and pos == 6: return True
240 if self.options.weekend == 'sat' and pos == 6: return True
241 if self.options.weekend == 'sun' and pos == 0: return True
243 if self.options.weekend == 'sat+sun' and pos == 5: return True
244 if self.options.weekend == 'sat+sun' and pos == 6: return True
245 if self.options.weekend == 'sat' and pos == 5: return True
246 if self.options.weekend == 'sun' and pos == 6: return True
263 self.options.month_names[m-1],
264 self.options.input_encode)
270 if self.options.start_day=='sun':
271 day_names = self.options.day_names[:]
273 day_names = self.options.day_names[1:]
274 day_names.append(self.options.day_names[0])
276 if self.options.show_weeknr:
277 day_names.insert(0, self.options.weeknr_name)
286 self.options.input_encode)
305 str(self.options.year)}
309 cal = calendar.monthcalendar(self.options.year,m)
311 if self.options.year > 1:
313 self.in_line_month(calendar.monthcalendar(self.options.year - 1, 12))
316 self.in_line_month(calendar.monthcalendar(self.options.year, m - 1))
319 self.in_line_month(calendar.monthcalendar(self.options.year + 1, 1))
322 self.in_line_month(calendar.monthcalendar(self.options.year, m + 1))
337 ((self.options.start_day == 'mon' and week[0] != 0) or \
338 (self.options.start_day == 'sun' and week[1] != 0))) or \
340 ((self.options.start_day == 'mon' and week[3] > 0) or \
341 (self.options.start_day == 'sun' and week[4] > 0))):
344 if self.options.show_weeknr:
362 if day == 0 and not self.options.fill_edb:
385 txt_atts = {'id': 'year_'+str(self.options.year) }
390 inkex.etree.SubElement(self.year_g, 'text', txt_atts).text = str(self.options.year)
391 if self.options.month == 0:
395 self.create_month(self.options.month)