🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #249144

Re: [slrn] Change/add recognized quote character(s) in article pager

#249144
From: Peter J Ross
Date: Wed, 07 Mar 2012 21:20
52 lines
3117 bytes
In news.software.readers on Wed, 7 Mar 2012 13:13:40 -0500, tlvp
<mPiOsUcB.EtLlLvEp@att.net> wrote:

> On Wed, 7 Mar 2012 10:52:57 -0700, Steve Ackman wrote:
>
>> any lines beginning with 0-2 spaces followed by a either
>> a >, <, :, |, or = character is a quoted line.
>> ignore_quotes "^ ? ?[><:=|]"
>
> Ya lost me. "... followed by a either a ... character ... " ?
> "a either a"? Or: quoted lines can begin with an "a" ?

I think the first " a " is a typo. It should say "...followed by
either..."

> And then: 
>
>> ignore_quotes "^ ? ?[><:=|]"
>
> Is that really "carat space interrog space interrog" that you mean, before
> the square brackets containing the candidate start characters? 

What you've quoted is really what he means.

carat - beginning of line. Without this, the pattern would match any
colon, for instance.

space interrog - zero or one space characters.
space interrog space interrog - zero, one or two space characters.

S-Lang regular expressions are quite primitive. We have to write
" ? ?" because such elegant solutions as " {,2}" (from PCRE) are
unavailable in S-Lang, and therefore unavalable in slrn.

The pattern matches any line that begins with up to two spaces,
followed by one of the five characters specified in the square
brackets, followed by anything whatsoever

Personally, I'd omit "<" from the pattern, since it's used far more
often to mark the start of an URL than quoted text.

> Or did some Unicode/Wincode/Mac-code encoding mix-up scramble what you
> posted by the time it reached me and my UTF-8-oriented Dialog?

There wasn't anything but US-ASCII, was there?

-- 
PJR :-)  |  οἵη περ φύλλων γενεὴ, τοίη δὲ καὶ ἀνδρῶν.
         |  φύλλα τὰ μέν τ' ἄνεμος χαμάδις χέει, ἄλλα δέ θ' ὕλη
         |  τηλεθόωσα φύει, ἔαρος δ' ἐπιγίγνεται ὥρη·
         |  ὣς ἀνδρῶν γενεὴ ἡ μὲν φύει ἡ δ' ἀπολήγει. (Homer)
Technical Details
Message-ID: <slrnjlfk9f.psv.pjr@pjr.no-ip.org>
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!num2.nntp.dca.giganews.com!num1.nntp.dca.giganews.com!number.nntp.dca.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news.bnb-lp.com!news.glorb.com!news.alt.net
References: <ntck29x4vp.ln2@soren625.no-ip.org> <slrnjlf83p.ofg.steve@wizard.dyndns.org> <1c42r20i1w3gy.p3kmyljq1jpv.dlg@40tude.net>

Show Full Headers
Complete Article Headers
Message-ID: <slrnjlfk9f.psv.pjr@pjr.no-ip.org>
Subject: Re: [slrn] Change/add recognized quote character(s) in article pager
Date: Wed, 07 Mar 2012 21:20:47 +0000
From: Peter J Ross <pjr@example.invalid>
References: <ntck29x4vp.ln2@soren625.no-ip.org> <slrnjlf83p.ofg.steve@wizard.dyndns.org> <1c42r20i1w3gy.p3kmyljq1jpv.dlg@40tude.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.20140922.mbox.gz!num2.nntp.dca.giganews.com!num1.nntp.dca.giganews.com!number.nntp.dca.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news.bnb-lp.com!news.glorb.com!news.alt.net
Newsgroups: news.software.readers
Organization: none
Lines: 52
Reply-To: Peter J Ross <peadar.ruadh@gmx.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-No-Archive: Yes
User-Agent: slrn/pre1.0.0-18 (Linux)