🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
12 messages
12 total messages Started by Sherkan Tue, 30 Jan 2007 16:33
[Xnews] Score capital letters
#195046
Author: Sherkan
Date: Tue, 30 Jan 2007 16:33
20 lines
1995 bytes
Hello, I was trying to make a rule for scoring about capital letters, or 
not, and it doesn't work.

Before writing it to score.ini I'm testing it in the search box of the 
group view window so I haven't got a rule yet.

Anyway, the thing is that I follow the manual and doesn't work. Whatever I 
use for stating letter ^[^a] or ^[^A] or ^[\^a] or ^[\^A] it matches 
exactly every time. No difference.

What's wrong? I'm stating to think that is because it's Windows and it has 
no case sensitive system as unix/linux...

I don't know so anyhelp is wellcome.

-- 
          PGP          |  /"\  ASCII ribbon campaign
 (Pretty Good Privacy) |  \ /  against HTML mail and
    UserID Sherkan     |   X   postings.
   KeyID 0x52C4F55C    |  / \  (c) Black Dragon
Re: [Xnews] Score capital letters
#195055
Author: Guy
Date: Tue, 30 Jan 2007 20:09
49 lines
2718 bytes
Sherkan wrote:

> Hello, I was trying to make a rule for scoring about capital
> letters, or not, and it doesn't work.
> 
> Before writing it to score.ini I'm testing it in the search box of
> the group view window so I haven't got a rule yet.
> 

That box is case insensitive.

> Anyway, the thing is that I follow the manual and doesn't work.
> Whatever I use for stating letter ^[^a] or ^[^A] or ^[\^a] or
> ^[\^A] it matches exactly every time. No difference.
> 

What are you trying to do. Match begin of line with capital letter A?

In score file to match begin of Subject line with any upcase letter:

Subject = ^[A-Z]

same for lowcase:

Subject = ^[a-z]


> What's wrong? I'm stating to think that is because it's Windows
> and it has no case sensitive system as unix/linux...
> 

RTFM

 Regular expression

 8) Case sensitivity



Tip: 
 Start New message with string to match in Subject line
 Save to Outbox
 With message in Outbox do Article | Add to score file
  Play with option and see how Xnews writes to score file

-- 
Guy
Xnews Icon Patcher Files
<http://xnews-icon-patchers.bebto.com/patcher.html>
Re: [Xnews] Score capital letters
#195056
Author: John Wunderlich
Date: Tue, 30 Jan 2007 20:19
30 lines
2017 bytes
Sherkan <alderaan_bay.SIN.SPAM@SPAM.NO.yahoo.es> wrote in
news:Xns98C8B2A5AB2DDikaruskatakrus@193.42.231.152: 

> Hello, I was trying to make a rule for scoring about capital
> letters, or not, and it doesn't work.
> 
> Before writing it to score.ini I'm testing it in the search box of
> the group view window so I haven't got a rule yet.
> 
> Anyway, the thing is that I follow the manual and doesn't work.
> Whatever I use for stating letter ^[^a] or ^[^A] or ^[\^a] or
> ^[\^A] it matches exactly every time. No difference.
> 
> What's wrong? I'm stating to think that is because it's Windows
> and it has no case sensitive system as unix/linux...
> 
> I don't know so anyhelp is wellcome.
> 

What does your score entry look like?
  Score: 50
  Subject: AaBbCc    <- This doesn't care about capitalization

  Score: 50
  Subject= AaBbCc    <- This must match capitalization.

(Use an equal sign instead of a Colon after the Scoring Category)

HTH,
  John
Re: [Xnews] Score capital letters
#195063
Author: Tech Zero
Date: Wed, 31 Jan 2007 04:31
22 lines
1977 bytes
Reality folded in on itself, and somewhere the following words from
"Sherkan" appeared in history:

> Hello, I was trying to make a rule for scoring about capital
> letters, or not, and it doesn't work. Before writing it to
> score.ini I'm testing it in the search box of the group view
> window so I haven't got a rule yet.


