/opt/alt/python27/lib/python2.7/site-packages/svgwrite
NameSizeModeActions
data/-0755rm
animate.py66300644editdlrm
animate.pyc77910644editdlrm
animate.pyo77910644editdlrm
base.py80640644editdlrm
base.pyc100160644editdlrm
base.pyo100160644editdlrm
container.py90220644editdlrm
container.pyc109450644editdlrm
container.pyo109450644editdlrm
drawing.py43440644editdlrm
drawing.pyc49400644editdlrm
drawing.pyo49400644editdlrm
elementfactory.py21990644editdlrm
elementfactory.pyc29640644editdlrm
elementfactory.pyo29640644editdlrm
etree.py13610644editdlrm
etree.pyc13000644editdlrm
etree.pyo13000644editdlrm
filters.py78990644editdlrm
filters.pyc136550644editdlrm
filters.pyo136550644editdlrm
gradients.py47190644editdlrm
gradients.pyc60300644editdlrm
gradients.pyo60300644editdlrm
image.py24450644editdlrm
image.pyc30210644editdlrm
image.pyo30210644editdlrm
masking.py18270644editdlrm
masking.pyc22930644editdlrm
masking.pyo22930644editdlrm
mixins.py104460644editdlrm
mixins.pyc130410644editdlrm
mixins.pyo130410644editdlrm
params.py18800644editdlrm
params.pyc27910644editdlrm
params.pyo27910644editdlrm
path.py35910644editdlrm
path.pyc37430644editdlrm
path.pyo37430644editdlrm
pattern.py19500644editdlrm
pattern.pyc23470644editdlrm
pattern.pyo23470644editdlrm
shapes.py58580644editdlrm
shapes.pyc67560644editdlrm
shapes.pyo67560644editdlrm
text.py81290644editdlrm
text.pyc97290644editdlrm
text.pyo97290644editdlrm
utils.py62180644editdlrm
utils.pyc75440644editdlrm
utils.pyo75440644editdlrm
validator2.py60730644editdlrm
validator2.pyc71120644editdlrm
validator2.pyo71120644editdlrm
__init__.py24490644editdlrm
__init__.pyc32260644editdlrm
__init__.pyo32260644editdlrm
Edit: /opt/alt/python27/lib/python2.7/site-packages/svgwrite/text.pyc (9729B)
Ñò ŠœàRc@sôdZddklZddklZlZlZddklZl Z l Z l Z deefd„ƒYZ de efd„ƒYZ d eeefd „ƒYZd eeefd „ƒYZd efd„ƒYZdeeefd„ƒYZdS(sÇ Text that is to be rendered as part of an SVG document fragment is specified using the **text** element. The characters to be drawn are expressed as XML character data inside the **text** element. iÿÿÿÿ(t BaseElement(t Presentationt TransformtXLink(t iterflatlisttstrlistt is_stringt to_unicodetTSpancBs8eZdZdZddddddd„Zd„ZRS(s% Within a **Text** element, text and font properties and the current text position can be adjusted with absolute or relative coordinate values by using the **TSpan** element. The characters to be drawn are expressed as XML character data inside the **TSpan** element. ttspanc Ksytt|ƒi|||_|d j oYt|ƒotdƒ‚n|p|otdƒ‚n|dg}|dg}n|d j o#tt t |ƒƒdƒ|d or a with at least two elements.s;Use 'insert' and 'x' or 'y' parameter not at the same time!iit txtytdxtdytrotateN( tsuperRt__init__ttexttNoneRt TypeErrort ValueErrorRtlistR( tselfRtinsertR R R RRtextra((s>/opt/alt/python27/lib/python2.7/site-packages/svgwrite/text.pyRs&     # # # # cCs+tt|ƒiƒ}t|iƒ|_|S(N(RRtget_xmlRR(Rtxml((s>/opt/alt/python27/lib/python2.7/site-packages/svgwrite/text.pyRCsN(t__name__t __module__t__doc__t elementnameRRR(((s>/opt/alt/python27/lib/python2.7/site-packages/svgwrite/text.pyRs%tTextcBseZdZdZRS(s² The **Text** element defines a graphics element consisting of text. The characters to be drawn are expressed as XML character data inside the **Text** element. R(RRRR(((s>/opt/alt/python27/lib/python2.7/site-packages/svgwrite/text.pyR IstTRefcBs&eZdZdZd„Zd„ZRS(sõ The textual content for a **Text** can be either character data directly embedded within the element or the character data content of a referenced element, where the referencing is specified with a **TRef** element. ttrefcKs'tt|ƒi||i|ƒdS(sA :param element: create a reference this element, if element is a `string` its the **id** name of the referenced element, if element is a :class:`~svgwrite.base.BaseElement` the **id** SVG Attribute is used to create the reference. N(RR!Rtset_href(RtelementR((s>/opt/alt/python27/lib/python2.7/site-packages/svgwrite/text.pyR]scCs|iƒtt|ƒiƒS(N(t update_idRR!R(R((s>/opt/alt/python27/lib/python2.7/site-packages/svgwrite/text.pyRhs (RRRRRR(((s>/opt/alt/python27/lib/python2.7/site-packages/svgwrite/text.pyR!Ss tTextPathcBs/eZdZdZdddd„Zd„ZRS(sx In addition to text drawn in a straight line, SVG also includes the ability to place text along the shape of a **path** element. To specify that a block of text is to be rendered along the shape of a **path**, include the given text within a **textPath** element which includes an **xlink:href** attribute with a IRI reference to a **path** element. ttextPathtaligntexactcKs{tt|ƒi|||_|djo||d/opt/alt/python27/lib/python2.7/site-packages/svgwrite/text.pyRxs    cCs5|iƒtt|ƒiƒ}t|iƒ|_|S(N(R%RR&RRR(RR((s>/opt/alt/python27/lib/python2.7/site-packages/svgwrite/text.pyRŒs N(RRRRRRR(((s>/opt/alt/python27/lib/python2.7/site-packages/svgwrite/text.pyR&mstTBreakcBs2eZdZd„Zd„Zd„Zd„ZRS(ttbreakcKstt|ƒi|dS(N(RR0R(RR((s>/opt/alt/python27/lib/python2.7/site-packages/svgwrite/text.pyR–scCstdƒ‚dS(Ns,__getitem__() not supported by TBreak class.(tNotImplementedError(Rtkey((s>/opt/alt/python27/lib/python2.7/site-packages/svgwrite/text.pyt __getitem__™scCstdƒ‚dS(Ns,__setitem__() not supported by TBreak class.(R2(RR3tvalue((s>/opt/alt/python27/lib/python2.7/site-packages/svgwrite/text.pyt __setitem__œscCstdƒ‚dS(Ns$add() not supported by TBreak class.(R2(RR$((s>/opt/alt/python27/lib/python2.7/site-packages/svgwrite/text.pytaddŸs(RRRRR4R6R7(((s>/opt/alt/python27/lib/python2.7/site-packages/svgwrite/text.pyR0“s    tTextAreacBs8eZdZdZdddd„Zd„Zd„ZRS(s At this time **textArea** is only available for SVG 1.2 Tiny profile. The **textArea** element allows simplistic wrapping of text content within a given region. The `tiny` profile of SVG specifies a single rectangular region. Other profiles may allow a sequence of arbitrary shapes. Text wrapping via the **textArea** element is available as a lightweight and convenient facility for simple text wrapping where a complete box model layout engine is not required. The layout of wrapped text is user agent dependent; thus, content developers need to be aware that there might be different results, particularly with regard to where line breaks occur. The TextArea class wraps every text added by write() or writeline() as **tspan** element. ttextAreacKs’tt|ƒi||dj o|i|ƒn|dj o |d|d<|d|d/opt/alt/python27/lib/python2.7/site-packages/svgwrite/text.pyR¹s   cCs||d/opt/alt/python27/lib/python2.7/site-packages/svgwrite/text.pytline_incrementÄscKs©d|jo|it||ƒn|idƒ}xC|d D]7}|o|it||ƒn|itƒƒqAW|do|it|d|ƒndS(s Add text as **tspan** elements, with extra-params for the **tspan** element. Use the '\\n' character for line breaks. s iÿÿÿÿN(R7RtsplitR0(RRRtlinestline((s>/opt/alt/python27/lib/python2.7/site-packages/svgwrite/text.pyR<Ès   N(RRRRRRR>R<(((s>/opt/alt/python27/lib/python2.7/site-packages/svgwrite/text.pyR8£s  N(Rt svgwrite.baseRtsvgwrite.mixinsRRRtsvgwrite.utilsRRRRRR R!R&R0R8(((s>/opt/alt/python27/lib/python2.7/site-packages/svgwrite/text.pyt s"6 &