No description
Find a file
2013-07-29 21:45:30 +02:00
completion Fixed -* list args, bash completion, zsh balloon completion 2013-04-03 15:41:21 +02:00
pngs Re-generated the pngs 2013-04-07 13:15:00 +02:00
quotes Added quote aliases 2013-04-06 19:16:47 +02:00
.gitignore Added a proper setup.py 2013-07-29 19:56:31 +02:00
COPYING Added a proper setup.py 2013-07-29 19:56:31 +02:00
extrapony-wishlist Added alitle of mor whishlist 2013-01-26 01:46:25 -03:00
Makefile Added a proper setup.py 2013-07-29 19:56:31 +02:00
pony-checklist Rewrite completed. <100lines. 2013-03-31 21:01:13 +02:00
ponysay Added a proper setup.py 2013-07-29 19:56:31 +02:00
ponysay-qotd Added a proper setup.py 2013-07-29 19:56:31 +02:00
ponysay.py Now using pkg_resources for resource access 2013-07-29 21:45:30 +02:00
ponystorm.py Made it installable. Also: Fixes! 2013-04-01 01:51:53 +02:00
ponythink Added a proper setup.py 2013-07-29 19:56:31 +02:00
README.md Added quote aliases 2013-04-06 19:16:47 +02:00
setup.py Now using pkg_resources for resource access 2013-07-29 21:45:30 +02:00
termcenter Added a proper setup.py 2013-07-29 19:56:31 +02:00
TODO Added a proper setup.py 2013-07-29 19:56:31 +02:00

ponysay — cowsay with ponies

Derp

<3 ./ponysay.py --help
usage: ponysay.py [-h] [-p PONY] [-q] [-c] [-C] [-w WIDTH] [-b BALLOON]
                  [text [text ...]]

Cowsay with ponies

positional arguments:
  text                  The text to be placed in the speech bubble

optional arguments:
  -h, --help            show this help message and exit
  -p PONY, --pony PONY  The name of the pony to be used. Use "-p list" to list
                        all ponies, "-p random" (default) to use a random
                        pony.
  -q, --quote           Use a random quote of the pony being displayed as text
  -c, --center          Use a random quote of the pony being displayed as text
  -C, --center-text     Center the text in the bubble
  -w WIDTH, --width WIDTH
                        Terminal width. Use 0 for unlimited width. Default:
                        autodetect
  -b BALLOON, --balloon BALLOON
                        Balloon style to use. Use "-b list" to list available
                        styles.

This is my fork of https://github.com/erkin/ponysay I really liked the concept, but I sort-of WTF-ed at the 2458-line python script powering it. So I rewrote the thing from scratch in actual python (not that bad since most of the work is done by util-say). Also, I missed a "--center"-option, so I added one. This rewrite is 117 lines long, and that includes the 7 original bubble styles which now are embedded in the python script. This means 95.2% less bloat, which I consider a success. Also, the rewrite is about 50-85% faster.

Fork me on github: https://github.com/jaseg/ponysay

FAQ

Q: The output looks like a mess in TTY/PuTTY/other

A: Yeah, sorry. If you find a fix, send me a pull request.

Q: Which programs do you use to generate the pony files?

A: The pony files are actually mostly a bunch of selected browser ponies, converted using util-say.

Conversion

Convert the old quote format with

for line in $(cat ponyquotes/ponies|grep +); do n=${line%%+*}; for a in $(sed s/+/\\n/g<<<${line#*+}); do ln -s quotes/${n}.quotes quotes/${a}.quotes; done; done

Afterwards, clean up the broken symlinks with find -L quotes -type l -delete