def writeSVGTextWithNounMessage(fileName, repository, shouldAnalyze=True):
 print ''
 print ('The %s tool is parsing the file:' % repository.lowerName)
 print os.path.basename(fileName)
 print ''
 startTime = time.time()
 fileNameSuffix = (((fileName[:fileName.rfind('.')] + '_') + repository.lowerName) + '.svg')
 craftText = getChainText(fileName, repository.lowerName)
 if (craftText == ''):
  return
 archive.writeFileText(fileNameSuffix, craftText)
 print ''
 print ('The %s tool has created the file:' % repository.lowerName)
 print fileNameSuffix
 print ''
 print ('It took %s to craft the file.' % euclidean.getDurationString((time.time() - startTime)))
 if shouldAnalyze:
  settings.getReadRepository(repository)
  settings.openSVGPage(fileNameSuffix, repository.svgViewer.value)

def writeSVGTextWithNounMessage ( fileName , repository , shouldAnalyze = True ) : print '' print ( 'The %s tool is parsing the file:' % repository . lowerName ) print os . path . basename ( fileName ) print '' startTime = time . time ( ) fileNameSuffix = ( ( ( fileName [ : fileName . rfind ( '.' ) ] + '_' ) + repository . lowerName ) + '.svg' ) craftText = getChainText ( fileName , repository . lowerName ) if ( craftText == '' ) : return archive . writeFileText ( fileNameSuffix , craftText ) print '' print ( 'The %s tool has created the file:' % repository . lowerName ) print fileNameSuffix print '' print ( 'It took %s to craft the file.' % euclidean . getDurationString ( ( time . time ( ) - startTime ) ) ) if shouldAnalyze : settings . getReadRepository ( repository ) settings . openSVGPage ( fileNameSuffix , repository . svgViewer . value )
get and write an svg text and print messages .