Lines Matching refs:attrib
166 style = simplestyle.parseStyle(elem.attrib.get('style', ''))
176 elem.attrib['style'] = simplestyle.formatStyle(style)
200 transform = elem.attrib.get('transform', '').strip()
210 elem.attrib['transform'] = simpletransform.formatTransform(setval)
287 path = simplepath.parsePath(elem.attrib.get(original_d, elem.attrib['d']))
313 path = simplepath.parsePath(elem.attrib.get(original_d, elem.attrib['d']))
338 if original_d in elem.attrib: elem.attrib[original_d] = path
339 else: elem.attrib['d'] = path
345 path = simplepath.parsePath(elem.attrib.get(original_d, elem.attrib['d']))
358 if original_d in elem.attrib: elem.attrib[original_d] = path
359 else: elem.attrib['d'] = path
365 path = simplepath.parsePath(elem.attrib.get(original_d, elem.attrib['d']))
427 if original_d in elem.attrib: elem.attrib[original_d] = path
428 else: elem.attrib['d'] = path
438 width = self.unittouu(elem.attrib['width'])
439 height = self.unittouu(elem.attrib['height'])
440 x = self.unittouu(elem.attrib['x'])
441 y = self.unittouu(elem.attrib['y'])
458 elem.attrib['width'] = str(width)
459 elem.attrib['height'] = str(height)
460 elem.attrib['x'] = str(x)
461 elem.attrib['y'] = str(y)
496 self.document_offset = self.unittouu(svg.attrib['height']) % 1 # although SVG units are absolute, the elements are positioned relative to the top of the page, rather than zero