Postscript

class markuptools.Postscript(operators=None)

Postscript session.

Note

The markup resulting from the \postscript markup command is both 0-height and 0-width. Make sure to wrap the \postscript command with a \pad-to-box or \with-dimensions markup command to give it explicit height and width. Likewise, use only positive coordinates in your postscript markup if at all possible. When specifying explicit extents with \pad-to-box or \with-dimensions, negative extents will not be interpreted by LilyPond as resulting in positive height or width, and may have unexpected behavior.

Note

LilyPond will fail to render if any of the font commands are used. To create text, use .show('text') preceded by .scale() or .rotate() to provide the appropriate transformation. .charpath() is also useable. However, .findfont(), .scalefont(), .setfont() will cause LilyPond to error.

>>> postscript = abjad.Postscript()
>>> postscript = postscript.moveto(1, 1)
>>> postscript = postscript.setlinewidth(2.5)
>>> postscript = postscript.setdash((2, 1))
>>> postscript = postscript.lineto(3, -4)
>>> postscript = postscript.stroke()
>>> print(format(postscript))
abjad.Postscript(
    operators=(
        abjad.PostscriptOperator('moveto', 1.0, 1.0),
        abjad.PostscriptOperator('setlinewidth', 2.5),
        abjad.PostscriptOperator('setdash', (2.0, 1.0), 0.0),
        abjad.PostscriptOperator('lineto', 3.0, -4.0),
        abjad.PostscriptOperator('stroke'),
        ),
    )
>>> print(str(postscript))
1 1 moveto
2.5 setlinewidth
[ 2 1 ] 0 setdash
3 -4 lineto
stroke
>>> postscript = abjad.Postscript()
>>> postscript = postscript.newpath()
>>> postscript = postscript.moveto(0, 0)
>>> postscript = postscript.rlineto(0, -10)
>>> postscript = postscript.rlineto(10, 0)
>>> postscript = postscript.rlineto(0, 10)
>>> postscript = postscript.rlineto(-10, 0)
>>> postscript = postscript.closepath()
>>> postscript = postscript.gsave()
>>> postscript = postscript.setrgbcolor(0.5, 1, 0.5)
>>> postscript = postscript.fill()
>>> postscript = postscript.grestore()
>>> postscript = postscript.setrgbcolor(1, 0, 0)
>>> postscript = postscript.setlinewidth(1)
>>> postscript = postscript.stroke()
>>> show(postscript) 

Lineage

digraph InheritanceGraph { graph [background=transparent, bgcolor=transparent, color=lightslategrey, fontname=Arial, outputorder=edgesfirst, overlap=prism, penwidth=2, rankdir=LR, root="__builtin__.object", splines=spline, style="dotted, rounded", truecolor=true]; node [colorscheme=pastel19, fontname=Arial, fontsize=12, penwidth=2, style="filled, rounded"]; edge [color=lightsteelblue2, penwidth=2]; subgraph cluster_abctools { graph [label=abctools]; "abjad.tools.abctools.AbjadObject.AbjadObject" [color=1, group=0, label=AbjadObject, shape=box]; "abjad.tools.abctools.AbjadObject.AbstractBase" [color=1, group=0, label=AbstractBase, shape=box]; "abjad.tools.abctools.AbjadValueObject.AbjadValueObject" [color=1, group=0, label=AbjadValueObject, shape=box]; "abjad.tools.abctools.AbjadObject.AbjadObject" -> "abjad.tools.abctools.AbjadValueObject.AbjadValueObject"; "abjad.tools.abctools.AbjadObject.AbstractBase" -> "abjad.tools.abctools.AbjadObject.AbjadObject"; } subgraph cluster_markuptools { graph [label=markuptools]; "abjad.tools.markuptools.Postscript.Postscript" [color=black, fontcolor=white, group=2, label=<<B>Postscript</B>>, shape=box, style="filled, rounded"]; } subgraph cluster_builtins { graph [label=builtins]; "builtins.object" [color=2, group=1, label=object, shape=box]; } "abjad.tools.abctools.AbjadValueObject.AbjadValueObject" -> "abjad.tools.markuptools.Postscript.Postscript"; "builtins.object" -> "abjad.tools.abctools.AbjadObject.AbstractBase"; }

Bases

Attribute summary

