[wp-hackers] ASCII Menu Art

Roy Schestowitz r at schestowitz.com
Tue Jul 25 17:59:04 GMT 2006


___/ On Tue 25 Jul 2006 14:44:11 BST, [ Rob Miller ] wrote : \___

> Mike Wendell wrote:
>> Wouldn't the bit that does the combining of hyphens muck that up
>> though? (I haven't had my coffee yet today.  I can't think of the name
>> of the bit that does that.)
>>
> wptexturize and yes.
>
> I normally just do:
>
> + Top
> ++ Sub
> +++ Sub-Sub
> ++ Sub 2
> +++ Sub-Sub 2
> +++ Sub-Sub 3
>
> although I hardly think it's a big deal.

I  don't know about WordPress-specific tools, but there  are
many  command-line  utilities to simplify the  rendering  of
ASCII  art. Have a look at freshmeat.net as they will almost
definitely  be something there. Here, for example, is a  use
of  a script (binary) called boxes, as well as a Perl script
called paradj.

,----[ indent.sh ]
| cboard=`dcop klipper klipper getClipboardContents`
| echo $cboard > ~/in
| perl ~/Main/Programs/paradj/paradj.pl --width=60  -n -b ~/in > ~/med
| boxes               -d whirly           ~/med > ~/out
| dcop klipper klipper setClipboardContents "$(cat ~/out)"
`----

Applying this chain to the former part of this reply I get:


.+"+.+"+.+"+.+"+.+"+.+"+.+"+.+"+.+"+.+"+.+"+.+"+.+"+.+"+.+"+.+"+.+"+.
( .+"+.+"+.+"+.+"+.+"+.+"+.+"+.+"+.+"+.+"+.+"+.+"+.+"+.+"+.+"+.+"+.   )
)( I don't know about WordPress-specific tools, but there are       (
( )  )many command-line utilities to simplify the rendering of        )
)(  (  ASCII art. Have a look at freshmeat.net as  they  will       (
( almost  ) )definitely be something there. Here, for example,        )
)is a use ( ( of a script (binary) called boxes, as well as a       (
( Perl     script     )    )called    paradj.    (     (     )        )
)"+.+"+.+"+.+"+.+"+.+"+.+"+.+"+.+"+.+"+.+"+.+"+.+"+.+"+.+"+.+"+.+"  (
(                                                                     )
"+.+"+.+"+.+"+.+"+.+"+.+"+.+"+.+"+.+"+.+"+.+"+.+"+.+"+.+"+.+"+.+"+.+"

There are many more such toy scripts. Try 'ascii menu' under Freshmeat.

Best wishes,

Roy

-- 
Roy S. Schestowitz
http://Schestowitz.com  |  GNU is Not UNIX  |     PGP-Key: 0x74572E8E
roy      pts/8                         Tue Jul 25 18:48   still logged in
      http://iuron.com - proposing a non-profit search engine



More information about the wp-hackers mailing list