| Commands for Format |
| bold | <text> |
Returns <text> bolded. |
| capitalize | <text> |
Returns <text> lowercased. |
| color | <foreground> [<background>] <text> |
Returns <text> with foreground color <foreground> and background color <background> (if given) |
| concat | <string 1> <string 2> |
Concatenates two strings. Do keep in mind that this is *not* the same thing as join "", since if <string 2> contains spaces, they won't be removed by concat. |
| cut | <size> <text> |
Cuts <text> down to <size> by chopping off the rightmost characters in excess of <size>. If <size> is a negative number, it chops that many characters off the end of <text>. |
| field | <number> <text> |
Returns the <number>th space-separated field of <text>. I.e., if text is "foo bar baz" and <number> is 2, "bar" is returned. |
| format | <format string> [<arg> ...] |
Expands a Python-style format string using the remaining args. Just be sure always to use %s, not %d or %f or whatever, because all the args are strings. |
| join | <separator> <string 1> [<string> ...] |
Joins all the arguments together with <separator>. |
| lower | <text> |
Returns <text> lowercased. |
| repr | <text> |
Returns the text surrounded by double quotes. |
| reverse | <text> |
Returns <text> in reverse-video. |
| title | <text> |
Returns <text> lowercased. |
| translate | <chars to translate> <chars to replace those with> <text> |
Replaces <chars to translate> with <chars to replace those with> in <text>. The first and second arguments must necessarily be the same length. |
| underline | <text> |
Returns <text> underlined. |
| upper | <text> |
Returns <text> uppercased. |