as_markup() Converts postscript to markup.
charpath(text[, modify_font]) Postscript charpath operator.
closepath() Postscript closepath operator.
curveto(x1, y1, x2, y2, x3, y3) Postscript curveto operator.
fill() Postscript fill operator.
findfont(font_name) Postscript findfont operator.
grestore() Postscript grestore operator.
gsave() Postscript gsave operator.
lineto(x, y) Postscript lineto operator.
moveto(x, y) Postscript moveto operator.
newpath() Postscript newpath operator.
operators Gets Postscript operators.
rcurveto(dx1, dy1, dx2, dy2, dx3, dy3) Postscript rcurveto operator.
rlineto(dx, dy) Postscript rlineto operator.
rmoveto(dx, dy) Postscript rmoveto operator.
rotate(degrees) Postscript restore operator.
scale(dx, dy) Postscript scale operator.
scalefont(font_size) Postscript scalefont operator.
setdash([array, offset]) Postscript setdash operator.
setfont() Postscript setfont operator.
setgray(gray_value) Postscript setgray operator.
setlinewidth(width) Postscript setlinewidth operator.
setrgbcolor(red, green, blue) Postscript setrgb operator.
show(text) Postscript show operator.
stroke() Postscript stroke operator.
translate(dx, dy) Postscript translate operator.
__add__(argument) Adds postscript to argument.
__copy__(*arguments) Copies Abjad value object.
__eq__(argument) Is true when all initialization values of Abjad value object equal the initialization values of argument.
__format__([format_specification]) Formats Abjad object.
__hash__() Hashes Abjad value object.
__illustrate__() Illustrates Postscript.
__ne__(argument) Is true when Abjad object does not equal argument.
__radd__(argument) Adds argument to postscript.
__repr__() Gets interpreter representation of Abjad object.
__str__() Gets string representation of Postscript.

Read-only properties

Postscript.operators

Gets Postscript operators.

Returns tuple or none.

Methods

Postscript.as_markup()

Converts postscript to markup.

>>> postscript = abjad.Postscript()
>>> postscript = postscript.newpath()
>>> postscript = postscript.moveto(100, 200)
>>> postscript = postscript.lineto(200, 250)
>>> postscript = postscript.lineto(100, 300)
>>> postscript = postscript.closepath()
>>> postscript = postscript.gsave()
>>> postscript = postscript.setgray(0.5)
>>> postscript = postscript.fill()
>>> postscript = postscript.grestore()
>>> postscript = postscript.setlinewidth(4)
>>> postscript = postscript.setgray(0.75)
>>> postscript = postscript.stroke()
>>> markup = postscript.as_markup()
>>> print(format(markup))
\markup {
    \postscript
        #"
        newpath
        100 200 moveto
        200 250 lineto
        100 300 lineto
        closepath
        gsave
        0.5 setgray
        fill
        grestore
        4 setlinewidth
        0.75 setgray
        stroke
        "
    }

Returns new markup.

Postscript.charpath(text, modify_font=True)

Postscript charpath operator.

>>> postscript = abjad.Postscript()
>>> postscript = postscript.findfont('Times Roman')
>>> postscript = postscript.scalefont(32)
>>> postscript = postscript.setfont()
>>> postscript = postscript.translate(100, 200)
>>> postscript = postscript.rotate(45)
>>> postscript = postscript.scale(2, 1)
>>> postscript = postscript.newpath()
>>> postscript = postscript.moveto(0, 0)
>>> postscript = postscript.charpath('This is text.', True)
>>> postscript = postscript.setlinewidth(0.5)
>>> postscript = postscript.setgray(0.25)
>>> postscript = postscript.stroke()
>>> print(str(postscript))
/Times-Roman findfont
32 scalefont
setfont
100 200 translate
45 rotate
2 1 scale
newpath
0 0 moveto
(This is text.) true charpath
0.5 setlinewidth
0.25 setgray
stroke

Returns new Postscript.

Postscript.closepath()

Postscript closepath operator.

