manual update

This commit is contained in:
Mattias Andrée 2012-08-22 05:16:32 +02:00
parent c028dd9537
commit 607fafbc3a
2 changed files with 31 additions and 8 deletions

View file

@ -181,6 +181,13 @@ The argument can be a file name, but pony if it ends with @code{.pony}.
Specify the screen column where the message should be wrapped,
this is by default 40, which is inherited from @command{cowsay}.
@item -c
@itemx --compress
@cindex @command{-c}
@cindex @command{--compress}
Compress the message in the same way @command{cowsay} does, that is basically
without multiple spaces, one only paragraphs seperations.
@item -l
@itemx --list
@cindex @command{-l}
@ -346,6 +353,23 @@ Export @code{PONYSAY_TRUNCATE_HEIGHT} with the value @code{yes}, @code{y}
or @code{1}, if you want to truncate the output on the height even if you
are not running @command{ponysay} under TTY.
@item PONYSAY_UCS_ME
@cindex PONYSAY_UCS_ME
@cindex ucs
@cindex universal character set
@cindex unicode
@cindex ascii
Export @code{PONYSAY_UCS_ME} with the value @code{yes}, @code{y} or @code{1},
if you want [simulated] symlink to pony files using Universal Character Set
in their names. Otherwise pony files uses only ASCII. If you want to remove
the ASCII:ised names export @code{PONYSAY_UCS_ME} with the value @code{harder},
@code{h} or @code{2} instead.
If you have not enabled this, UCS names are not usable, suggested or listed.
If you use @code{yes} UCS names will be usable, suggested or listed. If you
use @code{harder} ASCII:ised names will not be suggested or listed, but they
will still be usable.
@item PONYSAY_COWSAY
@itemx PONYSAY_COWTHINK
@cindex PONYSAY_COWSAY

15
ponysay
View file

@ -1639,15 +1639,14 @@ for balloondir in _balloondirs:
usage_saythink = '\033[34;1m(ponysay | ponythink)\033[21;39m'
usage_wrap = '--wrap \033[4mCOLUMN\033[24m'
usage_balloon = '--balloon \033[4mSTYLE\033[24m'
usage_listhelp = '(--list | --altlist | --balloonlist | --version | --help)'
usage_file = '[--pony \033[4mPONY\033[24m]... ([--] \033[4mmessage\033[24m | <<<\033[4mmessage\033[24m)'
usage_quote = '--quote [\033[4mPONY\033[24m...]'
usage_common = '[-c] [-W \033[4mCOLUMN\033[24m] [-b \033[4mSTYLE\033[24m]'
usage_listhelp = '(-l | -L | -B | -v | -h)'
usage_file = '[-f \033[4mPONY\033[24m]... ([--] \033[4mmessage\033[24m | <<<\033[4mmessage\033[24m)'
usage_quote = '-q [\033[4mPONY\033[24m...]'
usage = '%s %s\n%s [%s] [%s] %s\n%s [%s] [%s] %s' % (usage_saythink, usage_listhelp,
usage_saythink, usage_wrap, usage_balloon, usage_file,
usage_saythink, usage_wrap, usage_balloon, usage_quote)
usage = '%s %s\n%s %s %s\n%s %s %s' % (usage_saythink, usage_listhelp,
usage_saythink, usage_common, usage_file,
usage_saythink, usage_common, usage_quote)
usage = usage.replace('\033[', '\0')
for sym in ('[', ']', '(', ')', '|', '...'):