Lines Matching defs:__uuconv
304 __uuconv = {'in': 96.0, 'pt': 1.33333333333, 'px': 1.0, 'mm': 3.77952755913, 'cm': 37.7952755913,
346 unitmatch = re.compile('(%s)$' % '|'.join(self.__uuconv.keys()))
371 svgunitfactor = self.__uuconv[svgwidthunit] * width / viewboxwidth
375 for key in self.__uuconv:
376 if are_near_relative(self.__uuconv[key], svgunitfactor, eps):
384 unit = re.compile('(%s)$' % '|'.join(self.__uuconv.keys()))
395 return retval * (self.__uuconv[u.string[u.start():u.end()]] / self.__uuconv[self.getDocumentUnit()])
399 return retval / self.__uuconv[self.getDocumentUnit()]
404 return val / (self.__uuconv[unit] / self.__uuconv[self.getDocumentUnit()])