>>> postscript = abjad.Postscript()
>>> postscript = postscript.newpath()
>>> postscript = postscript.moveto(100, 200)
>>> postscript = postscript.lineto(200, 250)
>>> postscript = postscript.lineto(100, 300)
>>> postscript = postscript.closepath()
>>> postscript = postscript.gsave()
>>> postscript = postscript.setgray(0.5)
>>> postscript = postscript.fill()
>>> postscript = postscript.grestore()
>>> postscript = postscript.setlinewidth(4)
>>> postscript = postscript.setgray(0.75)
>>> postscript = postscript.stroke()
>>> print(str(postscript))
newpath
100 200 moveto
200 250 lineto
100 300 lineto
closepath
gsave
0.5 setgray
fill
grestore
4 setlinewidth
0.75 setgray
stroke

Returns new Postscript.

Postscript.curveto(x1, y1, x2, y2, x3, y3)

Postscript curveto operator.

>>> postscript = abjad.Postscript()
>>> postscript = postscript.curveto(0, 1, 1.5, 2, 3, 6)
>>> print(str(postscript))
0 1 1.5 2 3 6 curveto

Returns new Postscript.

Postscript.fill()

Postscript fill operator.

>>> postscript = abjad.Postscript()
>>> postscript = postscript.newpath()
>>> postscript = postscript.moveto(100, 200)
>>> postscript = postscript.lineto(200, 250)
>>> postscript = postscript.lineto(100, 300)
>>> postscript = postscript.closepath()
>>> postscript = postscript.gsave()
>>> postscript = postscript.setgray(0.5)
>>> postscript = postscript.fill()
>>> postscript = postscript.grestore()
>>> postscript = postscript.setlinewidth(4)
>>> postscript = postscript.setgray(0.75)
>>> postscript = postscript.stroke()
>>> print(str(postscript))
newpath
100 200 moveto
200 250 lineto
100 300 lineto
closepath
gsave
0.5 setgray
fill
grestore
4 setlinewidth
0.75 setgray
stroke

Returns new Postscript.

Postscript.findfont(font_name)

Postscript findfont operator.

>>> postscript = abjad.Postscript()
>>> postscript = postscript.findfont('Times Roman')
>>> postscript = postscript.scalefont(12)
>>> postscript = postscript.setfont()
>>> postscript = postscript.newpath()
>>> postscript = postscript.moveto(100, 200)
>>> postscript = postscript.show('This is text.')
>>> print(str(postscript))
/Times-Roman findfont
12 scalefont
setfont
newpath
100 200 moveto
(This is text.) show

Returns new Postscript.

Postscript.grestore()

Postscript grestore operator.

>>> postscript = abjad.Postscript()
>>> postscript = postscript.newpath()
>>> postscript = postscript.moveto(100, 200)
>>> postscript = postscript.lineto(200, 250)
>>> postscript = postscript.lineto(100, 300)
>>> postscript = postscript.closepath()
>>> postscript = postscript.gsave()
>>> postscript = postscript.setgray(0.5)
>>> postscript = postscript.fill()
>>> postscript = postscript.grestore()
>>> postscript = postscript.setlinewidth(4)
>>> postscript = postscript.setgray(0.75)
>>> postscript = postscript.stroke()
>>> print(str(postscript))
newpath
100 200 moveto
200 250 lineto
100 300 lineto
closepath
gsave
0.5 setgray
fill
grestore
4 setlinewidth
0.75 setgray
stroke

Returns new Postscript.

Postscript.gsave()

Postscript gsave operator.

>>> postscript = abjad.Postscript()
>>> postscript = postscript.newpath()
>>> postscript = postscript.moveto(100, 200)
>>> postscript = postscript.lineto(200, 250)
>>> postscript = postscript.lineto(100, 300)
>>> postscript = postscript.closepath()
>>> postscript = postscript.gsave()
>>> postscript = postscript.setgray(0.5)
>>> postscript = postscript.fill()
>>> postscript = postscript.grestore()
>>> postscript = postscript.setlinewidth(4)
>>> postscript = postscript.setgray(0.75)
>>> postscript = postscript.stroke()
>>> print(str(postscript))
newpath
100 200 moveto
200 250 lineto
100 300 lineto
closepath
gsave
0.5 setgray
fill
grestore
4 setlinewidth
0.75 setgray
stroke

Returns new Postscript.

Postscript.lineto(x, y)

Postscript lineto operator.

>>> postscript = abjad.Postscript()
>>> postscript = postscript.moveto(1, 1)
>>> postscript = postscript.lineto(3, -4)
>>> postscript = postscript.stroke()
>>> print(str(postscript))
1 1 moveto
3 -4 lineto
stroke

