🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #60129

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

#60129
From: J. B. Moreno
Date: Tue, 04 Apr 2000 00:00
41 lines
2613 bytes
Frank Slootweg <franks@neth.hp.com> wrote:

> J. B. Moreno <planb@newsreaders.com> wrote:
> > Frank Slootweg <franks@neth.hp.com> wrote:
> [deleted]
> >>   So I want to keep my quoted text at maximum 74 characters per line,
> >> even if the original text, both quoted and unquoted, is longer.
> >> 
> >>   I looked in the tin manual 'page' but found nothing (revelant) on
> >> "wrap" and "fold".
> >> 
> >>   Is this possible in tin? Note: I run tin on UNIX (HP-UX), so I can
> >> also use standard UNIX tools if needed.
> > 
> > I don't think it's possible within tin, but your editor should have a
> > reformatting command (most unix editors do) and if it doesn't you could
> > first pipe it through par or some other utility.
> 
>   I have a (seperate) reformatting command [1], but that can not
> reformat *already-quoted* text, which is my main problem (see also my
> response to Sven).

I saw your response to Sven -- and it looks like what you want is
exactly what is in the file wrap-plain.c in the library that I wrote.

It's designed as a drop in replacement for whatever is currently being
used for quoting, and shouldn't take much programming know-how to add to
tin (a little, but not much).

You'd have to change a couple of constants (the default values leaves
the lines unchanged unless they exceed 80 chars, and then wraps them to
72.  Changing both of these to 74 would be easy, but I'd recommend
leaving them alone) and it doesn't "fix" the OE style of broken wrapping
(i.e. where it wraps without quoting) so I wouldn't call it
"fix_broken_posting_".


-- 
John B. Moreno

Technical Details
Message-ID: <1e8k0zq.149lp8h1n9aoe6N%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> <8cccmq$18r$2@news.neth.hp.com>

Show Full Headers
Complete Article Headers
Message-ID: <1e8k0zq.149lp8h1n9aoe6N%planb@newsreaders.com>
Subject: Re: tin: Wrap (un)quoted text before quoting?
Date: Tue, 04 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> <8cccmq$18r$2@news.neth.hp.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
X-Deja-AN: 606564396
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 954856518 6535951 207.59.121.29 (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