Article View: news.software.readers
Article #61354Re: X-Face viewer for slrn for terminals - X-Face2ASCII?
From: John Kodis
Date: Mon, 08 May 2000 00:00
Date: Mon, 08 May 2000 00:00
35 lines
1991 bytes
1991 bytes
Previously, Sven Guckes wrote:
>Now, if this program could generate output in ASCII... Can you do it?
>I would not mind if I had to pipe the current header (is there a
>command for this yet?) to an external program for this.
>
>Think about it: setkey article "\eF" "|x-face2ascii\n"
I hacked up a little script to do just that. Pipe an article in, and
either an xv window or an ascii version of the x-face will appear.
This relies heavily on several external converters and viewers, so may
not work on more spartan installations.
-- John Kodis.
#! /bin/sh
if [ -z "$VIEWER" ]; then
if [ -z "$DISPLAY" ]; then
VIEWER=pbmtoascii
else
VIEWER='xv -expand 2 -smooth -'
fi
fi
( echo '/* Format_version=1, Valid_bits_per_item=16,'
echo ' Width=48, Height=48, Depth=1 */'
perl -n -e '!$& &&
/^X-Face:/i .. !(/^X-Face:/i && print $'\'' or /^\s/ && print)' |
uncompface - ) |
icontopbm | $VIEWER
Technical Details
Message-ID:
<AFB8AC26722FECB3.AD4DB25E51CAF27C.76A61946FA0B2848@lp.airnews.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mailReferences:
<slrn8e8p1s.p4m.dave@svarozic.srce.hr> <slrn8e99ml.pk5.dave@svarozic.srce.hr> <38ea7eb5.17822581@soy-del-solar> <slrn8eh129.2ol.dave@svarozic.srce.hr> <2000-04-11T14-46-20@guckes.net>Show Full Headers
Complete Article Headers
Message-ID: <AFB8AC26722FECB3.AD4DB25E51CAF27C.76A61946FA0B2848@lp.airnews.net> Subject: Re: X-Face viewer for slrn for terminals - X-Face2ASCII? Date: Mon, 08 May 2000 00:00:00 +0000 From: kodis@jagunet.com (John Kodis) References: <slrn8e8p1s.p4m.dave@svarozic.srce.hr> <slrn8e99ml.pk5.dave@svarozic.srce.hr> <38ea7eb5.17822581@soy-del-solar> <slrn8eh129.2ol.dave@svarozic.srce.hr> <2000-04-11T14-46-20@guckes.net> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail X-Deja-AN: 620873897 X-Orig-Message-ID: <slrn8heinr.2u2.kodis@kodis.jagunet.com> NNTP-Posting-Time: Mon May 8 18:17:15 2000 Organization: Jagunet Access Services (using Airnews.net!) NNTP-Proxy-Relay: library2.airnews.net User-Agent: slrn/0.9.6.2 (Linux) Abuse-Reports-To: abuse at jagunet.com to report improper postings Newsgroups: news.software.readers