🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
6 messages
6 total messages Started by Max Quordlepleen Sun, 23 Nov 2003 03:45
Import Xnews scorefile to PAN?
#138012
Author: Max Quordlepleen
Date: Sun, 23 Nov 2003 03:45
5 lines
1193 bytes
Has anybody done this? What sort of modifications might be necessary, if
any. Thanks.

-- 
RU 297164
Re: Import Xnews scorefile to PAN?
#138066
Author: J.B. Nicholson-Owens
Date: Mon, 24 Nov 2003 01:37
6 lines
1327 bytes
Max Quordlepleen wrote:
> Has anybody done this? What sort of modifications might be necessary, if
> any. Thanks.

If you have a pointer to the Xnews scorefile syntax, I'm sure there are many
people who could help migrate to Pan.  Welcome to the free software world.
Re: Import Xnews scorefile to PAN?
#138068
Author: Max Quordlepleen
Date: Mon, 24 Nov 2003 02:23
14 lines
1746 bytes
On Mon, 24 Nov 2003 14:37, in <slrnbs2o95.79d.jbn@forestfield.org>, J.B.
Nicholson-Owens wrote:

> 
> If you have a pointer to the Xnews scorefile syntax, I'm sure there are
> many
> people who could help migrate to Pan.  Welcome to the free software
> world.

Why thank you, kind sir, even if I have been using Mandrake Linux for
almost exactly a year now. I had a read of some scores that Pan itself
generate for me, and I think I ought to be able to make the necessary
tweaks. The two syntaxes are _very_ similar, both appear to be  modelled
on slrn's. 
Re: Import Xnews scorefile to PAN?
#138071
Author: Tech Zero
Date: Mon, 24 Nov 2003 03:08
18 lines
1679 bytes
The voice of "J.B. Nicholson-Owens" drifted in on the cyber-winds, 
from the sea of virtual chaos...

> Max Quordlepleen wrote:
>> Has anybody done this? What sort of modifications might be
>> necessary, if any. Thanks.
> 
> If you have a pointer to the Xnews scorefile syntax, I'm sure
> there are many people who could help migrate to Pan.  Welcome to
> the free software world. 


Xnews uses PCRE...
  http://xnews.newsguy.com/manual.html#regex
  http://virtual.park.uga.edu/humcomp/perl/regex2a.html

-- 
The Tech Zero (Maxwell Pollare), Lost in the keys of Xnews...
Re: Import Xnews scorefile to PAN?
#138080
Author: J.B. Nicholson-Owens
Date: Mon, 24 Nov 2003 07:40
51 lines
3066 bytes
Tech Zero wrote:
> Xnews uses PCRE...

Here's the help I can muster on the subject of converting one's Xnews
scorefile to slrn.  Hopefully this will work well enough for Pan to be of
use there too.

If it uses PCRE regular expressions throughout the score file, and if one is
making a slrn-compatible scorefile, one would need to convert regular
expressions to wildmats.  This is not always possible because wildmats are
far less expressive (one can do certain limited forms of wildcard entries).
Going from wildmats to regular expressions is lossless, going the other way
is lossy.

Wildmats are only probably going to work on ASCII characters.  See the
description in http://www.faqs.org/rfcs/rfc2980.html (Common NNTP
Extensions), section 3.3.1 for informative examples of wildmat ranges.

Pan might use a different regular expression engine than slrn.  I don't know
exactly which one it uses, so to be safe, try rewriting regular expressions
with only

  .*?+()[]^$

metacharacters and they're typically accepted meaning.  You can also safely
use a backslash to escape metacharacters.

S-Lang's regular expression engine supports two zero-width assertions
matching the beginning and ending word boundaries ("\<" and "\>").

Alternation is not supported in S-Lang regular expressions, but you might be
able to get along with slrn scores that look like

  [group-wildmat]
     Score:: 100      % <-- note the two colons on this line meaning OR.
        From: someone you want to read
        From: someone@you.want.to.read.com

or mentioning multiple newsgroups

  [alt.alpha, alt.beta]

Finally, avoid using parentheses for grouping:

  foo(and)?bar

matches "fooandbar" or "foobar" with PCRE but is nonsensical with S-Lang's
regular expression engine because the parentheses only work to build
backreferences and the question mark only matches a single character.

Happy newsreading.
Re: Import Xnews scorefile to PAN?
#138478
Author: Brad
Date: Mon, 01 Dec 2003 22:23
8 lines
1442 bytes
Tech Zero <spamnet-nov@dragonfur.ca> wrote in 
news:Xns943CCCDFB5C8FZeroOne@news.individual.net:

> Xnews uses PCRE...
>   http://xnews.newsguy.com/manual.html#regex
>   http://virtual.park.uga.edu/humcomp/perl/regex2a.html

Newest pan beta now uses PCRE now as well...
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