🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #60072

Re: tin: Wrap (un)quoted text before quoting?

#60072
From: J. B. Moreno
Date: Mon, 03 Apr 2000 00:00
82 lines
5103 bytes
<greg@apple2.com> wrote:

> planb@newsreaders.com (J. B. Moreno) wrote:
> 
> > the wrapping library I wrote (available from the GNKSA tools page) 
> > has a function which might be suitable, pass it the body of the 
> > message and it will quote and wrap individual lines (i.e. it doesn't
> > do a paragraph fill, but that's a more dangerous action to do 
> > automatically)
> 
> Isn't that one of the problems **p points to in his complaint about line
> lengths?  Without a paragraph fill (if I'm understanding the term right)
> the solution can be worse than the problem.
> 
> This rewrapping really should not be performed unless 79/80 columns is
> exceeded.  If the GNKSA says lines, including quoted lines at their 
> quoted length, must not exceed 72 columns, I'd say the GNKSA has 
> overstepped its bounds 

I'd agree with you if it did, since it doesn't the point is moot (it
doesn't even say that unquoted lines should not exceed 72).

What the GNKSA does say "SHOULD" be available is a command that will do
rewrapping with paragraph filling.

And the library I wrote has a function that does that, but that wasn't
what I was referring to above: the function I was referring to leaves
the line alone unless it exceeds 80 (of course this could be changed)
chars, and then rewraps THAT line to 2 or more lines that don't exceed
72.  It doesn't ever "join" lines (paragraph fill), it only splits long
ones (keeping the quote prefix of course).

Epp's complaint wasn't specifically about long/short quoting but about
loosing the quote prefix, which is ridiculous, since that only happens
when the programmer hasn't given the situation proper consideration.  

I think the wrapping w/paragraph filling function I wrote is (I hope)
handy and easy to use, but not difficult to write -- on the Mac it has
been written entirely separately by at least 8 different people (ZMail,
MacSOUP, YA, Mulberry, MailSmith, Outlook Express, Hogwasher and MT
[listed in order that I *BELIEVE* the programs added it, and this skips
a beta version of InterNews which used my code to do so, and of course
it's entirely possible there are other programs that do so of which I
unaware]).  Under unix it's in Emacs, jed, vim and other editors, and of
course there is the par utility which does this and a lot more.  On the
RISC OS, it is in Zap and I believe StrongED.

Again, it's not hard. So what is necessary isn't some top notch
programmer slaving away at it for months or years, but rather the simple
realization: quoted text gets long and needs to be wrapped.

This leads to two possible solutions -- wrapping individual lines
without paragraph filling, and wrapping whole paragraphs WITH paragraph
filling (both of course keeping the existing quote prefix).  The first
is suitable for automatic use, but for best results (as you indicate
above) shouldn't be done unless the line length exceeds some maximum
that is larger than what is used for unquoted text.  The second is
better suited to working as a command (because of prior bad quoting and
because sometimes contiguous lines are not part of a "paragraph" even
though they are at the same quote depth).

To keep things clear and in order to let people get a better idea of the
problem/solution the library I wrote has functions for doing either
solution.

All of this is without considering the new format=flowed standard, which
solves the problem of separating paragraphs and allows wrapping with
paragraph filling to happen automatically without any danger of screwing
it up.  Format=flowed is the ideal solution, but it's not yet been
widely adopted -- which is OK, it works well with programs that don't
use it.

Well, that's a rather long way of saying that neither the GNKSA nor I
screwed this up.  Wrapping is only difficult for two reasons -- bad
wrapping by programs that have been thoughtless, and non-standard quote
prefixes.  Otherwise it's a breeze, and the new format=flowed standard
will make it even easier in the future (which the crEep ignores).

-- 
John B. Moreno

Technical Details
Message-ID: <1e8iqso.m1gqf3137memeN%planb@newsreaders.com>
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
References: <8ca351$nve$1@news.neth.hp.com> <1e8ih9m.1jz6dbk1odxyajN%planb@newsreaders.com> <greg-F3CA12.13255603042000@news.binary.net>

Show Full Headers
Complete Article Headers
Message-ID: <1e8iqso.m1gqf3137memeN%planb@newsreaders.com>
Subject: Re: tin: Wrap (un)quoted text before quoting?
Date: Mon, 03 Apr 2000 00:00:00 +0000
From: planb@newsreaders.com (J. B. Moreno)
References: <8ca351$nve$1@news.neth.hp.com> <1e8ih9m.1jz6dbk1odxyajN%planb@newsreaders.com> <greg-F3CA12.13255603042000@news.binary.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: 606227539
Mail-Copies-To: nobody
X-ACLA-Charter: <http://www.deja.com/msgid.xp?MID=%3Cphenix-121119981748546229@roxboro0-023.dyn.interpath.net%3E&ST=&AH=1>
X-Trace: fu-berlin.de 954794120 6411019 207.59.121.5 (16 [22426])
X-Face: ]lUBtDImSD_`E"<*ZgyJUoCT\=CdRLFX4qCMLK[xy^L7v|uX|f8`cFDd*PaH8 N*x>d^h
Organization: NetNews BOFH wannabe
User-Agent: MacSOUP/2.4.2
Newsgroups: news.software.readers