🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #151697

Re: [slrn/S-Lang] RegEx for duplicate signature delimiters

#151697
From: DC
Date: Tue, 13 Jul 2004 02:34
84 lines
3930 bytes
Lars Stokholm wrote:
> DC skrev:

>> [snip .gvimrc stuff]

> Thanks, but that's for stripping it out on forwarding, right? What I'm
> doing is stripping it from the article, before it is displayed in the
> pager (using the 'replace_article' function).


Ah!  You are rewriting the article on-the-fly.  Big difference.


> By the way, I thought I saw the word "gvim". ;) I'm still with Metapad,
> despite many attempts to learn something else...


I forgot you are using win32.  Vim is really nice.  I use it in Windoze,
also.  Metapad is my notepad replacement -- it wouldn't be my choice for
use with slrn, though.

But that smee.  };O)


> > Let us know how you make out with the macro.  Once you've documented it,
> > I wouldn't mind test driving it for you.  I'm always on the lookout for
> > new toys.  }:O)

> I can give you a short description, if you like. First of all, it
> works on the article in the pager. And:

>   - It replaces bad signature delimiters ("--", "---" and "-- \n-- ")
>     with "-- ".

>   - It makes sure that an article only has one signature delimter.

>   - It removes multiple empty lines and ditto quoted lines up to the
>     second level. That compacts the article a little for some posters.


I'm not crazy about this.  Personally, I would prefer to do my own
selective snipping.

You have little control over what gets snipped.  Further, there may be
snippets of quoted text, deeper than level 2 and that are still relevant
to the discussion at hand, which you would then be forced to go back and
retrieve/cut/paste.

You might end up (1) creating more work for yourself and (2) sacrificing
coherence/context for brevity.


>   - It cleans up on English and Danish OE 6.0 attribution lines.

>   - If the article is modified, a message is given in the status line,
>     with a short list of the changes.


Good idea.


>   - It has a function 'switch_art', which you can bind to a key, that
>     will let you switch between the modified and original article.


Very good idea.


> That's it for now. I made a helping function 'rep_regex_substr',
> that will let me replace a regular expression with a string. That
> came up really handy for cleaning out in empty quoted lines:

>   rep_regex_substr ("\n *> *> *\n *> *> *\n", "\n>>\n")

> Please everyone, don't tell me S-Lang had a function for that. :)


You won't hear it from me.  };O)


-- 
DC           Linux RU #1000111011000111001

Free your mind, and your OS will follow...
Technical Details
Message-ID: <slrncf6iht.5rf.dcmoose@moosemeat.ca.INVALID>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.sjc.giganews.com!number1.nntp.dca.giganews.com!internal1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news-lei1.dfn.de!news1.uni-leipzig.de!fu-berlin.de!uni-berlin.de!not-for-mail
References: <slrn.cf3cr3.70@stokholm.dyndns.dk> <slrncf5nhe.b8a.dcmoose@moosemeat.ca.INVALID> <slrn.cf5pmt.68@stokholm.dyndns.dk> <slrncf5tvc.b8a.dcmoose@moosemeat.ca.INVALID> <slrn.cf60r2.1gk@stokholm.dyndns.dk>

Show Full Headers
Complete Article Headers
Message-ID: <slrncf6iht.5rf.dcmoose@moosemeat.ca.INVALID>
Subject: Re: [slrn/S-Lang] RegEx for duplicate signature delimiters
Date: Tue, 13 Jul 2004 02:34:37 +0000
From: DC <dcmoose@myrealbox.com>
References: <slrn.cf3cr3.70@stokholm.dyndns.dk> <slrncf5nhe.b8a.dcmoose@moosemeat.ca.INVALID> <slrn.cf5pmt.68@stokholm.dyndns.dk> <slrncf5tvc.b8a.dcmoose@moosemeat.ca.INVALID> <slrn.cf60r2.1gk@stokholm.dyndns.dk>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.sjc.giganews.com!number1.nntp.dca.giganews.com!internal1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news-lei1.dfn.de!news1.uni-leipzig.de!fu-berlin.de!uni-berlin.de!not-for-mail
Newsgroups: news.software.readers
Organization: http://dcicons.fateback.com
Lines: 84
X-Trace: news.uni-berlin.de uLVBv2kJYepYmWEssGXvIAvhjvpdFRwvBIYuYEcWErhGmLAhLU
X-Operating-System: Mandrake Linux 10.0 (Kernel 2.6.3-7mdk)
X-Face: 6k$Xf_V^i#2X;
 X~[=Ra6mGRtOw!^s%HmaNj1y5a>YCL"vEl.Jjbkww,E~kI&f[*w{j:$V6a2:LKbWg@+qt)3x"fqU\H_Fy5tk8h[Iq/XW~okpDvCa\E~!fb]{H4j@CxE<vL?4q9cxiK5;
 ZdpI@,Bk)(\e67mAw; L}WCZ/NYSX|R6Jj{omL6KT/$
User-Agent: slrn/0.9.8.0 (Linux)