🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #145320

Re: [slrn] Recognising non-standard quote characters

#145320
From: DC
Date: Sat, 27 Mar 2004 00:54
63 lines
3150 bytes
<piggyback -- }:(8) Oink!>

DC wrote:
> Is there a way to make slrn recognise non-standard quote characters and
> treat them as it does ">" symbols?

> There is a user in one of my regular groups that insists on using a "]"
> to mark quoted text.  Naturally, this completely fscks up my quote level
> colour scheme.

> I've been digging through the docs (and Google) for help, but all I've
> managed to find is quote_string to change the ">" for my postings.  This,
> obviously, is not what I want.

><clickety>

> Oops, I spoke too soon.  Okay, so I've just found this:

> % This regular expression defines lines that are consider to be quoted lines.
> % It says that any lines beginning with 0-2 spaces followed by a either
> % a >, <, :, |, or = character is a quoted line.
> ignore_quotes "^ ? ?[><:=|]"

> I can't seem to add a "]" to this string -- clearly, this confuses
> things.  I tried escaping it like this \], but no joy.

> Could someone kindly lend a hand, here?

> Thanks.

This has to be a new record.  I just answered my own question.

http://slrn.sourceforge.net/docs/manual.txt

<q>
5.3.8.  ignore_quotes

  Usage: ignore_quotes pattern [pattern] ...

  The regular expressions given here are used to determine quoted lines
  in the body of an article. You can define up to 5 different patterns
  (this is meant to make up for the lack of an OR operator in slang
  regexps). Please try to keep them as exact as possible, so that slrn
  is able to distinguish different quoting levels - e.g. use "^>" rather
  than "^>*".

  By default, only one pattern is set: "^ ? ?[><:=|]"
</q>

So, the "trick" was to add them in series, like this:

ignore_quotes "^ ? ?[><:=|]" "^]"

Glad I could help, DC.  Hey, no problem!  Anytime!  Here, have a beer.
Why thank you, DC, you're so kind!  I know...

};O)

-- 
DC                     Registered Linux User #1000111011000111001

Why I love Open Source: http://support.microsoft.com/?kbid=111601
Technical Details
Message-ID: <slrnc69k5m.3f3.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.mbox.zip!archiver1.google.com!news2.google.com!fu-berlin.de!uni-berlin.de!modemcable186.108-203-24.mc.videotron.CA!not-for-mail
References: <slrnc69jth.3f3.dcmoose@moosemeat.ca.INVALID>

Show Full Headers
Complete Article Headers
Message-ID: <slrnc69k5m.3f3.dcmoose@moosemeat.ca.INVALID>
Subject: Re: [slrn] Recognising non-standard quote characters
Date: Sat, 27 Mar 2004 00:54:15 +0000
From: DC <dcmoose@myrealbox.com>
References: <slrnc69jth.3f3.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.mbox.zip!archiver1.google.com!news2.google.com!fu-berlin.de!uni-berlin.de!modemcable186.108-203-24.mc.videotron.CA!not-for-mail
Newsgroups: news.software.readers
Organization: http://dcicons.fateback.com
Lines: 62
NNTP-Posting-Host: modemcable186.108-203-24.mc.videotron.ca (24.203.108.186)
X-Trace: news.uni-berlin.de 1080348855 80898103 I 24.203.108.186 ([120562])
X-Operating-System: Mandrake Linux 9.2 (Kernel 2.4.22-10mdk)
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.7.4 (Linux)