You can use (?-i) to make it case sensitive. For example:

   (?-i)^A

Note: The starting "Re" is ignored when testing in the Quick Score box
but is seen in the score entries, so you'll have to adjust for that.

-- 
 __ __| |            __ __|           |    __  /
    |     \    -_)      |   -_)   _|    \     /    -_)   _| _ \
   _|  _| _| \___|     _| \___| \__| _| _| ____| \___| _| \___/

Missing a quantity of sleep to help others since 1997...
Re: [Xnews] Score capital letters
#195075
Author: Sherkan
Date: Wed, 31 Jan 2007 17:31
19 lines
1985 bytes
Tech Zero <uselesspam@dragonfur.ca> wrote in 
news:Xns98C8DB0718A33AlphaTwo@draco.dragonfur.ca:

> You can use (?-i) to make it case sensitive. For example:
> 
>    (?-i)^A
> 
> Note: The starting "Re" is ignored when testing in the Quick Score box
> but is seen in the score entries, so you'll have to adjust for that.
> 

Thank you, for your explanation and your help Tech Zero, this is what I 
was searching for :)

-- 
          PGP          |  /"\  ASCII ribbon campaign
 (Pretty Good Privacy) |  \ /  against HTML mail and
    UserID Sherkan     |   X   postings.
   KeyID 0x52C4F55C    |  / \  (c) Black Dragon
Re: [Xnews] Score capital letters
#195076
Author: Sherkan
Date: Wed, 31 Jan 2007 17:35
59 lines
2845 bytes
Guy <Use-Reply-To-Address-Header@[127.1]> wrote in 
news:Xns98C8900F273E62E284CEEC009E394A9D7@127.0.0.1:

> Sherkan wrote:
> 
>> Hello, I was trying to make a rule for scoring about capital
>> letters, or not, and it doesn't work.
>> 
>> Before writing it to score.ini I'm testing it in the search box of
>> the group view window so I haven't got a rule yet.
>> 
> 
> That box is case insensitive.

Is it?

It doesn't work for me.


>> Anyway, the thing is that I follow the manual and doesn't work.
>> Whatever I use for stating letter ^[^a] or ^[^A] or ^[\^a] or
>> ^[\^A] it matches exactly every time. No difference.
>> 
> 
> What are you trying to do. Match begin of line with capital letter A?

Yes.


> In score file to match begin of Subject line with any upcase letter:
> 
> Subject = ^[A-Z]
> 
> same for lowcase:
> 
> Subject = ^[a-z]

In the box we are referring the equal does nothing, maybe that was the 
fault.

>> What's wrong? I'm stating to think that is because it's Windows
>> and it has no case sensitive system as unix/linux...
>> 
> 
> RTFM


What do you think I did?

Correct me but the answer given by Tech Zero is NOT in the manual, is it? 
Sorry, I couldn't find or imagine that way.

I was frustrated so avoid saying RTFM.

-- 
          PGP          |  /"\  ASCII ribbon campaign
 (Pretty Good Privacy) |  \ /  against HTML mail and
    UserID Sherkan     |   X   postings.
   KeyID 0x52C4F55C    |  / \  (c) Black Dragon
Re: [Xnews] Score capital letters
#195077
Author: Sherkan
Date: Wed, 31 Jan 2007 17:38
26 lines
2101 bytes
John Wunderlich <jwunderlich@lycos.com> wrote in 
news:Xns98C87D4B3DDBAwunderpsdrscraytheon@138.126.254.210:

> What does your score entry look like?
>   Score: 50
>   Subject: AaBbCc    <- This doesn't care about capitalization
> 
>   Score: 50
>   Subject= AaBbCc    <- This must match capitalization.
> 
> (Use an equal sign instead of a Colon after the Scoring Category)
> 
> HTH,
>   John

I hadn't a rule yet, I was testing with the search box in the group 
window.

