Article View: news.software.nn
Article #5981Re: Sending HTML posts to your browser from your newsreader
From: Nancy McGough
Date: Wed, 15 Jun 1994 20:23
Date: Wed, 15 Jun 1994 20:23
65 lines
2922 bytes
2922 bytes
>In <boutellCqzyDy.ECK@netcom.com> boutell@netcom.com (Thomas Boutell) writes:
>> Oftentimes, folks post HTML to newsgroups, or at least post messages
>> with a little bit of HTML (say, a few <A HREF... tags) in it.
dls@netcom.com (Daniel L Smith) writes:
> I just wrote an nn macro, to go in your ~/.nn/init.
>I assume a ~/text directory. There are undoubtedly more elegant ways
>to do this... Enjoy!
>
> Daniel
>
># ^f: follow links by invoking lynx...
>map show ^f (
> :!rm ~/text/lynx-article ~/text/lynx-article.html 2>&1 > /dev/null
> save-full "~/text/lynx-article"
> :!echo '<BODY>' > ~/text/lynx-article.html
> :!echo '<TITLE>'News Posting'</TITLE>' >> ~/text/lynx-article.html
> :!echo '<H1>'$F - Article $N'</H1>' >> ~/text/lynx-article.html
> :!echo '<PRE>' >> ~/text/lynx-article.html
> :!cat ~/text/lynx-article >> ~/text/lynx-article.html
> :!echo '</PRE>' >> ~/text/lynx-article.html
> :!echo '</BODY>' >> ~/text/lynx-article.html
> :!lynx ~/text/lynx-article.html < /dev/tty
> redraw
>)
This nn macro works fine but I prefer using one that just
calls a script. That way you can use the script with other
things like Elm. Here's what I'm doing:
---begin excerpt of ~/.nn/init---
map show ^f (
save-full "|lynxify"
redraw
)
---end excerpt of ~/.nn/init---
And lynxify is sitting in my ~/Bin:
---begin lynxify---
#!/bin/sh
# Author: Dr. Richard Botting <rbotting@wiley.csusb.edu>
# Posted to comp.infosystems.www.users on 9 June 94
# Prepare input with embedded html tags for lynx and then view it
file=/tmp/mailynx.${$}.html
(echo "<pre>" ; cat ; echo "</pre>" )> $file
lynx $file < /dev/tty
rm $file
---end lynxify---
So now as well as using it in nn with ^f I can use it in
Elm by typing "|lynxify" or from the Unix prompt by typing
"cat filename |lynxify".
Enjoy,
Nancy
--
<A HREF="ftp://ftp.ii.com/pub/ii">Nancy McGough, Infinite Ink</A>
Technical Details
Message-ID:
<2tno02$rb4@nwfocus.wa.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.mail.elm.mbox.zip!nntp.gmd.de!Germany.EU.net!EU.net!howland.reston.ans.net!europa.eng.gtefsd.com!sundog.tiac.net!news.sprintlink.net!nwnexus!usenetReferences:
<boutellCqzyDy.ECK@netcom.com> <dlsCr650F.I0z@netcom.com>Show Full Headers
Complete Article Headers
Message-ID: <2tno02$rb4@nwfocus.wa.com> Subject: Re: Sending HTML posts to your browser from your newsreader Date: Wed, 15 Jun 1994 20:23:30 +0000 From: Nancy McGough <nancym@ii.com> References: <boutellCqzyDy.ECK@netcom.com> <dlsCr650F.I0z@netcom.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.mail.elm.mbox.zip!nntp.gmd.de!Germany.EU.net!EU.net!howland.reston.ans.net!europa.eng.gtefsd.com!sundog.tiac.net!news.sprintlink.net!nwnexus!usenet Newsgroups: comp.infosystems.www.users,news.software.nn,comp.mail.elm Organization: Infinite Ink, Seattle, Washington, USA Lines: 64 Reply-To: Nancy McGough <nancym@ii.com> NNTP-Posting-Host: coho.halcyon.com X-Newsreader: NN [version 6.4.18]