Next: , Previous: Pony quote infrastructure, Up: Inner workings   [Contents][Index]


12.4 Balloon style files

Balloon style files are located in the directory balloons/, the ones ending with .say applies to ponysay and the ones ending with .think applies to ponythink.

Balloon style consists of 20 strings. Each string is defined on separate lines, by their name and their value separated with a colon (name:value), if the name is empty it continues the last one on a new line in the value. Only 10 of the strings may be multi-lined: nw, nnw, n, nne, ne, sw, ssw, s, sse and se.

The following strings are used, and must be defined in the files:

\

The character for the link to the balloon directed as \.

/

The character for the link to the balloon directed as /.

ww

The beginning of the balloon’s line where the message is located if and only if the message contains only one line.

ee

The end of the balloon’s line where the message is located if and only if the message contains only one line.

nw

The top left corner of the balloon.

nnw

If both this string and the nne string fits between the top corners, this is printed directly to the right of the top left corner.

n

The top edge of the balloon.

nne

If both this string and the nnw string fits between the top corners, this is printed directly to the right of the top left corner.

ne

The top right corner of the balloon.

nee

The end of the balloon’s line where the message’s first line is located if and only if the message contains more than one line.

e

The right edge of the balloon.

see

The end of the balloon’s line where the message’s last line is located if and only if the message contains more than one line.

se

The bottom right corner of the balloon.

sse

If both this string and the ssw string fits between the bottom corners, this is printed directly to the left of the bottom right corner.

s

The bottom edge of the balloon.

ssw

If both this string and the sse string fits between the bottom corners, this is printed directly to the right of the bottom left corner.

sw

The bottom left corner of the balloon.

sww

The beginning of the balloon’s line where the message’s last line is located if and only if the message contains more than one line.

w

The left edge of the balloon.

nww

The beginning of the balloon’s line where the message’s first line is located if and only if the message contains more than one line.


Next: , Previous: Pony quote infrastructure, Up: Inner workings   [Contents][Index]