Returns new Postscript.

Postscript.moveto(x, y)

Postscript moveto operator.

>>> postscript = abjad.Postscript()
>>> postscript = postscript.moveto(1, 1)
>>> postscript = postscript.lineto(3, -4)
>>> postscript = postscript.stroke()
>>> print(format(postscript))
abjad.Postscript(
    operators=(
        abjad.PostscriptOperator('moveto', 1.0, 1.0),
        abjad.PostscriptOperator('lineto', 3.0, -4.0),
        abjad.PostscriptOperator('stroke'),
        ),
    )
>>> print(str(postscript))
1 1 moveto
3 -4 lineto
stroke

Returns new Postscript.

Postscript.newpath()

Postscript newpath operator.

>>> postscript = abjad.Postscript()
>>> postscript = postscript.newpath()
>>> postscript = postscript.moveto(100, 200)
>>> postscript = postscript.lineto(200, 250)
>>> postscript = postscript.lineto(100, 300)
>>> postscript = postscript.closepath()
>>> postscript = postscript.gsave()
>>> postscript = postscript.setgray(0.5)
>>> postscript = postscript.fill()
>>> postscript = postscript.grestore()
>>> postscript = postscript.setlinewidth(4)
>>> postscript = postscript.setgray(0.75)
>>> postscript = postscript.stroke()
>>> print(str(postscript))
newpath
100 200 moveto
200 250 lineto
100 300 lineto
closepath
gsave
0.5 setgray
fill
grestore
4 setlinewidth
0.75 setgray
stroke

Returns new Postscript.

Postscript.rcurveto(dx1, dy1, dx2, dy2, dx3, dy3)

Postscript rcurveto operator.

>>> postscript = abjad.Postscript()
>>> postscript = postscript.rcurveto(0, 1, 1.5, 2, 3, 6)
>>> print(str(postscript))
0 1 1.5 2 3 6 rcurveto

Returns new Postscript.

Postscript.rlineto(dx, dy)

Postscript rlineto operator.

>>> postscript = abjad.Postscript()
>>> postscript = postscript.rmoveto(1, 1)
>>> postscript = postscript.rlineto(3, -4)
>>> postscript = postscript.stroke()
>>> print(format(postscript))
abjad.Postscript(
    operators=(
        abjad.PostscriptOperator('rmoveto', 1.0, 1.0),
        abjad.PostscriptOperator('rlineto', 3.0, -4.0),
        abjad.PostscriptOperator('stroke'),
        ),
    )
>>> print(str(postscript))
1 1 rmoveto
3 -4 rlineto
stroke

Returns new Postscript.

Postscript.rmoveto(dx, dy)

Postscript rmoveto operator.

>>> postscript = abjad.Postscript()
>>> postscript = postscript.rmoveto(1, 1)
>>> postscript = postscript.rlineto(3, -4)
>>> postscript = postscript.stroke()
>>> print(format(postscript))
abjad.Postscript(
    operators=(
        abjad.PostscriptOperator('rmoveto', 1.0, 1.0),
        abjad.PostscriptOperator('rlineto', 3.0, -4.0),
        abjad.PostscriptOperator('stroke'),
        ),
    )
>>> print(str(postscript))
1 1 rmoveto
3 -4 rlineto
stroke

Returns new Postscript.

Postscript.rotate(degrees)

Postscript restore operator.

>>> postscript = abjad.Postscript()
>>> postscript = postscript.findfont('Times Roman')
>>> postscript = postscript.scalefont(32)
>>> postscript = postscript.setfont()
>>> postscript = postscript.translate(100, 200)
>>> postscript = postscript.rotate(45)
>>> postscript = postscript.scale(2, 1)
>>> postscript = postscript.newpath()
>>> postscript = postscript.moveto(0, 0)
>>> postscript = postscript.charpath('This is text.', True)
>>> postscript = postscript.setlinewidth(0.5)
>>> postscript = postscript.setgray(0.25)
>>> postscript = postscript.stroke()
>>> print(str(postscript))
/Times-Roman findfont
32 scalefont
setfont
100 200 translate
45 rotate
2 1 scale
newpath
0 0 moveto
(This is text.) true charpath
0.5 setlinewidth
0.25 setgray
stroke

Returns new Postscript.

Postscript.scale(dx, dy)

Postscript scale operator.

