def processSVGElementtext(svgReader, xmlElement):
 if svgReader.yAxisPointingUpward:
  return
 fontFamily = getStyleValue('Gentium Basic Regular', 'font-family', xmlElement)
 fontSize = getRightStripAlphabetPercent(getStyleValue('12.0', 'font-size', xmlElement))
 matrixSVG = getChainMatrixSVGIfNecessary(xmlElement, svgReader.yAxisPointingUpward)
 rotatedLoopLayer = svgReader.getRotatedLoopLayer()
 translate = euclidean.getComplexDefaultByDictionaryKeys(complex(), xmlElement.attributeDictionary, 'x', 'y')
 for textComplexLoop in getTextComplexLoops(fontFamily, fontSize, xmlElement.text, svgReader.yAxisPointingUpward):
  translatedLoop = []
  for textComplexPoint in textComplexLoop:
   translatedLoop.append((textComplexPoint + translate))
  rotatedLoopLayer.loops.append(matrixSVG.getTransformedPath(translatedLoop))

def processSVGElementtext ( svgReader , xmlElement ) : if svgReader . yAxisPointingUpward : return fontFamily = getStyleValue ( 'Gentium Basic Regular' , 'font-family' , xmlElement ) fontSize = getRightStripAlphabetPercent ( getStyleValue ( '12.0' , 'font-size' , xmlElement ) ) matrixSVG = getChainMatrixSVGIfNecessary ( xmlElement , svgReader . yAxisPointingUpward ) rotatedLoopLayer = svgReader . getRotatedLoopLayer ( ) translate = euclidean . getComplexDefaultByDictionaryKeys ( complex ( ) , xmlElement . attributeDictionary , 'x' , 'y' ) for textComplexLoop in getTextComplexLoops ( fontFamily , fontSize , xmlElement . text , svgReader . yAxisPointingUpward ) : translatedLoop = [ ] for textComplexPoint in textComplexLoop : translatedLoop . append ( ( textComplexPoint + translate ) ) rotatedLoopLayer . loops . append ( matrixSVG . getTransformedPath ( translatedLoop ) )
process elementnode by svgreader .