🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #10504

Re: Proposal: "Good Net-Keeping Seal" for Usenet software

#10504
From: Alan Barrett
Date: Mon, 01 Aug 1994 07:44
47 lines
2604 bytes
In article <31hivu$3eq@mercury.mcs.com>,
supercat@MCS.COM (John Payson) writes:
> State A: (default)
>   Read a line
>   If under 79 characters, output it followed by newline.  Stay in state A.
>   Else Output the words that fit, newline, then the rest (no newline).  Go to
>     state B.
> 
> State B:
>   Read a line.  Strip leading blanks.
>   If under 60 characters, output it (breaking if necessary) followed by
>     a newline.  Go to state A.
>   Else Output it (breaking if nessary), no newline, stay in state B.
> 
> Not perfect, but it will work in almost all cases

This must be some new use of the term "almost all" with which I was not
previously familiar.

Your algorithm will convert input like this:

>> : >> ]>> State B:
>> : >> ]>>   Read a line.  Strip leading blanks.
>> : >> ]>>   If under 60 characters, output it (breaking if necessary) followed by
>> : >> ]>>     a newline.  Go to state A.
>> : >> ]>>   Else Output it (breaking if nessary), no newline, stay in state B.

into output like this:

>> : >> ]>> State B:
>> : >> ]>>   Read a line.  Strip leading blanks.
>> : >> ]>>   If under 60 characters, output it (breaking if necessary)
followed by >> : >> ]>>     a newline.  Go to state A.
>> : >> ]>>   Else Output it (breaking if nessary), no newline, stay in state
B.

whereas output like this would be much better:

>> : >> ]>> State B:
>> : >> ]>>   Read a line.  Strip leading blanks.
>> : >> ]>>   If under 60 characters, output it (breaking if necessary)
>> : >> ]>>    followed by a newline.  Go to state A.
>> : >> ]>>   Else Output it (breaking if nessary), no newline, stay in
>> : >> ]>>    state B.

--apb (Alan Barrett)
Technical Details
Message-ID: <31i95d$3aq@lucy.ee.und.ac.za>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.admin.policy.mbox.zip!bga.com!news.sprintlink.net!hookup!nntp.cs.ubc.ca!psgrain!quagga.ru.ac.za!ee.und.ac.za!tplinfm
References: <1994Jul26.042000.10850@news.media.mit.edu> <1994Jul27.141102.29317@chemabs.uucp> <31a145$olk@panix3.panix.com> <31hivu$3eq@mercury.mcs.com>

Show Full Headers
Complete Article Headers
Message-ID: <31i95d$3aq@lucy.ee.und.ac.za>
Subject: Re: Proposal: "Good Net-Keeping Seal" for Usenet software
Date: Mon, 01 Aug 1994 07:44:45 +0000
From: barrett@lucy.ee.und.ac.za (Alan Barrett)
References: <1994Jul26.042000.10850@news.media.mit.edu> <1994Jul27.141102.29317@chemabs.uucp> <31a145$olk@panix3.panix.com> <31hivu$3eq@mercury.mcs.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.admin.policy.mbox.zip!bga.com!news.sprintlink.net!hookup!nntp.cs.ubc.ca!psgrain!quagga.ru.ac.za!ee.und.ac.za!tplinfm
Newsgroups: news.admin.misc,news.admin.policy,news.software.readers
Organization: Elec. Eng., Univ. Natal, Durban, S. Africa
Lines: 46
NNTP-Posting-Host: lucy.ee.und.ac.za