>>> postscript = abjad.Postscript()
>>> postscript = postscript.findfont('Times Roman')
>>> postscript = postscript.scalefont(32)
>>> postscript = postscript.setfont()
>>> postscript = postscript.translate(100, 200)
>>> postscript = postscript.rotate(45)
>>> postscript = postscript.scale(2, 1)
>>> postscript = postscript.newpath()
>>> postscript = postscript.moveto(0, 0)
>>> postscript = postscript.charpath('This is text.', True)
>>> postscript = postscript.setlinewidth(0.5)
>>> postscript = postscript.setgray(0.25)
>>> postscript = postscript.stroke()
>>> print(str(postscript))
/Times-Roman findfont
32 scalefont
setfont
100 200 translate
45 rotate
2 1 scale
newpath
0 0 moveto
(This is text.) true charpath
0.5 setlinewidth
0.25 setgray
stroke

Returns new Postscript.

Postscript.scalefont(font_size)

Postscript scalefont operator.

>>> postscript = abjad.Postscript()
>>> postscript = postscript.findfont('Times Roman')
>>> postscript = postscript.scalefont(12)
>>> postscript = postscript.setfont()
>>> postscript = postscript.newpath()
>>> postscript = postscript.moveto(100, 200)
>>> postscript = postscript.show('This is text.')
>>> print(str(postscript))
/Times-Roman findfont
12 scalefont
setfont
newpath
100 200 moveto
(This is text.) show

Returns new Postscript.

Postscript.setdash(array=None, offset=0)

Postscript setdash operator.

>>> postscript = abjad.Postscript().setdash([2, 1], 3)
>>> print(format(postscript))
abjad.Postscript(
    operators=(
        abjad.PostscriptOperator('setdash', (2.0, 1.0), 3.0),
        ),
    )
>>> print(str(postscript))
[ 2 1 ] 3 setdash
>>> postscript = abjad.Postscript().setdash()
>>> print(format(postscript))
abjad.Postscript(
    operators=(
        abjad.PostscriptOperator('setdash', (), 0.0),
        ),
    )
>>> print(str(postscript))
[ ] 0 setdash

Returns new Postscript.

Postscript.setfont()

Postscript setfont operator.

>>> postscript = abjad.Postscript()
>>> postscript = postscript.findfont('Times Roman')
>>> postscript = postscript.scalefont(12)
>>> postscript = postscript.setfont()
>>> postscript = postscript.newpath()
>>> postscript = postscript.moveto(100, 200)
>>> postscript = postscript.show('This is text.')
>>> print(str(postscript))
/Times-Roman findfont
12 scalefont
setfont
newpath
100 200 moveto
(This is text.) show

Returns new Postscript.

Postscript.setgray(gray_value)

Postscript setgray operator.

>>> postscript = abjad.Postscript()
>>> postscript = postscript.newpath()
>>> postscript = postscript.moveto(100, 200)
>>> postscript = postscript.lineto(200, 250)
>>> postscript = postscript.lineto(100, 300)
>>> postscript = postscript.closepath()
>>> postscript = postscript.gsave()
>>> postscript = postscript.setgray(0.5)
>>> postscript = postscript.fill()
>>> postscript = postscript.grestore()
>>> postscript = postscript.setlinewidth(4)
>>> postscript = postscript.setgray(0.75)
>>> postscript = postscript.stroke()
>>> print(str(postscript))
newpath
100 200 moveto
200 250 lineto
100 300 lineto
closepath
gsave
0.5 setgray
fill
grestore
4 setlinewidth
0.75 setgray
stroke

Returns new Postscript.

Postscript.setlinewidth(width)

Postscript setlinewidth operator.

>>> postscript = abjad.Postscript()
>>> postscript = postscript.moveto(1, 1)
>>> postscript = postscript.setlinewidth(2.5)
>>> postscript = postscript.lineto(3, -4)
>>> postscript = postscript.stroke()
>>> print(format(postscript))
abjad.Postscript(
    operators=(
        abjad.PostscriptOperator('moveto', 1.0, 1.0),
        abjad.PostscriptOperator('setlinewidth', 2.5),
        abjad.PostscriptOperator('lineto', 3.0, -4.0),
        abjad.PostscriptOperator('stroke'),
        ),
    )
>>> print(str(postscript))
1 1 moveto
2.5 setlinewidth
3 -4 lineto
stroke

