🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #60193

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

#60193
From: Frank Slootweg
Date: Wed, 05 Apr 2000 00:00
61 lines
3412 bytes
J. B. Moreno <planb@newsreaders.com> wrote:
> 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.

  Thanks, I will have a look at it when I need to (but I do not think I
do, see below).

> 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).

  Urs, can you have a look if you would be willing to add this to tin?
[I think that Urs does not like e-mail copies, so I won't send one (for
the moment).]

> 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_".

  Thanks (all) for your responses. They made me have another look at
*my* problem in *my* situation and made me come up with a quick hack
[1] using sed(1) and HP-UX' adjust(1) command. It solves my problem for
single, single-quoted, paragraphs. With a little more effort, I can
probably make it to work for single, multi-quoted, paragraphs, where
'multi, can also be 0.

  I will continue to follow this matter with interest, but for the
moment I have a workaround. Thanks again to all.

[1] "wrap" script
sed -e 's/^> *//' | adjust -b -m 70 | sed -e 's/^/> /'
and
map  !}wrap
}
in .exrc

Technical Details
Message-ID: <8cfbv5$gl3$1@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
References: <8ca351$nve$1@news.neth.hp.com> <1e8ih9m.1jz6dbk1odxyajN%planb@newsreaders.com> <8cccmq$18r$2@news.neth.hp.com> <1e8k0zq.149lp8h1n9aoe6N%planb@newsreaders.com>

Show Full Headers
Complete Article Headers
Message-ID: <8cfbv5$gl3$1@news.neth.hp.com>
Subject: Re: tin: Wrap (un)quoted text before quoting?
Date: Wed, 05 Apr 2000 00:00:00 +0000
From: Frank Slootweg <franks@neth.hp.com>
References: <8ca351$nve$1@news.neth.hp.com> <1e8ih9m.1jz6dbk1odxyajN%planb@newsreaders.com> <8cccmq$18r$2@news.neth.hp.com> <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
X-Deja-AN: 607043797
Content-Transfer-Encoding: 8bit
Organization: NOYB
Content-Type: text/plain; charset=ISO-8859-1
User-Agent: tin/1.4.2-20000205 ("Possession") (UNIX) (HP-UX/B.10.20 (9000/847))
Mime-Version: 1.0
Newsgroups: news.software.readers