Thread View: news.software.readers
31 messages
31 total messages
Started by Paul
Wed, 07 Mar 2012 15:53
[slrn] Change/add recognized quote character(s) in article pager
Author: Paul
Date: Wed, 07 Mar 2012 15:53
Date: Wed, 07 Mar 2012 15:53
12 lines
1857 bytes
1857 bytes
I'm using slrn pre1.0.0-28 and wondering if there's a way to customize the leading character that marks a quoted line. One of the groups I read regularly is moderated and apparently strips out the original quote character and replaces it with an octothorpe (#) character. My current slrn config doesn't recognize that as a quote character and so quote coloring and Tab to skip quoted material doesn't work. Searching the slrn reference manual didn't reveal anything that looks useful for this. Am I missing something in the documentation, or is there a macro that allows quote character customization? -- Do nothing unless you must, and when you must act -- hesitate.
Re: [slrn] Change/add recognized quote character(s) in article pager
Author: Steve Ackman
Date: Wed, 07 Mar 2012 17:52
Date: Wed, 07 Mar 2012 17:52
18 lines
2241 bytes
2241 bytes
On Wed, 07 Mar 2012 10:53:59 -0500, Paul wrote: > I'm using slrn pre1.0.0-28 and wondering if there's a way to customize > the leading character that marks a quoted line. One of the groups I read > regularly is moderated and apparently strips out the original quote > character and replaces it with an octothorpe (#) character. My current > slrn config doesn't recognize that as a quote character and so quote > coloring and Tab to skip quoted material doesn't work. Searching the > slrn reference manual didn't reveal anything that looks useful for this. > Am I missing something in the documentation, or is there a macro that > allows quote character customization? ~/.slrnrc % 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 "^ ? ?[><:=|]"
Re: [slrn] Change/add recognized quote character(s) in article pager
Author: tlvp
Date: Wed, 07 Mar 2012 18:13
Date: Wed, 07 Mar 2012 18:13
22 lines
2148 bytes
2148 bytes
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" ? And then: > ignore_quotes "^ ? ?[><:=|]" Is that really "carat space interrog space interrog" that you mean, before the square brackets containing the candidate start characters? 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? Cheers, -- tlvp -- Avant de repondre, jeter la poubelle, SVP.
Re: [slrn] Change/add recognized quote character(s) in article pager
Author: John F. Morse
Date: Wed, 07 Mar 2012 19:05
Date: Wed, 07 Mar 2012 19:05
48 lines
2589 bytes
2589 bytes
tlvp 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" ? > It looks normal to me in Thunderbird. Let me see if I can break it out onto individual lines: It says that any lines beginning with 0-2 spaces followed by a either a > (GT) < (LT) : (colon) | (vertical bar) or = (equals) character is a quoted line. > And then: > > >> ignore_quotes "^ ? ?[><:=|]" >> > > Is that really "carat space interrog space interrog" that you mean, before > the square brackets containing the candidate start characters? > > 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? > As for this question, try http://en.wikipedia.org/wiki/Regex#Basic_concepts -- John When a person has -- whether they knew it or not -- already rejected the Truth, by what means do they discern a lie?
Re: [slrn] Change/add recognized quote character(s) in article pager
Author: Steve Ackman
Date: Wed, 07 Mar 2012 19:22
Date: Wed, 07 Mar 2012 19:22
30 lines
2283 bytes
2283 bytes
On Wed, 7 Mar 2012 13:13:40 -0500, tlvp 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" ? > > And then: > >> ignore_quotes "^ ? ?[><:=|]" > > Is that really "carat space interrog space interrog" that you mean, before > the square brackets containing the candidate start characters? Yes, that's what's in ~/.slrnrc # 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? As the .rc says, it's a regex. To the OP, if the original response wasn't detailed enough, simply add #, so: ignore_quotes "^ ? ?[><:=|#]"
Re: [slrn] Change/add recognized quote character(s) in article pager
Author: Gene E. Bloch
Date: Wed, 07 Mar 2012 19:42
Date: Wed, 07 Mar 2012 19:42
77 lines
3247 bytes
3247 bytes
On 3/07/2012, John F. Morse posted: > tlvp 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" ? >> > It looks normal to me in Thunderbird. Let me see if I can break it out onto > individual lines: > It says that any lines beginning with 0-2 spaces followed by a either a >> (GT) > < (LT) > : (colon) > | (vertical bar) > or > = (equals) > character is a quoted line. >> And then: >> >> >>> ignore_quotes "^ ? ?[><:=|]" >>> >> >> Is that really "carat space interrog space interrog" that you mean, before >> the square brackets containing the candidate start characters? >> >> 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? >> > As for this question, try http://en.wikipedia.org/wiki/Regex#Basic_concepts Actually, part of your excellent explanation ended up pretty funny here. I mean amusing :-) My newsreader kept replacing (in the display) some of your characters by the vertical bar in the margin that it uses for quote markers, making it hard to read. I'm going to try your explanation with quotation marks to see if that helps :-) Here's the original: % 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 "^ ? ?[><:=|]" My rephrasing of the last two comment (%) lines is: It says that any lines beginning with 0-2 spaces followed by ">" "<" ":" "|" or "+" is a quoted line, if you drop the quotes that I used for display purposes. This should look better - at least in my newsreader :-) -- Gene E. Bloch (Stumbling Bloch)
Re: [slrn] Change/add recognized quote character(s) in article pager
Author: Peter J Ross
Date: Wed, 07 Mar 2012 21:20
Date: Wed, 07 Mar 2012 21:20
52 lines
3117 bytes
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)
Re: [slrn] Change/add recognized quote character(s) in article pager
Author: John F. Morse
Date: Wed, 07 Mar 2012 21:26
Date: Wed, 07 Mar 2012 21:26
101 lines
4158 bytes
4158 bytes
Gene E. Bloch wrote:
> On 3/07/2012, John F. Morse posted:
>> tlvp 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" ?
>>>
>
>> It looks normal to me in Thunderbird. Let me see if I can break it
>> out onto individual lines:
>
>> It says that any lines beginning with 0-2 spaces followed by a either a
>
>>> (GT)
>> < (LT)
>> : (colon)
>> | (vertical bar)
>> or
>> = (equals)
>> character is a quoted line.
>
>
>>> And then:
>>>
>>>
>>>> ignore_quotes "^ ? ?[><:=|]"
>>>>
>>>
>>> Is that really "carat space interrog space interrog" that you mean,
>>> before
>>> the square brackets containing the candidate start characters?
>>>
>>> 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?
>>>
>
>
>> As for this question, try
>> http://en.wikipedia.org/wiki/Regex#Basic_concepts
>
> Actually, part of your excellent explanation ended up pretty funny
> here. I mean amusing :-)
>
> My newsreader kept replacing (in the display) some of your characters
> by the vertical bar in the margin that it uses for quote markers,
> making it hard to read.
>
> I'm going to try your explanation with quotation marks to see if that
> helps :-)
>
> Here's the original:
> % 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 "^ ? ?[><:=|]"
>
> My rephrasing of the last two comment (%) lines is:
> It says that any lines beginning with 0-2 spaces followed by
> ">"
> "<"
> ":"
> "|"
> or
> "+"
> is a quoted line, if you drop the quotes that I used for display
> purposes.
>
> This should look better - at least in my newsreader :-)
>
Yes, that looks good.
I did notice the ">" (GT) that I put as the first character on the first
example line was translated to the "|" when I read my own message.
That proves the statement "that any lines beginning with 0-2 spaces
followed by a either..." was correct.
Now for three spaces and then the GT character:
>
Now a <Tab> and the GT:
>
We'll see how they do.
--
John
When a person has -- whether they knew it or not -- already
rejected the Truth, by what means do they discern a lie?
Re: [slrn] Change/add recognized quote character(s) in article pager
Author: Peter J Ross
Date: Wed, 07 Mar 2012 21:30
Date: Wed, 07 Mar 2012 21:30
24 lines
2260 bytes
2260 bytes
In news.software.readers on Wed, 07 Mar 2012 10:53:59 -0500, Paul
<PaulBurton0@gmail.com> wrote:
> I'm using slrn pre1.0.0-28 and wondering if there's a way to customize
> the leading character that marks a quoted line. One of the groups I read
> regularly is moderated and apparently strips out the original quote
> character and replaces it with an octothorpe (#) character. My current
> slrn config doesn't recognize that as a quote character and so quote
> coloring and Tab to skip quoted material doesn't work. Searching the
> slrn reference manual didn't reveal anything that looks useful for this.
> Am I missing something in the documentation, or is there a macro that
> allows quote character customization?
You're missing something in the documentation. :-)
<http://www.slrn.org/docs/slrn-manual-5.html#ignore_quotes>
--
PJR :-) | οἵη περ φύλλων γενεὴ, τοίη δὲ καὶ ἀνδρῶν.
| φύλλα τὰ μέν τ' ἄνεμος χαμάδις χέει, ἄλλα δέ θ' ὕλη
| τηλεθόωσα φύει, ἔαρος δ' ἐπιγίγνεται ὥρη·
| ὣς ἀνδρῶν γενεὴ ἡ μὲν φύει ἡ δ' ἀπολήγει. (Homer)
Re: [slrn] Change/add recognized quote character(s) in article pager
Author: Paul
Date: Wed, 07 Mar 2012 21:31
Date: Wed, 07 Mar 2012 21:31
17 lines
1978 bytes
1978 bytes
On 2012-03-07, Steve Ackman <steve@SNIP-THIS.twoloonscoffee.com> wrote: > ~/.slrnrc > % 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 "^ ? ?[><:=|]" OK, now I do remember trying that some time ago and for some reason it didn't work the way I wanted it to. Maybe I didn't pay attention to the fact that it's a regex. Just tried it now and it does what I want. Anyway, thanks for pointing out the nose on my face, apparently that's what I needed. -- Tell the truth or trump--but get the trick. -- Mark Twain, "Pudd'nhead Wilson's Calendar"
Re: [slrn] Change/add recognized quote character(s) in article pager
Author: Shmuel Metz
Date: Wed, 07 Mar 2012 21:50
Date: Wed, 07 Mar 2012 21:50
18 lines
2638 bytes
2638 bytes
In <1c42r20i1w3gy.p3kmyljq1jpv.dlg@40tude.net>, on 03/07/2012
at 01:13 PM, tlvp <mPiOsUcB.EtLlLvEp@att.net> said:
>Is that really "carat space interrog space interrog" that you mean,
>before the square brackets containing the candidate start
>characters?
Probably. Note that it is missing Octothorpe. Does SLRN support the
Perl notation \s{,2} in a regex?
--
Shmuel (Seymour J.) Metz, SysProg and JOAT <http://patriot.net/~shmuel>
Unsolicited bulk E-mail subject to legal action. I reserve the
right to publicly post or ridicule any abusive E-mail. Reply to
domain Patriot dot net user shmuel+news to contact me. Do not
reply to spamtrap@library.lspace.org
Re: [slrn] Change/add recognized quote character(s) in article pager
Author: Peter J Ross
Date: Wed, 07 Mar 2012 21:57
Date: Wed, 07 Mar 2012 21:57
21 lines
1784 bytes
1784 bytes
In news.software.readers on Wed, 07 Mar 2012 15:26:25 -0600, John F.
Morse <john@example.invalid> wrote:
> Now for three spaces and then the GT character:
>
> >
>
> Now a <Tab> and the GT:
>
> >
>
> We'll see how they do.
Your <Tab> seems to have been translated to four spaces.
--
PJR :-) | οἵη περ φύλλων γενεὴ, τοίη δὲ καὶ ἀνδρῶν.
| φύλλα τὰ μέν τ' ἄνεμος χαμάδις χέει, ἄλλα δέ θ' ὕλη
| τηλεθόωσα φύει, ἔαρος δ' ἐπιγίγνεται ὥρη·
| ὣς ἀνδρῶν γενεὴ ἡ μὲν φύει ἡ δ' ἀπολήγει. (Homer)
Re: [slrn] Change/add recognized quote character(s) in article pager
Author: John F. Morse
Date: Thu, 08 Mar 2012 00:11
Date: Thu, 08 Mar 2012 00:11
29 lines
2083 bytes
2083 bytes
Peter J Ross wrote: > In news.software.readers on Wed, 07 Mar 2012 15:26:25 -0600, John F. > Morse <john@example.invalid> wrote: > > >> Now for three spaces and then the GT character: >> >> > >> >> Now a <Tab> and the GT: >> >> > >> >> We'll see how they do. >> > > Your <Tab> seems to have been translated to four spaces. > Yeah, I kinda figured it would do that, especially since it is plain text. ;-) -- John When a person has -- whether they knew it or not -- already rejected the Truth, by what means do they discern a lie?
Re: [slrn] Change/add recognized quote character(s) in article pager
Author: Peter J Ross
Date: Thu, 08 Mar 2012 00:41
Date: Thu, 08 Mar 2012 00:41
40 lines
2335 bytes
2335 bytes
In news.software.readers on Wed, 07 Mar 2012 18:11:39 -0600, John F.
Morse <john@example.invalid> wrote:
> Peter J Ross wrote:
>> In news.software.readers on Wed, 07 Mar 2012 15:26:25 -0600, John F.
>> Morse <john@example.invalid> wrote:
>>
>>> Now for three spaces and then the GT character:
>>>
>>> >
>>>
>>> Now a <Tab> and the GT:
>>>
>>> >
>>>
>>> We'll see how they do.
>>
>> Your <Tab> seems to have been translated to four spaces.
>
> Yeah, I kinda figured it would do that, especially since it is plain
> text. ;-)
Nevertheless, it's weird.
Here are eight spaces followed by a "!"
!
And here's a tab followed by a "!"
!
--
PJR :-) | οἵη περ φύλλων γενεὴ, τοίη δὲ καὶ ἀνδρῶν.
| φύλλα τὰ μέν τ' ἄνεμος χαμάδις χέει, ἄλλα δέ θ' ὕλη
| τηλεθόωσα φύει, ἔαρος δ' ἐπιγίγνεται ὥρη·
| ὣς ἀνδρῶν γενεὴ ἡ μὲν φύει ἡ δ' ἀπολήγει. (Homer)
Re: [slrn] Change/add recognized quote character(s) in article pager
Author: Gene E. Bloch
Date: Thu, 08 Mar 2012 01:20
Date: Thu, 08 Mar 2012 01:20
49 lines
2617 bytes
2617 bytes
On 3/07/2012, Peter J Ross posted: > In news.software.readers on Wed, 07 Mar 2012 18:11:39 -0600, John F. > Morse <john@example.invalid> wrote: >> Peter J Ross wrote: >>> In news.software.readers on Wed, 07 Mar 2012 15:26:25 -0600, John F. >>> Morse <john@example.invalid> wrote: >>> >>>> Now for three spaces and then the GT character: >>>> >>>> > >>>> >>>> Now a <Tab> and the GT: >>>> >>>> > >>>> >>>> We'll see how they do. >>> >>> Your <Tab> seems to have been translated to four spaces. >> >> Yeah, I kinda figured it would do that, especially since it is plain >> text. ;-) > Nevertheless, it's weird. > Here are eight spaces followed by a "!" > ! > And here's a tab followed by a "!" > ! Seems like tab is set to four spaces, probably in slrn somewhere :-) Here's what MesNews thinks of "tab !": Never mind. When I hit tab, the cursor leaves this screen and goes to a button on the frame of this window. Now THAT is bizarre :-) So I went to Dialog and found that tab is 8 spaces in that program's composition window, although I stayed in MesNews for this reply. -- Gene E. Bloch (Stumbling Bloch)
Re: [slrn] Change/add recognized quote character(s) in article pager
Author: Peter J Ross
Date: Thu, 08 Mar 2012 01:42
Date: Thu, 08 Mar 2012 01:42
69 lines
3391 bytes
3391 bytes
In news.software.readers on Wed, 07 Mar 2012 17:20:57 -0800, Gene E
Bloch <blochxxxx@someplace.invalid> wrote:
> On 3/07/2012, Peter J Ross posted:
>> In news.software.readers on Wed, 07 Mar 2012 18:11:39 -0600, John F.
>> Morse <john@example.invalid> wrote:
>
>>> Peter J Ross wrote:
>>>> In news.software.readers on Wed, 07 Mar 2012 15:26:25 -0600, John F.
>>>> Morse <john@example.invalid> wrote:
>>>>
>>>>> Now for three spaces and then the GT character:
>>>>>
>>>>> >
>>>>>
>>>>> Now a <Tab> and the GT:
>>>>>
>>>>> >
>>>>>
>>>>> We'll see how they do.
>>>>
>>>> Your <Tab> seems to have been translated to four spaces.
>>>
>>> Yeah, I kinda figured it would do that, especially since it is plain
>>> text. ;-)
>
>> Nevertheless, it's weird.
>
>> Here are eight spaces followed by a "!"
>
>> !
It's still eight spaces. This is good.
>> And here's a tab followed by a "!"
>
>> !
It's still a tab. This is even better.
> Seems like tab is set to four spaces, probably in slrn somewhere :-)
It's more likely to be set in your editor. There's no way of setting
it in slrn.
As long as you preserve tabs in quoted text, I don't think there's a
problem. It's only modification of quoted text that tends to annoy
people.
> Here's what MesNews thinks of "tab !":
>
> Never mind. When I hit tab, the cursor leaves this screen and goes to a
> button on the frame of this window.
>
> Now THAT is bizarre :-)
>
> So I went to Dialog and found that tab is 8 spaces in that program's
> composition window, although I stayed in MesNews for this reply.
What you see in a "composition window" isn't necessarily what other
people get.
--
PJR :-) | οἵη περ φύλλων γενεὴ, τοίη δὲ καὶ ἀνδρῶν.
| φύλλα τὰ μέν τ' ἄνεμος χαμάδις χέει, ἄλλα δέ θ' ὕλη
| τηλεθόωσα φύει, ἔαρος δ' ἐπιγίγνεται ὥρη·
| ὣς ἀνδρῶν γενεὴ ἡ μὲν φύει ἡ δ' ἀπολήγει. (Homer)
Re: [slrn] Change/add recognized quote character(s) in article pager
Author: tlvp
Date: Thu, 08 Mar 2012 06:48
Date: Thu, 08 Mar 2012 06:48
8 lines
1708 bytes
1708 bytes
On Wed, 07 Mar 2012 13:05:02 -0600, John F. Morse wrote: > As for this question, try http://en.wikipedia.org/wiki/Regex#Basic_concepts Thanks, John: most helpful, especially as regards the caret ^ and the need to escape the vertical bar | . Cheers, -- tlvp -- Avant de repondre, jeter la poubelle, SVP.
Re: [slrn] Change/add recognized quote character(s) in article pager
Author: tlvp
Date: Thu, 08 Mar 2012 06:54
Date: Thu, 08 Mar 2012 06:54
13 lines
2042 bytes
2042 bytes
On Wed, 07 Mar 2012 15:26:25 -0600, John F. Morse wrote: > That proves the statement "that any lines beginning with 0-2 spaces > followed by a either..." was correct. ... or would be correct, if one simply dropped the superfluous indefinite article "a" from between "by" and "either". (First time around, it looked to me as if what was meant was "0-2 spaces followed by *the character* 'a' either ... " and that just made no sense to me.) All clear now, though -- thanks, all. -- tlvp -- Avant de repondre, jeter la poubelle, SVP.
Re: [slrn] Change/add recognized quote character(s) in article pager
Author: tlvp
Date: Thu, 08 Mar 2012 07:04
Date: Thu, 08 Mar 2012 07:04
17 lines
2174 bytes
2174 bytes
On Wed, 7 Mar 2012 21:20:47 +0000 (UTC), Peter J Ross wrote: > I think the first " a " is a typo. It should say "...followed by > either..." Thanks, Peter. I gradually came to that conclusion, too :-) . As for the question marks, ever since the Relf correspondence of some weeks ago, I've come to realize that my Dialog renders anything it can't grok as a question mark. So I can never be entirely sure whether a question mark I see is *meant* as a question mark or is just Dialog signalling "I give up." And when I'm not sure, I ask :-) -- sorry about that. Cheers, -- tlvp -- Avant de repondre, jeter la poubelle, SVP.
Re: [slrn] Change/add recognized quote character(s) in article pager
Author: John F. Morse
Date: Thu, 08 Mar 2012 10:57
Date: Thu, 08 Mar 2012 10:57
34 lines
2637 bytes
2637 bytes
tlvp wrote: > On Wed, 07 Mar 2012 15:26:25 -0600, John F. Morse wrote: > >> That proves the statement "that any lines beginning with 0-2 spaces >> followed by a either..." was correct. >> > > ... or would be correct, if one simply dropped the superfluous indefinite > article "a" from between "by" and "either". (First time around, it looked > to me as if what was meant was "0-2 spaces followed by *the character* 'a' > either ... " and that just made no sense to me.) > > All clear now, though -- thanks, all. -- tlvp > That was one of those "gotchas" I believe. I had created a reply, then before sending it I looked over the original stuff again, and noticed the extra "a" in the text. So I did what I thought best: delete the reply and go get something to eat. Yellow veggies are supposed to be good for the eyesight. Maybe even the "wasteline"! Of course it's easy to turn most anything into yellow if you use enough butter! ;-) -- John When a person has -- whether they knew it or not -- already rejected the Truth, by what means do they discern a lie?
Re: [slrn] Change/add recognized quote character(s) in article pager
Author: John F. Morse
Date: Thu, 08 Mar 2012 11:12
Date: Thu, 08 Mar 2012 11:12
80 lines
3666 bytes
3666 bytes
On 2012-03-07, Gene E Bloch <blochxxxx@someplace.invalid> wrote: > On 3/07/2012, John F. Morse posted: > >> It looks normal to me in Thunderbird. Let me see if I can break it out onto >> individual lines: > >> It says that any lines beginning with 0-2 spaces followed by a either a > >>> (GT) >> < (LT) >> : (colon) >> | (vertical bar) >> or >> = (equals) >> character is a quoted line. > > >>> And then: >>> >>> >>>> ignore_quotes "^ ? ?[><:=|]" >>>> >>> >>> Is that really "carat space interrog space interrog" that you mean, before >>> the square brackets containing the candidate start characters? >>> >>> 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? >>> > > >> As for this question, try http://en.wikipedia.org/wiki/Regex#Basic_concepts > > Actually, part of your excellent explanation ended up pretty funny > here. I mean amusing :-) > > My newsreader kept replacing (in the display) some of your characters > by the vertical bar in the margin that it uses for quote markers, > making it hard to read. > > I'm going to try your explanation with quotation marks to see if that > helps :-) > > Here's the original: > % 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 "^ ? ?[><:=|]" > > My rephrasing of the last two comment (%) lines is: > It says that any lines beginning with 0-2 spaces followed by > ">" > "<" > ":" > "|" > or > "+" > is a quoted line, if you drop the quotes that I used for display > purposes. > > This should look better - at least in my newsreader :-) > Looking at this in slrn shows it to use the ">" (GT) character, but it removed the space (it appended the GT immediately after the two GTs that indicate a second-level quote). Thunderbird simply turned it into the vertical bar, but that is because my Thunderbird is configured to diaplay the vertical bar for quoted text. I'd say slrn is definately better than Thunderbird, and especially Dialog. I'll go have a look-see in Tin. -- John When a person has -- whether they knew it or not -- already rejected the Truth, by what means do they discern a lie?
Re: [slrn] Change/add recognized quote character(s) in article pager
Author: John F. Morse
Date: Thu, 08 Mar 2012 11:21
Date: Thu, 08 Mar 2012 11:21
24 lines
2040 bytes
2040 bytes
John F. Morse <john@example.invalid> wrote: > > Looking at this in slrn shows it to use the ">" (GT) character, but it removed the space (it appended the GT immediately after the two GTs that > indicate a second-level quote). > > Thunderbird simply turned it into the vertical bar, but that is because my Thunderbird is configured to display the vertical bar for quoted > text. > > I'd say slrn is definitely better than Thunderbird, and especially Dialog. > > I'll go have a look-see in Tin. > Tin's display is identical to slrn's display. It can spell definitely better too! ;-) -- John When a person has -- whether they knew it or not -- already rejected the Truth, by what means do they discern a lie?
Re: [slrn] Change/add recognized quote character(s) in article pager
Author: John E. Davis
Date: Thu, 08 Mar 2012 13:31
Date: Thu, 08 Mar 2012 13:31
12 lines
2101 bytes
2101 bytes
On Wed, 7 Mar 2012 21:20:47 +0000 (UTC), Peter J Ross <pjr@example.invalid>
> 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.
Although not nearly as powerful as PCRE regular expressions, slang
regular expressions do support this particular construct. But it has
to be written with the brace characters escaped by a backslash. In
the .slrnrc file, the backslash must also be escaped. Hence, in an
slrnrc file, the RE " ? ?" can be written as " \\{0,2\\}". Note also
the first number following the opening brace is not optional and must
be specified. --John
Re: [slrn] Change/add recognized quote character(s) in article pager
Author: Gene E. Bloch
Date: Thu, 08 Mar 2012 18:58
Date: Thu, 08 Mar 2012 18:58
35 lines
2480 bytes
2480 bytes
On 3/08/2012, John F. Morse posted: > tlvp wrote: >> On Wed, 07 Mar 2012 15:26:25 -0600, John F. Morse wrote: >> >>> That proves the statement "that any lines beginning with 0-2 spaces >>> followed by a either..." was correct. >>> >> >> ... or would be correct, if one simply dropped the superfluous indefinite >> article "a" from between "by" and "either". (First time around, it looked >> to me as if what was meant was "0-2 spaces followed by *the character* 'a' >> either ... " and that just made no sense to me.) >> >> All clear now, though -- thanks, all. -- tlvp >> > That was one of those "gotchas" I believe. > I had created a reply, then before sending it I looked over the original > stuff again, and noticed the extra "a" in the text. > So I did what I thought best: delete the reply and go get something to eat. > Yellow veggies are supposed to be good for the eyesight. Maybe even the > "wasteline"! > Of course it's easy to turn most anything into yellow if you use enough > butter! ;-) Absolutely! -- Gene E. Bloch (Stumbling Bloch)
Re: [slrn] Change/add recognized quote character(s) in article pager
Author: tlvp
Date: Fri, 09 Mar 2012 05:52
Date: Fri, 09 Mar 2012 05:52
8 lines
1810 bytes
1810 bytes
On Thu, 08 Mar 2012 04:57:47 -0600, John F. Morse wrote: > ... Of course it's easy to turn most anything into yellow if you use enough > butter! ;-) ... ... or turmeric :-) . Cheers, -- tlvp -- Avant de repondre, jeter la poubelle, SVP.
Re: [slrn] Change/add recognized quote character(s) in article pager
Author: Shmuel Metz
Date: Fri, 09 Mar 2012 12:11
Date: Fri, 09 Mar 2012 12:11
21 lines
2970 bytes
2970 bytes
In <slrnjlhd6e.htp.jed@aluche.mit.edu>, on 03/08/2012
at 01:31 PM, "John E. Davis" <jed@jedsoft.org> said:
>Although not nearly as powerful as PCRE regular expressions, slang
>regular expressions do support this particular construct. But it has
>to be written with the brace characters escaped by a backslash. In
>the .slrnrc file, the backslash must also be escaped. Hence, in an
>slrnrc file, the RE " ? ?" can be written as " \\{0,2\\}". Note also
>the first number following the opening brace is not optional and must
>be specified.
Does it support the whitespace escape \s?
--
Shmuel (Seymour J.) Metz, SysProg and JOAT <http://patriot.net/~shmuel>
Unsolicited bulk E-mail subject to legal action. I reserve the
right to publicly post or ridicule any abusive E-mail. Reply to
domain Patriot dot net user shmuel+news to contact me. Do not
reply to spamtrap@library.lspace.org
Re: [slrn] Change/add recognized quote character(s) in article pager
Author: John E. Davis
Date: Fri, 09 Mar 2012 15:17
Date: Fri, 09 Mar 2012 15:17
9 lines
1895 bytes
1895 bytes
On Fri, 09 Mar 2012 07:11:32 -0500, Shmuel Metz <spamtrap@library.lspace.org.invalid> wrote: > Does it support the whitespace escape \s? No, you have to use something like "[ \t]". I wrote the regexp parser sometime around 1993 based upon an Ultrix manpage for `ex`. There were very few choices back then and I knew of none that were portable to the systems that I was supporting for the slang library, e.g., 16 bit MSDOS. --John
Re: [slrn] Change/add recognized quote character(s) in article pager
Author: Peter J Ross
Date: Sat, 10 Mar 2012 21:45
Date: Sat, 10 Mar 2012 21:45
32 lines
2783 bytes
2783 bytes
In news.software.readers on Thu, 8 Mar 2012 13:31:58 +0000 (UTC), John
E. Davis <jed@jedsoft.org> wrote:
> On Wed, 7 Mar 2012 21:20:47 +0000 (UTC), Peter J Ross <pjr@example.invalid>
>> 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.
>
> Although not nearly as powerful as PCRE regular expressions, slang
> regular expressions do support this particular construct. But it has
> to be written with the brace characters escaped by a backslash. In
> the .slrnrc file, the backslash must also be escaped. Hence, in an
> slrnrc file, the RE " ? ?" can be written as " \\{0,2\\}". Note also
> the first number following the opening brace is not optional and must
> be specified. --John
This was all news to me. It isn't documented here:
<http://www.jedsoft.org/slang/doc/html/slang-22.html>
Incidentally, I notice that "contcatenation" on that page has too many
"t"s in it.
Your wonderful newsreader is still working well for me, by the way.
The version I'm using ought to be version 1.0, just like I told you
and everybody else who would listen, not recently but *years ago*.
--
PJR :-) | οἵη περ φύλλων γενεὴ, τοίη δὲ καὶ ἀνδρῶν.
| φύλλα τὰ μέν τ' ἄνεμος χαμάδις χέει, ἄλλα δέ θ' ὕλη
| τηλεθόωσα φύει, ἔαρος δ' ἐπιγίγνεται ὥρη·
| ὣς ἀνδρῶν γενεὴ ἡ μὲν φύει ἡ δ' ἀπολήγει. (Homer)
Re: [slrn] Change/add recognized quote character(s) in article pager
Author: Peter J Ross
Date: Sat, 10 Mar 2012 21:59
Date: Sat, 10 Mar 2012 21:59
29 lines
2554 bytes
2554 bytes
In news.software.readers on Fri, 9 Mar 2012 15:17:41 +0000 (UTC), John
E. Davis <jed@jedsoft.org> wrote:
> On Fri, 09 Mar 2012 07:11:32 -0500, Shmuel Metz <spamtrap@library.lspace.org.invalid>
> wrote:
>> Does it support the whitespace escape \s?
>
> No, you have to use something like "[ \t]".
This seems to be undocumented.
> I wrote the regexp parser
> sometime around 1993 based upon an Ultrix manpage for `ex`. There
> were very few choices back then and I knew of none that were portable
> to the systems that I was supporting for the slang library, e.g.,
> 16 bit MSDOS. --John
Is there any news about PCRE or Oniguruma support in slrn?
You've done plenty of work for slrn users already, and there's no
reason for you to provide this minor improvement. I'm just asking out
of curiosity.
--
PJR :-) | οἵη περ φύλλων γενεὴ, τοίη δὲ καὶ ἀνδρῶν.
| φύλλα τὰ μέν τ' ἄνεμος χαμάδις χέει, ἄλλα δέ θ' ὕλη
| τηλεθόωσα φύει, ἔαρος δ' ἐπιγίγνεται ὥρη·
| ὣς ἀνδρῶν γενεὴ ἡ μὲν φύει ἡ δ' ἀπολήγει. (Homer)
Re: [slrn] Change/add recognized quote character(s) in article pager
Author: John E. Davis
Date: Sun, 11 Mar 2012 05:26
Date: Sun, 11 Mar 2012 05:26
20 lines
2225 bytes
2225 bytes
On Sat, 10 Mar 2012 21:59:22 +0000 (UTC), Peter J Ross <pjr@example.invalid> wrote: >> No, you have to use something like "[ \t]". > > This seems to be undocumented. You can also use a literal tab character, but I prefer the more explicit escaped form above. > Is there any news about PCRE or Oniguruma support in slrn? No news is good news, right? I have not had time to look into adding a different RE library into slrn, but I can say that it will not be PCRE since it does not support malformed UTF-8. And yes, I agree that slrn should be 1.0 but I expect it to stay at pre-1.0 for quite a while. Thanks, --John
Re: [slrn] Change/add recognized quote character(s) in article pager
Author: Peter J Ross
Date: Mon, 12 Mar 2012 23:47
Date: Mon, 12 Mar 2012 23:47
58 lines
3444 bytes
3444 bytes
In news.software.readers on Sun, 11 Mar 2012 05:26:40 +0000 (UTC),
John E. Davis <jed@jedsoft.org> wrote:
> On Sat, 10 Mar 2012 21:59:22 +0000 (UTC), Peter J Ross <pjr@example.invalid>
> wrote:
>>> No, you have to use something like "[ \t]".
>>
>> This seems to be undocumented.
>
> You can also use a literal tab character, but I prefer the more
> explicit escaped form above.
But the point is that neither form is documented.
>> Is there any news about PCRE or Oniguruma support in slrn?
>
> No news is good news, right? I have not had time to look into adding
> a different RE library into slrn, but I can say that it will not be
> PCRE since it does not support malformed UTF-8.
I fully understand that you don't have much free time.
Would I be right in thinking that it would be quite easy to devise
code so that the user could plug in either PCRE or Oniguruma (or even
Lisp!) according to personal preference?
If so, maybe somebody could be found who could write a patch.
> And yes, I agree that slrn should be 1.0 but I expect it to stay at
> pre-1.0 for quite a while.
Why?
I don't understand why slrn is almost the only software on earth that
doesn't get a 1.0 release when it does everything it's supposed to do
and has no significant bugs.
This is why I dropped out of the slrn and slrn-doc development teams.
I was trying to get the documentation ready for an imminent 1.0
release, but it became clear that the 1.0 release was never going to
happen, and I got more and more frustrated by the delays, and I wasn't
the only one; check the mailing list archives.
Meanwhile, tin is at version 2.x, despite having bronze-age
documentation and stone-age scorefiling. Is slrn really less finished
than tin?
Just release the current SVN code as slrn 1.0.0.
Please!
--
PJR :-) | οἵη περ φύλλων γενεὴ, τοίη δὲ καὶ ἀνδρῶν.
| φύλλα τὰ μέν τ' ἄνεμος χαμάδις χέει, ἄλλα δέ θ' ὕλη
| τηλεθόωσα φύει, ἔαρος δ' ἐπιγίγνεται ὥρη·
| ὣς ἀνδρῶν γενεὴ ἡ μὲν φύει ἡ δ' ἀπολήγει. (Homer)
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads