Thread View: news.software.readers
6 messages
6 total messages
Started by andrew
Wed, 20 Jun 2007 00:48
slrn Scorefile syntax
Author: andrew
Date: Wed, 20 Jun 2007 00:48
Date: Wed, 20 Jun 2007 00:48
19 lines
1542 bytes
1542 bytes
Hi,
I am a little puzzled as to why the following syntax does not work in
the slrn scorefile:
[*]
Score:: 200
From: Peter J Ross <pjr@example.invalid> % Linux groups
From: andrew <nospam@andrew.invalid> % Me!
From: "Jukka K. Korpela" <jkorpela@cs.tut.fi> % Html groups
My thinking was that two colons indicate that the score should be
awarded if any of the tests re passed (logical OR. But it fails :- )
Andrew
--
Andrew's Corner
http://people.aapt.net.au/~adjlstrong/homer.html
Re: slrn Scorefile syntax
Author: Blinky the Shark
Date: Wed, 20 Jun 2007 01:11
Date: Wed, 20 Jun 2007 01:11
24 lines
2060 bytes
2060 bytes
andrew wrote: > Hi, > > I am a little puzzled as to why the following syntax does not work in > the slrn scorefile: > > [*] > > Score:: 200 > From: Peter J Ross <pjr@example.invalid> % Linux groups > From: andrew <nospam@andrew.invalid> % Me! > From: "Jukka K. Korpela" <jkorpela@cs.tut.fi> % Html groups I wonder if thost "<" and ">" characters need escaping, or somehow else being handled. Like losing them. Try dropping *all* of those expressions, just keeping, for example Peter J Ross and see if that fixes things. If it does and you feel you really need the whole shebang in there as you're showing each line above, then start inserting what you've taken out, bit by bit, until you see what breaks the rules. -- Blinky RLU 297263 Killing all posts from Google Groups The Usenet Improvement Project: http://blinkynet.net/comp/uip5.html
Re: slrn Scorefile syntax
Author: Troy Piggins
Date: Wed, 20 Jun 2007 01:22
Date: Wed, 20 Jun 2007 01:22
47 lines
2674 bytes
2674 bytes
* andrew is quoted & my replies are inline below : > Hi, > > I am a little puzzled as to why the following syntax does not work in > the slrn scorefile: > > [*] > > Score:: 200 > From: Peter J Ross <pjr@example.invalid> % Linux groups > From: andrew <nospam@andrew.invalid> % Me! > From: "Jukka K. Korpela" <jkorpela@cs.tut.fi> % Html groups > > My thinking was that two colons indicate that the score should be > awarded if any of the tests re passed (logical OR. But it fails :- ) Correct. Couple of points here, although it's probably the first causing trouble. Don't put comments on same line as your rules, although at the end of the Score: line is fine - in fact that's how the matching score is identified when you hit 'v' on a scored post. Comments on lines by themselves are fine. Also, the points '.' should be escaped '\.', although your above rules should still match since an un-escaped '.' will match any character. So should read: [*] Score:: 200 % nice guys % Linux groups From: Peter J Ross <pjr@example\.invalid> % Me! From: andrew <nospam@andrew\.invalid> % Html groups From: "Jukka K. Korpela" <jkorpela@cs\.tut\.fi> -- Troy Piggins | http://piggo.com/~troy slrn macros and howto: ___ | __ __ ,-O (o- O http://piggo.com/~troy/slrn |___ | |/ |/ | O ) //\ O RLU#415538 ___| | | | | `-O V_/_ OOO
Re: slrn Scorefile syntax
Author: andrew
Date: Wed, 20 Jun 2007 01:47
Date: Wed, 20 Jun 2007 01:47
33 lines
2026 bytes
2026 bytes
On 2007-06-20, Troy Piggins <usenet-0706@piggo.com> wrote:
> * andrew is quoted & my replies are inline below :
>> Hi,
>>
>> I am a little puzzled as to why the following syntax does not work in
>> the slrn scorefile:
>>
>> [*]
>>
>> Score:: 200
>> From: Peter J Ross <pjr@example.invalid> % Linux groups
[...]
>
> So should read:
>
> [*]
> Score:: 200 % nice guys
> % Linux groups
> From: Peter J Ross <pjr@example\.invalid>
Thanks for that I have corrected the syntax and now all is well. I did
not realise that I could edit the scorefile from within slrn, well to
be perfectly honest I did not realise that I could use 'v' to even
access the descriptions of the rules :-)
I must be getting close to the top of the learning curve soon!!
Andrew
--
Andrew's Corner
http://people.aapt.net.au/~adjlstrong/homer.html
Re: slrn Scorefile syntax
Author: andrew
Date: Wed, 20 Jun 2007 02:16
Date: Wed, 20 Jun 2007 02:16
23 lines
2064 bytes
2064 bytes
On 2007-06-20, andrew <nospam@andrew.invalid> wrote:
[...]
>
> Thanks for that I have corrected the syntax and now all is well. I did
> not realise that I could edit the scorefile from within slrn, well to
> be perfectly honest I did not realise that I could use 'v' to even
> access the descriptions of the rules :-)
>
> I must be getting close to the top of the learning curve soon!!
>
Hmmmm.... I guess a closer reading of the manual would help me a
little:
The `Score' keyword also serves to delimit tests. You can
optionally add a comment behind the score, which will then be used as
the name of the scorefile entry and displayed when using view_scores
('v') in article mode.
Andrew
--
Andrew's Corner
http://people.aapt.net.au/~adjlstrong/homer.html
Re: slrn Scorefile syntax
Author: Troy Piggins
Date: Wed, 20 Jun 2007 03:12
Date: Wed, 20 Jun 2007 03:12
36 lines
2312 bytes
2312 bytes
* andrew is quoted & my replies are inline below : > On 2007-06-20, Troy Piggins <usenet-0706@piggo.com> wrote: >> * andrew is quoted & my replies are inline below : >>> Hi, >>> >>> I am a little puzzled as to why the following syntax does not work in >>> the slrn scorefile: >>> >>> [*] >>> >>> Score:: 200 >>> From: Peter J Ross <pjr@example.invalid> % Linux groups > > [...] >> >> So should read: >> >> [*] >> Score:: 200 % nice guys >> % Linux groups >> From: Peter J Ross <pjr@example\.invalid> > > Thanks for that I have corrected the syntax and now all is well. I did > not realise that I could edit the scorefile from within slrn, well to > be perfectly honest I did not realise that I could use 'v' to even > access the descriptions of the rules :-) > > I must be getting close to the top of the learning curve soon!! Glad it worked :) -- Troy Piggins | http://piggo.com/~troy slrn macros and howto: ___ | __ __ ,-O (o- O http://piggo.com/~troy/slrn |___ | |/ |/ | O ) //\ O RLU#415538 ___| | | | | `-O V_/_ OOO
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