🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #12332

Re: Netscape features, anomolies and bugs

#12332
From: Steven King, Software Archaeolog...
Date: Wed, 02 Nov 1994 20:28
61 lines
3115 bytes
dhartung@MCS.COM (Daniel Hartung) publicly declared:

>What about a newsreader that's smart enough to reformat paragraphs?
>Even with a line of > brackets on the left.  Hasn't anybody thought of
>that?

Yup, people have thought about it.  And periodically we have a religious
war between the people who want to place that responsibility on the
reader, and the people who want to place it on the writer.

Always placing the burden on the reader is troublesome.  You have to be
able to differentiate paragraphs from

    + bulletted
    + lines
    + of text

    And     | Things
    ========+===========
    like    | these
    fancy   | tables
    that    | those
    pesky   | users

seem to like putting in their articles.  Without universally applied
standards (something like, say, HTML) you either have to put a whole
lot of smarts into the reader, or you end up mangling a whole lot of
articles.

For myself, I use the 'par' program and a trn macro to reformat articles
if they're formatted in an ugly way.  'Par' is a lot like the standard
Unix 'fmt' program, but a bit smarter and actually handles quoted lines
properly.  Still, for as smart as it is, par chews up tables and lists
beyond recognition.  That's why I only invoke it when I think it'd make
the article easier to read.

How can you do this?  First, get 'par'.  Check archie for its
location, or (as a last resort!) write the author: Adam M. Costello
<amc@ecl.wustl.edu>.  Second, copy this little script to somewhere in
your path and call it "do-format":

    #! /bin/sh
    
    export PARBODY;  PARBODY="._A_a"
    export PARQUOTE; PARQUOTE="_s>|"
    export PARINIT;  PARINIT="72Rgqrh"
    
    expand | par

Third and last, create a ".rnmac" file with the following line:

    L       w|do-format|less\n

Now when you're reading an article in trn, press the "L" key.  Trn will
pipe the body of the article to "do-format", which uses "par" to
reformat the paragraphs.

-- 
----------------------------------------------<Steven King, king@cig.mot.com>--
                               Member of EAGA:
                    Engineers Against Gratuitous Acronyms
Technical Details
Message-ID: <398sq6$a11@delphinium.cig.mot.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!bga.com!news.sprintlink.net!howland.reston.ans.net!math.ohio-state.edu!news3.acns.nwu.edu!ftpbox!mothost!delphinium.cig.mot.com!wildebeest!king
References: <37k3bq$7uj@gold.interlog.com> <38qtr3$6ti@gold.interlog.com> <1994Oct28.172322.22062@midway.uchicago.edu> <3937e7$4dc@Mars.mcs.com>

Show Full Headers
Complete Article Headers
Message-ID: <398sq6$a11@delphinium.cig.mot.com>
Subject: Re: Netscape features, anomolies and bugs
Date: Wed, 02 Nov 1994 20:28:54 +0000
From: king@wildebeest.cig.mot.com (Steven King, Software Archaeologist)
References: <37k3bq$7uj@gold.interlog.com> <38qtr3$6ti@gold.interlog.com> <1994Oct28.172322.22062@midway.uchicago.edu> <3937e7$4dc@Mars.mcs.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!bga.com!news.sprintlink.net!howland.reston.ans.net!math.ohio-state.edu!news3.acns.nwu.edu!ftpbox!mothost!delphinium.cig.mot.com!wildebeest!king
Newsgroups: news.software.readers
Organization: Cellular Infrastructure Group, Motorola
Lines: 61
Reply-To: king@wildebeest.cig.mot.com
NNTP-Posting-Host: wildebeest.rtsg.mot.com