But thank you for pointing me to the equal sign, it helps too :)


-- 
          PGP          |  /"\  ASCII ribbon campaign
 (Pretty Good Privacy) |  \ /  against HTML mail and
    UserID Sherkan     |   X   postings.
   KeyID 0x52C4F55C    |  / \  (c) Black Dragon
Re: [Xnews] Score capital letters
#195078
Author: Sherkan
Date: Wed, 31 Jan 2007 17:48
28 lines
2266 bytes
Sherkan <alderaan_bay.SIN.SPAM@SPAM.NO.yahoo.es> wrote in
news:Xns98C9BC6D51F0Eikaruskatakrus@193.42.231.152: 

> Tech Zero <uselesspam@dragonfur.ca> wrote in 
> news:Xns98C8DB0718A33AlphaTwo@draco.dragonfur.ca:
> 
>> You can use (?-i) to make it case sensitive. For example:
>> 
>>    (?-i)^A
>> 
>> Note: The starting "Re" is ignored when testing in the Quick Score
>> box but is seen in the score entries, so you'll have to adjust for
>> that. 
>> 
> 
> Thank you, for your explanation and your help Tech Zero, this is what
> I was searching for :)
> 

Mmmm that's the reason this didn't work for me... in the manual says
(?i) without the - minus sign... :/


-- 
          PGP          |  /"\  ASCII ribbon campaign
 (Pretty Good Privacy) |  \ /  against HTML mail and
    UserID Sherkan     |   X   postings.
   KeyID 0x52C4F55C    |  / \  (c) Black Dragon
Re: [Xnews] Score capital letters
#195086
Author: Guy
Date: Thu, 01 Feb 2007 01:05
88 lines
3937 bytes
Sherkan wrote:

> Guy <Use-Reply-To-Address-Header@[127.1]> wrote in 
> news:Xns98C8900F273E62E284CEEC009E394A9D7@127.0.0.1:
> 
>> Sherkan wrote:
>> 
>>> Hello, I was trying to make a rule for scoring about capital
>>> letters, or not, and it doesn't work.
>>> 
>>> Before writing it to score.ini I'm testing it in the search box
>>> of the group view window so I haven't got a rule yet.
>>> 
>> 
>> That box is case insensitive.
> 
> Is it?
> 
> It doesn't work for me.
> 

Case insensitive means that A and a are equal, not different.

> 
>>> Anyway, the thing is that I follow the manual and doesn't work.
>>> Whatever I use for stating letter ^[^a] or ^[^A] or ^[\^a] or
>>> ^[\^A] it matches exactly every time. No difference.
>>> 
>> 
>> What are you trying to do. Match begin of line with capital
>> letter A? 
> 
> Yes.
> 
> 
>> In score file to match begin of Subject line with any upcase
>> letter: 
>> 
>> Subject = ^[A-Z]
>> 
>> same for lowcase:
>> 
>> Subject = ^[a-z]
> 
> In the box we are referring the equal does nothing, maybe that was
> the fault.
> 

I do not write about the box here but of 
the entry which will be made in the score file.


>>> What's wrong? I'm stating to think that is because it's Windows
>>> and it has no case sensitive system as unix/linux...
>>> 
>> 
>> RTFM
> 
> 
> What do you think I did?
> 
> Correct me but the answer given by Tech Zero is NOT in the manual,
> is it? Sorry, I couldn't find or imagine that way.
> 
> I was frustrated so avoid saying RTFM.
> 

I did not just write RTFM but point you to 
the place in the Xnews Manual... 
that filename MANUAL.HTML (someplace in the Xnews installation).

Here it explains about the box and what to do in the score file, 
after all you do want to make a score file entry.

  Regular expression
  
  8) Case sensitivity
  
  In Xnews, the filter regex is always case insensitive. In the score
  file, you can make regex case sensitive by specifying Keyword= expression 
  rather than Keyword: expression. 
  In the folder search dialog, you can toggle case sensitivity 
  by checking the "Match case" box. 
  