Returns new Postscript.

Postscript.setrgbcolor(red, green, blue)

Postscript setrgb operator.

>>> postscript = abjad.Postscript()
>>> postscript = postscript.newpath()
>>> postscript = postscript.moveto(100, 100)
>>> postscript = postscript.rlineto(0, 100)
>>> postscript = postscript.rlineto(100, 0)
>>> postscript = postscript.rlineto(0, -100)
>>> postscript = postscript.rlineto(-100, 0)
>>> postscript = postscript.closepath()
>>> postscript = postscript.gsave()
>>> postscript = postscript.setrgbcolor(0.5, 1, 0.5)
>>> postscript = postscript.fill()
>>> postscript = postscript.grestore()
>>> postscript = postscript.setrgbcolor(1, 0, 0)
>>> postscript = postscript.setlinewidth(4)
>>> postscript = postscript.stroke()
>>> print(str(postscript))
newpath
100 100 moveto
0 100 rlineto
100 0 rlineto
0 -100 rlineto
-100 0 rlineto
closepath
gsave
0.5 1 0.5 setrgbcolor
fill
grestore
1 0 0 setrgbcolor
4 setlinewidth
stroke

Returns new Postscript.

Postscript.show(text)

Postscript show operator.

>>> postscript = abjad.Postscript()
>>> postscript = postscript.findfont('Times Roman')
>>> postscript = postscript.scalefont(12)
>>> postscript = postscript.setfont()
>>> postscript = postscript.newpath()
>>> postscript = postscript.moveto(100, 200)
>>> postscript = postscript.show('This is text.')
>>> print(str(postscript))
/Times-Roman findfont
12 scalefont
setfont
newpath
100 200 moveto
(This is text.) show

Returns new Postscript.

Postscript.stroke()

Postscript stroke operator.

>>> postscript = abjad.Postscript()
>>> postscript = postscript.lineto(3, -4)
>>> postscript = postscript.stroke()
>>> print(format(postscript))
abjad.Postscript(
    operators=(
        abjad.PostscriptOperator('lineto', 3.0, -4.0),
        abjad.PostscriptOperator('stroke'),
        ),
    )
>>> print(str(postscript))
3 -4 lineto
stroke

Returns new Postscript.

Postscript.translate(dx, dy)

Postscript translate operator.

>>> postscript = abjad.Postscript()
>>> postscript = postscript.findfont('Times Roman')
>>> postscript = postscript.scalefont(32)
>>> postscript = postscript.setfont()
>>> postscript = postscript.translate(100, 200)
>>> postscript = postscript.rotate(45)
>>> postscript = postscript.scale(2, 1)
>>> postscript = postscript.newpath()
>>> postscript = postscript.moveto(0, 0)
>>> postscript = postscript.charpath('This is text.', True)
>>> postscript = postscript.setlinewidth(0.5)
>>> postscript = postscript.setgray(0.25)
>>> postscript = postscript.stroke()
>>> print(str(postscript))
/Times-Roman findfont
32 scalefont
setfont
100 200 translate
45 rotate
2 1 scale
newpath
0 0 moveto
(This is text.) true charpath
0.5 setlinewidth
0.25 setgray
stroke

Returns new Postscript.

Special methods

Postscript.__add__(argument)

Adds postscript to argument.

Returns new postscript.

(AbjadValueObject).__copy__(*arguments)

Copies Abjad value object.

Returns new Abjad value object.

(AbjadValueObject).__eq__(argument)

Is true when all initialization values of Abjad value object equal the initialization values of argument.

Returns true or false.

(AbjadObject).__format__(format_specification='')

Formats Abjad object.

Set format_specification to ‘’ or ‘storage’. Interprets ‘’ equal to ‘storage’.

Returns string.

(AbjadValueObject).__hash__()

Hashes Abjad value object.

Returns integer.

Postscript.__illustrate__()

Illustrates Postscript.

Returns LilyPond file.

(AbjadObject).__ne__(argument)

Is true when Abjad object does not equal argument. Otherwise false.

Returns true or false.

Postscript.__radd__(argument)

Adds argument to postscript.

Returns new postscript.

(AbjadObject).__repr__()

Gets interpreter representation of Abjad object.

Returns string.

Postscript.__str__()

Gets string representation of Postscript.

Return string.