Package fabmetheus_utilities :: Module svg_reader
[hide private]
[frames] | no frames]

Module svg_reader

source code

Svg reader.


Date: $Date: 2008/21/04 $

Author: Enrique Perez (perez_enrique@yahoo.com)

License: GNU Affero General Public License http://www.gnu.org/licenses/agpl.html

Classes [hide private]
  FontReader
Class to read a font in the fonts folder.
  Glyph
Class to handle a glyph.
  MatrixSVG
Two by three svg matrix.
  PathReader
Class to read svg path.
  SVGReader
An svg carving.
Functions [hide private]
 
addFunctionsToDictionary(dictionary, functions, prefix)
Add functions to dictionary.
source code
 
getArcComplexes(begin, end, largeArcFlag, radius, sweepFlag, xAxisRotation)
Get the arc complexes, procedure at http://www.w3.org/TR/SVG/implnote.html#ArcImplementationNotes
source code
 
getChainMatrixSVG(matrixSVG, xmlElement)
Get chain matrixSVG by svgElement.
source code
 
getChainMatrixSVGIfNecessary(xmlElement, yAxisPointingUpward)
Get chain matrixSVG by svgElement and yAxisPointingUpward.
source code
 
getCubicPoint(along, begin, controlPoints, end)
Get the cubic point.
source code
 
getCubicPoints(begin, controlPoints, end, numberOfBezierPoints=22)
Get the cubic points.
source code
 
getFontReader(fontFamily)
Get the font reader for the fontFamily.
source code
 
getFontsDirectoryPath()
Get the fonts directory path.
source code
 
getLabelString(dictionary)
Get the label string for the dictionary.
source code
 
getMatrixSVG(xmlElement)
Get matrixSVG by svgElement.
source code
 
getQuadraticPoint(along, begin, controlPoint, end)
Get the quadratic point.
source code
 
getQuadraticPoints(begin, controlPoint, end, numberOfBezierPoints=22)
Get the quadratic points.
source code
 
getRightStripAlphabetPercent(word)
Get word with alphabet characters and the percent sign stripped from the right.
source code
 
getRightStripMinusSplit(lineString)
Get string with spaces after the minus sign stripped.
source code
 
getStrokeRadius(xmlElement)
Get the stroke radius.
source code
 
getStyleValue(defaultValue, key, xmlElement)
Get the stroke value string.
source code
 
getTextComplexLoops(fontFamily, fontSize, text, yAxisPointingUpward=True)
Get text as complex loops.
source code
 
getTransformedFillOutline(loop, xmlElement, yAxisPointingUpward)
Get the loops if fill is on, otherwise get the outlines.
source code
 
getTransformedOutlineByPath(path, xmlElement, yAxisPointingUpward)
Get the outline from the path.
source code
 
getTransformedOutlineByPaths(paths, xmlElement, yAxisPointingUpward)
Get the outline from the paths.
source code
 
getTricomplexmatrix(transformWords)
Get matrixSVG by transformWords.
source code
 
getTricomplexrotate(transformWords)
Get matrixSVG by transformWords.
source code
 
getTricomplexscale(transformWords)
Get matrixSVG by transformWords.
source code
 
getTricomplexskewX(transformWords)
Get matrixSVG by transformWords.
source code
 
getTricomplexskewY(transformWords)
Get matrixSVG by transformWords.
source code
 
getTricomplexTimesColumn(firstTricomplex, otherColumn)
Get this matrix multiplied by the otherColumn.
source code
 
getTricomplexTimesOther(firstTricomplex, otherTricomplex)
Get the first tricomplex multiplied by the other tricomplex.
source code
 
getTricomplextranslate(transformWords)
Get matrixSVG by transformWords.
source code
 
processSVGElementcircle(svgReader, xmlElement)
Process xmlElement by svgReader.
source code
 
processSVGElementellipse(svgReader, xmlElement)
Process xmlElement by svgReader.
source code
 
processSVGElementg(svgReader, xmlElement)
Process xmlElement by svgReader.
source code
 
processSVGElementline(svgReader, xmlElement)
Process xmlElement by svgReader.
source code
 
processSVGElementpath(svgReader, xmlElement)
Process xmlElement by svgReader.
source code
 
processSVGElementpolygon(svgReader, xmlElement)
Process xmlElement by svgReader.
source code
 
processSVGElementpolyline(svgReader, xmlElement)
Process xmlElement by svgReader.
source code
 
processSVGElementrect(svgReader, xmlElement)
Process xmlElement by svgReader.
source code
 
processSVGElementtext(svgReader, xmlElement)
Process xmlElement by svgReader.
source code
Variables [hide private]
  __credits__ = 'Nophead <http://hydraraptor.blogspot.com/>\nArt...
  globalNumberOfCornerPoints = 11
  globalNumberOfBezierPoints = 22
  globalNumberOfCirclePoints = 44
  globalFontFileNames = None
  globalFontReaderDictionary = {}
  globalGetTricomplexDictionary = {}
  globalGetTricomplexFunctions = [getTricomplexmatrix, getTricom...
  globalProcessPathWordFunctions = [<unbound method PathReader.p...
  globalProcessPathWordDictionary = {'A': <unbound method PathRe...
  globalProcessSVGElementDictionary = {}
  globalProcessSVGElementFunctions = [processSVGElementcircle, p...
  globalSideAngle = 0.142799666072
  __package__ = 'fabmetheus_utilities'
Variables Details [hide private]

__credits__

Value:
'''Nophead <http://hydraraptor.blogspot.com/>
Art of Illusion <http://www.artofillusion.org/>'''

globalGetTricomplexFunctions

Value:
[getTricomplexmatrix, getTricomplexrotate, getTricomplexscale, getTric\
omplexskewX, getTricomplexskewY, getTricomplextranslate]

globalProcessPathWordFunctions

Value:
[<unbound method PathReader.processPathWordA>,
 <unbound method PathReader.processPathWorda>,
 <unbound method PathReader.processPathWordC>,
 <unbound method PathReader.processPathWordc>,
 <unbound method PathReader.processPathWordH>,
 <unbound method PathReader.processPathWordh>,
 <unbound method PathReader.processPathWordL>,
 <unbound method PathReader.processPathWordl>,
...

globalProcessPathWordDictionary

Value:
{'A': <unbound method PathReader.processPathWordA>,
 'C': <unbound method PathReader.processPathWordC>,
 'H': <unbound method PathReader.processPathWordH>,
 'L': <unbound method PathReader.processPathWordL>,
 'M': <unbound method PathReader.processPathWordM>,
 'Q': <unbound method PathReader.processPathWordQ>,
 'S': <unbound method PathReader.processPathWordS>,
 'T': <unbound method PathReader.processPathWordT>,
...

globalProcessSVGElementFunctions

Value:
[processSVGElementcircle, processSVGElementellipse, processSVGElementg\
, processSVGElementline, processSVGElementpath, processSVGElementpolyg\
on, processSVGElementpolyline, processSVGElementrect, processSVGElemen\
ttext]