-- 
Guy
Xnews Icon Patcher Files
<http://xnews-icon-patchers.bebto.com/patcher.html>
Re: [Xnews] Score capital letters
#195092
Author: Sherkan
Date: Thu, 01 Feb 2007 03:31
50 lines
3128 bytes
Guy <Use-Reply-To-Address-Header@[127.1]> wrote in
news:Xns98C9C233BA8652E284CEEC009E394A9D7@127.0.0.1: 

> Sherkan wrote:
> 
>> Guy <Use-Reply-To-Address-Header@[127.1]> wrote in 
>> news:Xns98C8900F273E62E284CEEC009E394A9D7@127.0.0.1:
>> 
>>> Sherkan wrote:
>>> 
>>>> Hello, I was trying to make a rule for scoring about capital
>>>> letters, or not, and it doesn't work.
>>>> 
>>>> Before writing it to score.ini I'm testing it in the search box
>>>> of the group view window so I haven't got a rule yet.
>>>> 
>>> 
>>> That box is case insensitive.
>> 
>> Is it?
>> 
>> It doesn't work for me.
>> 
> 
> Case insensitive means that A and a are equal, not different.

Ups, that happens when you read quick (in-sensitive).


> I did not just write RTFM but point you to 
> the place in the Xnews Manual... 
> that filename MANUAL.HTML (someplace in the Xnews installation).

Ok, I found what you said. Sorry.

Anyway, you must understand that this program is not only used by 
english speaking/reading people... reading it again (pcre.html) with the 
hint of Tech Zero I understand better the question I was asking for. Ok, 
and I found what you were saying but I didn't refer so much to 
manual.html if I'm using regex I think is normal to refer to pcre.html

Oh and I read at the wikipedia too but I didn't read nothing especific 
about case sensitive and the use of the - minus as negative afirmation. 
And you find less things when you get frutrated.

-- 
          PGP          |  /"\  ASCII ribbon campaign
 (Pretty Good Privacy) |  \ /  against HTML mail and
    UserID Sherkan     |   X   postings.
   KeyID 0x52C4F55C    |  / \  (c) Black Dragon
Re: [Xnews] Score capital letters
#195139
Author: Tech Zero
Date: Fri, 02 Feb 2007 01:38
18 lines
1923 bytes
Reality folded in on itself, and somewhere the following words from
"Sherkan" appeared in history:

>>> (?-i)^A

> Mmmm that's the reason this didn't work for me... in the manual
> says (?i) without the - minus sign... :/


Found it in the prce.html file myself...
It's an "inverse caseless" switch, as in NOT caseless.

-- 
 __ __| |            __ __|           |    __  /
    |     \    -_)      |   -_)   _|    \     /    -_)   _| _ \
   _|  _| _| \___|     _| \___| \__| _| _| ____| \___| _| \___/

Missing a quantity of sleep to help others since 1997...
Re: [Xnews] Score capital letters
#195207
Author: Sherkan
Date: Sun, 04 Feb 2007 17:54
25 lines
2234 bytes
Tech Zero <uselesspam@dragonfur.ca> wrote in 
news:Xns98CABDB6DF551AlphaTwo@draco.dragonfur.ca:

> Reality folded in on itself, and somewhere the following words from
> "Sherkan" appeared in history:
> 
>>>> (?-i)^A
> 
>> Mmmm that's the reason this didn't work for me... in the manual
>> says (?i) without the - minus sign... :/
> 
> 
> Found it in the prce.html file myself...
> It's an "inverse caseless" switch, as in NOT caseless.

That happens when english is not your language.

You are right. Sorry for waste the time of all of you.


-- 
          PGP          |  /"\  ASCII ribbon campaign
 (Pretty Good Privacy) |  \ /  against HTML mail and
    UserID Sherkan     |   X   postings.
   KeyID 0x52C4F55C    |  / \  (c) Black Dragon
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