🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
25 messages
25 total messages Started by David Gerard Sat, 05 Dec 1998 00:00
slrn won't score on one group
#45124
Author: David Gerard
Date: Sat, 05 Dec 1998 00:00
22 lines
1510 bytes
A weird thing is happening with this copy of slrn. It will score
on every newsgroup except alt.gothic . I have no idea why.
I go into a.g and see articles that, dammit, *should* be scored
and aren't.

It's not just scores under [alt.gothic] that aren't applied; ones
under [*] aren't being applied either.

What on earth could be causing this?

I changed from 0.9.5.3 to 0.9.5.4 recently, but I think this started
happening *after* the change.


-- 
http://thingy.apana.org.au/~fun/                http://suburbia.net/~fun/scn/
    "Do you want to come up for coffee?"
    "I don't drink coffee."
    "I haven't got any."      -- 'Brassed Off'

Re: slrn won't score on one group
#45120
Author: Jan Hlavacek
Date: Sat, 05 Dec 1998 00:00
40 lines
2204 bytes
On 5 Dec 1998 05:33:17 GMT, David Gerard <fun@thingy.apana.org.au>
wrote:
> 
> A weird thing is happening with this copy of slrn. It will score
> on every newsgroup except alt.gothic . I have no idea why.
> I go into a.g and see articles that, dammit, *should* be scored
> and aren't.
> 
> It's not just scores under [alt.gothic] that aren't applied; ones
> under [*] aren't being applied either.
> 
> What on earth could be causing this?

It's hard to tell without seeing your Score file.  One possibility is
that you have a syntax error in the a.g part of the Score file.  Try to
eliminate all the a.g rules (perhaps enclosing them between
#iffalse

#endif

and see if the [*] rules get applied in that case.

>     "Do you want to come up for coffee?"
>     "I don't drink coffee."
>     "I haven't got any."      -- 'Brassed Off'

"Do you want tea?"
"No,  thank you."
"Do you want meat?"
"Sure,  I will have some."
"We haven't got any.  Do you want tea?"   -- sorry,  don't remember
					     where I have read that

-- 
Jan Hlav\'{a}\v{c}ek <lahvak@math.mps.ohio-state.edu>  (BCC's will bounce)
home page: http://www.math.ohio-state.edu/~lahvak/
slrn page: http://www.math.ohio-state.edu/~lahvak/software/slrn.html
slrn documentation: http://www.math.ohio-state.edu/~lahvak/software/slrn/

Re: slrn won't score on one group
#45220
Author: Thorfinn
Date: Mon, 07 Dec 1998 00:00
36 lines
2332 bytes
In news.software.readers, on 7 Dec 1998 09:48:33 GMT
David Gerard <fun@thingy.apana.org.au> wrote:
>I accidentally put an error in the scorefile (a ';' instead of a ':' -
>apparently I didn't hit the shift key hard enough) and noticed it ignore
>everything thereafter. Maybe that's it.

>I wasn't aware the scorefile takes C preprocessor directives ...

Uhh.. it sort-of does. :)

It takes "slprep" directives... Which is slang's pre-processor.

It looks somewhat like the C preprocessor... but has differences.

I don't know if it's documented anywhere clearly anywhere other than
in the source for the slang library.

Ditto with the regular expressions that slrn uses, actually... they're
slang regexps... which are somewhat like, but actually quite different
from, say, the gnu regexps, or the perl regexps.

That's one of the small things that annoys me about slang, actually. 
IMO, it *should* use gnu standard regexps, and should have used
standard CPP code that's out there.  I can understand the "not
invented here" syndrome, given that I do it myself a fair bit, but
still...  it's annoying.

Later,

   Thorf

-- 
<a href="http://www.netizen.com.au/">thorfinn@netizen.com.au</a>
Drive defensively.  Buy a tank.

Re: slrn won't score on one group
#45221
Author: Thorfinn
Date: Mon, 07 Dec 1998 00:00
37 lines
2205 bytes
In news.software.readers, on 7 Dec 1998 10:15:38 GMT
David Formosa <dformosa@zeta.org.au> wrote:
>In article <slrn76n9nb.kg.thorfinn@netizen.com.au>, Thorfinn wrote:
>>Ditto with the regular expressions that slrn uses, actually... they're
>>slang regexps... which are somewhat like, but actually quite different
>>from, say, the gnu regexps, or the perl regexps.
>>
>>That's one of the small things that annoys me about slang, actually. 
>>IMO, it *should* use gnu standard regexps, 
>On the issue of slang's non standard regexps, is there a way to make
>them case senservit?

Uhh... \c turns on sensitivity, and \C turns it back off.

So,

Subject: ^\cRe:

will match "Subject: Re: XXX" but will *not* match "Subject: RE: XXX"

and

Subject: ^\cRe: \CXXX

will match "Subject: Re: XXX" and also match "Subject: Re: xxx" but
not match "Subject: RE: XXX"

Later,

    Thorfinn

-- 
<a href="http://www.netizen.com.au/">thorfinn@netizen.com.au</a>
Disciple   - How can you be what you are not?
Zen Master - By not being.

Re: slrn won't score on one group
#45227
Author: Dawn Owens-Nicholson
Date: Mon, 07 Dec 1998 00:00
23 lines
1864 bytes
Thorfinn wrote:
> IMO, it [s-lang] *should* use gnu standard regexps, and should have used
> standard CPP code that's out there.  I can understand the "not
> invented here" syndrome, given that I do it myself a fair bit, but
> still...  it's annoying.

Does perl use GNU regexps?  In any event, JED has posted about his use of
his own regex code in <slrn5g41sd.rr4.davis@mygir.davis.net>:

  Ian T Zimmerman <itz@kronstadt.rahul.net> asked:
  > JED: WHY not use a native regexp library if one is available?

  Such a library is not available on all systems.  There also seems to be no
  uniformity among the various regular expression packages that are
  available.  The slrn/jed/slang regular expressions must be uniform across
  Unix, MSDOS, OS/2, and VMS.  For that reason, as well as licensing issues,
  I wrote my own set of routines.  Someday I will add support for egrep
  style expressions but I have better things to do at the moment.

In short, it doesn't appear to be NIHS.  The module import facility might be
of help here, did you look at that (it's in the 1.3 snapshots).

Re: S-Lang REs (was: Re: slrn won't score on one group)
#45229
Author: dfor... David Formosa
Date: Mon, 07 Dec 1998 00:00
17 lines
1388 bytes
In article <slrn76od4...@aluche.mit.edu>, John E. Davis wrote:

[...]  Finally, although S-Lang REs get criticized, they
>are consistent across all platforms that the library supports (Unix,
>OS/2, VMS, Win32, MSDOS, AmigaOS, BEOS, QNX) and may be distributed
>under both the GNU and Artistic licenses.

I point out that perlre also have this advantage.



-- 
Please excuse my spelling as I suffer from agraphia. See
http://www.zeta.org.au/~dformosa/Spelling.html to find out more.

Re: slrn won't score on one group
#45232
Author: John E. Davis
Date: Mon, 07 Dec 1998 00:00
11 lines
1333 bytes
On 7 Dec 1998 18:00:28 GMT, Dawn Owens-Nicholson <bluemoon@ux6.cso.uiuc.edu>
wrote:
>In short, it doesn't appear to be NIHS.  The module import facility might be
>of help here, did you look at that (it's in the 1.3 snapshots).

I think that this is the best way to go: write a module using whatever
regexp package you want and then import it.

--John

Re: slrn won't score on one group
#45237
Author: David Formosa
Date: Mon, 07 Dec 1998 00:00
21 lines
1372 bytes
In article <slrn76n9nb.kg.thorfinn@netizen.com.au>, Thorfinn wrote:

[...]

>Ditto with the regular expressions that slrn uses, actually... they're
>slang regexps... which are somewhat like, but actually quite different
>from, say, the gnu regexps, or the perl regexps.
>
>That's one of the small things that annoys me about slang, actually. 
>IMO, it *should* use gnu standard regexps, 

On the issue of slang's non standard regexps, is there a way to make
them case senservit?


-- 
Please excuse my spelling as I suffer from agraphia. See
http://www.zeta.org.au/~dformosa/Spelling.html to find out more.


S-Lang REs (was: Re: slrn won't score on one group)
#45238
Author: da... John E. Davis
Date: Mon, 07 Dec 1998 00:00
20 lines
2055 bytes
I wrote:
>I think that this is the best way to go: write a module using whatever
>regexp package you want and then import it.

I want to clarify this statement.  Importing a different regexp
package, will not change the way slrn handles regular expressions: it
will continue to use S-Lang REs for score files, etc.  However,
importing a different RE package will affect any macros that you write
using that package.  Finally, although S-Lang REs get criticized, they
are consistent across all platforms that the library supports (Unix,
OS/2, VMS, Win32, MSDOS, AmigaOS, BEOS, QNX) and may be distributed
under both the GNU and Artistic licenses.  For these reasons, I will
continue to use the S-Lang regular expressions and you are more than
welcome to send me patches that improve upon them.
-- 
John E. Davis                   Center for Space Research/AXAF Science Center
617-258-8119                    One Hampshire St., Building NE80-6019
http://space.mit.edu/~davis     Cambridge, MA  02139-4307
Re: slrn won't score on one group
#45239
Author: David Gerard
Date: Mon, 07 Dec 1998 00:00
32 lines
2114 bytes
On 5 Dec 1998 05:59:18 GMT, Jan Hlavacek <lahvak@math.mps.ohio-state.edu> wrote:
:On 5 Dec 1998 05:33:17 GMT, David Gerard <fun@thingy.apana.org.au>
:wrote:

:> A weird thing is happening with this copy of slrn. It will score
:> on every newsgroup except alt.gothic . I have no idea why.
:> I go into a.g and see articles that, dammit, *should* be scored
:> and aren't.
:> What on earth could be causing this?

:It's hard to tell without seeing your Score file.  One possibility is
:that you have a syntax error in the a.g part of the Score file.  Try to
:eliminate all the a.g rules (perhaps enclosing them between
:#iffalse
:#endif
:and see if the [*] rules get applied in that case.


I accidentally put an error in the scorefile (a ';' instead of a ':' -
apparently I didn't hit the shift key hard enough) and noticed it ignore
everything thereafter. Maybe that's it.

I wasn't aware the scorefile takes C preprocessor directives ...


-- 
http://thingy.apana.org.au/~fun/                http://suburbia.net/~fun/scn/
    "Do you want to come up for coffee?"
    "I don't drink coffee."
    "I haven't got any."      -- 'Brassed Off'

Re: S-Lang REs (was: Re: slrn won't score on one group)
#45243
Author: da... John E. Davis
Date: Tue, 08 Dec 1998 00:00
10 lines
1313 bytes
On 7 Dec 1998 21:15:58 GMT, David Formosa <dfor...@zeta.org.au>
wrote:
>I point out that perlre also have this advantage.

Is perlre available as a standalone library?

Thanks,
--John
Re: S-Lang REs (was: Re: slrn won't score on one group)
#45249
Author: da... John E. Davis
Date: Tue, 08 Dec 1998 00:00
26 lines
2223 bytes
On 8 Dec 1998 15:25:53 GMT, Fluffy <meo...@banet.net>
wrote:
>Yup, there is one, PCRE (the same library that tin uses):
><URL:ftp://ftp.cus.cam.ac.uk/pub/software/programs/pcre/>

Thanks.  I looked at it briefly, however it will not compile on many
VMS systems without some appropriately placed `$ifndef VMS'
constructs.  For example, many VMS systems that S-Lang works under do
not have stdlib.h, and some of the Unix systems that I use have
compilers that do not support the `const' keyword, nor understand
`void *', even though they support function prototypes.  (This is why
slang.h defines a VOID_STAR type).

Also, it is not clear to me whether or not the code requires ints to
be at least 32 bits.  This is important for support on a 16 bit
system.  Finally, to make this work with S-Lang, more makefiles would
have to be created (OS/2, VMS, etc), and the library would have to be
modified to use autoconf.

Nevertheless, I will keep it in mind for the possibility of using it
for a module.

Thanks,
--John
Re: S-Lang REs (was: Re: slrn won't score on one group)
#45252
Author: meo... Fluffy
Date: Tue, 08 Dec 1998 00:00
10 lines
1409 bytes
John E. Davis <da...@space.mit.edu> wrote:
> Is perlre available as a standalone library?

Yup, there is one, PCRE (the same library that tin uses):
<URL:ftp://ftp.cus.cam.ac.uk/pub/software/programs/pcre/>
-- 
"FEAST!"
      --Alice
Re: S-Lang REs
#45255
Author: Ulli Horlacher
Date: Tue, 08 Dec 1998 00:00
19 lines
1723 bytes
In alt.lang.s-lang Fluffy <meo...@banet.net> wrote:

>> Is perlre available as a standalone library?
> 
> Yup, there is one, PCRE (the same library that tin uses):
> <URL:ftp://ftp.cus.cam.ac.uk/pub/software/programs/pcre/>

It would be really GREAT if s-lang uses perlre!
The perl regular expressions are the most powerfulls RE of all (and one
has only to keep one RE set in mind :-)


-- 
\ Ulli 'Framstag' Horlacher  \ BelWue-Koordination \  fram...@belwue.de \
 \ Universitaet Stuttgart \ Allmandring 3a \ D-70550 Stuttgart \  Germany \
  \ SAFT://saft.belwue.de/framstag          \        HTTP://www.belwue.de/ \
   \          "X.500: Security through Complexity" - Juergen G.             \
Re: S-Lang REs
#45259
Author: meo... Fluffy
Date: Wed, 09 Dec 1998 00:00
23 lines
2269 bytes
Ulli Horlacher <fram...@bofh.belwue.de> wrote:
> In alt.lang.s-lang Fluffy <meo...@banet.net> wrote:
> > After all, the reason I started using slrn in the first place is that
> > it was the only sane newsreader I could find for VMS.
> 
> What about VMS NEWS?
> I was the first beta-tester and I really liked it.

Do you mean the one from ANU?  That's pretty good if you're using the
server component and running everything locally, but when used as a
remote NNTP reader it left a lot to be desired.  No threading or
scoring either, IIRC.  With present-day volumes, those bells and
whistles are closer to basic needs.

There was a minimalist command-line thingy called NEWSRDR that I
really liked.  Nice for posting from DCL scripts and that sort of
thing, and strangely comfortable to use if you're accustomed to that
icky VMS mail program.

(Folloups, we seem to be getting away from S-Lang.)

Re: slrn won't score on one group
#45261
Author: John E. Davis
Date: Wed, 09 Dec 1998 00:00
16 lines
1523 bytes
On 7 Dec 1998 09:59:23 GMT, Thorfinn <thorfinn@netizen.com.au>
wrote:
>That's one of the small things that annoys me about slang, actually. 
>IMO, it *should* use gnu standard regexps, and should have used
>standard CPP code that's out there.  I can understand the "not
>invented here" syndrome, given that I do it myself a fair bit, but
>still...  it's annoying.

Using this standard code would cause slang to not work on MSDOS, given
its the 640K limitations, and also probably not VMS for other reasons.
Also, if I used GNU code in S-Lang then I could not distribute it
under the artistic license.

--John

Re: S-Lang REs
#45267
Author: Ulli Horlacher
Date: Wed, 09 Dec 1998 00:00
16 lines
1645 bytes
In alt.lang.s-lang Fluffy <meo...@banet.net> wrote:

> After all, the reason I started using slrn in the first place is that
> it was the only sane newsreader I could find for VMS.

What about VMS NEWS?
I was the first beta-tester and I really liked it.


-- 
\ Ulli 'Framstag' Horlacher  \ BelWue-Koordination \  fram...@belwue.de \
 \ Universitaet Stuttgart \ Allmandring 3a \ D-70550 Stuttgart \  Germany \
  \ SAFT://saft.belwue.de/framstag          \        HTTP://www.belwue.de/ \
   \          "X.500: Security through Complexity" - Juergen G.             \
Re: S-Lang REs
#45277
Author: T.E.Dickey
Date: Wed, 09 Dec 1998 00:00
24 lines
1900 bytes
In alt.lang.s-lang John E. Davis <da...@space.mit.edu> wrote:
> On 8 Dec 1998 15:25:53 GMT, Fluffy <meo...@banet.net>
> wrote:
>>Yup, there is one, PCRE (the same library that tin uses):
>><URL:ftp://ftp.cus.cam.ac.uk/pub/software/programs/pcre/>

> Thanks.  I looked at it briefly, however it will not compile on many
> VMS systems without some appropriately placed `$ifndef VMS'
> constructs.  For example, many VMS systems that S-Lang works under do
> not have stdlib.h, and some of the Unix systems that I use have
> compilers that do not support the `const' keyword, nor understand
> `void *', even though they support function prototypes.  (This is why
> slang.h defines a VOID_STAR type).

VAX C has stdlib.h
DEC C has stdlib.h
(what compiler are you using?)

-- 
Thomas E. Dickey
dic...@clark.net
http://www.clark.net/pub/dickey
Re: S-Lang REs
#45278
Author: Ulli Horlacher
Date: Wed, 09 Dec 1998 00:00
22 lines
1916 bytes
In alt.lang.s-lang Fluffy <meowing@banet.net> wrote:

>> What about VMS NEWS?
>> I was the first beta-tester and I really liked it.
>
> Do you mean the one from ANU?

No, VMS NEWS by Bernd Onasch. A standalone nntp news client based on SMG.
The first release was in 1990 and of course it was with threading and
killfile support and with a batch mode!

The latest version was VMS NEWS 1.26, but I can find only version 1.25 at
the moment at ftp://ftp.uni-ulm.de/pub/systems/vms/communication/


-- 
\ Ulli 'Framstag' Horlacher  \ BelWue-Koordination \  framstag@belwue.de \
 \ Universitaet Stuttgart \ Allmandring 3a \ D-70550 Stuttgart \  Germany \
  \ SAFT://saft.belwue.de/framstag          \        HTTP://www.belwue.de/ \
   \          "X.500: Security through Complexity" - Juergen G.             \

Re: S-Lang REs
#45280
Author: T.E.Dickey
Date: Wed, 09 Dec 1998 00:00
44 lines
2645 bytes
In alt.lang.s-lang John E. Davis <da...@space.mit.edu> wrote:
> On 9 Dec 1998 16:57:15 GMT, T.E.Dickey <dic...@shell.clark.net>
> wrote:
>>VAX C has stdlib.h
>>DEC C has stdlib.h
>>(what compiler are you using?)

> At one point several years ago, I received a VMS-specific patches that
> had `#include <stdlib.h>' commented out.  This lead me to believe that
> this header file was not on those systems.  Could one use some set of
> compiler flags that would exclude including stdlib.h?  

doesn't sound likely.  My memory doesn't go back that far, but I can
check - I have a VAX C manual from 1984 (it's likely that stdlib.h wasn't
in that version, since it's mostly an artifact of ANSI C).

> I also ran into the same problems with an include file called
> `unixlib.h' that some versions of VMS shipped with and some without
> (this may have actually been something that GNUC shipped with). With
> that said, I think that in recent years the VMS C environment has
> improved a lot, e.g., slrn contains code like:

no - that's VAX C (also present in DEC C).  I have a copy of headers at
home which I refer to occasionally.

> #ifdef VMS
> # if __VMS_VER >= 60200000
> #  define HAVE_UNISTD_H
> # endif
> #endif

> and it would not surprise me that stdlib.h is now standard on VMS.

VAX C's been "stable" (obsolete) for several years - I'd have to assume
that there's no pre-1989 copies of that still in use.

> --John

-- 
Thomas E. Dickey
dic...@clark.net
http://www.clark.net/pub/dickey
Re: S-Lang REs
#45281
Author: da... John E. Davis
Date: Wed, 09 Dec 1998 00:00
28 lines
2121 bytes
On 9 Dec 1998 16:57:15 GMT, T.E.Dickey <dic...@shell.clark.net>
wrote:
>VAX C has stdlib.h
>DEC C has stdlib.h
>(what compiler are you using?)

At one point several years ago, I received a VMS-specific patches that
had `#include <stdlib.h>' commented out.  This lead me to believe that
this header file was not on those systems.  Could one use some set of
compiler flags that would exclude including stdlib.h?  

I also ran into the same problems with an include file called
`unixlib.h' that some versions of VMS shipped with and some without
(this may have actually been something that GNUC shipped with). With
that said, I think that in recent years the VMS C environment has
improved a lot, e.g., slrn contains code like:

#ifdef VMS
# if __VMS_VER >= 60200000
#  define HAVE_UNISTD_H
# endif
#endif

and it would not surprise me that stdlib.h is now standard on VMS.

--John
Re: S-Lang REs
#45282
Author: meo... Fluffy
Date: Wed, 09 Dec 1998 00:00
21 lines
2073 bytes
Ulli Horlacher <fram...@bofh.belwue.de> wrote:
> It would be really GREAT if s-lang uses perlre!
> The perl regular expressions are the most powerfulls RE of all (and one
> has only to keep one RE set in mind :-)

Well, as JED wrote at some length, there appear to be some portability
issues WRT the PCRE library, and I've gotta agree they're important.
After all, the reason I started using slrn in the first place is that
it was the only sane newsreader I could find for VMS.

That said, it looks like it ought to be possible enough to get an
embedded Perl5 thing going using the new slang module hooks.  Sure it
would be icky and bloated, but at least the porting work has already
been done.  Hmm, might play with a few contortions of that as an
excuse to try out the new slang toys, even if the end result isn't
actually useful or anything =)
-- 
"FEAST!"
      --Alice
Re: S-Lang REs
#45284
Author: j... J. Scheerder
Date: Thu, 10 Dec 1998 00:00
24 lines
1791 bytes
In article <74k6cl$aob$1...@news.belwue.de>, Ulli Horlacher
<fram...@bofh.belwue.de> writes:

> It would be really GREAT if s-lang uses perlre!

Yes, perl RE's are nice to have; if only because actually testing
them is easier, with perl sitting there.
 
> The perl regular expressions are the most powerfulls RE of all (and
> one has only to keep one RE set in mind :-)

Well, actually, the various RE flavours are equally powerful, in
the end, but there are subtle `under the hood' differences that
may require doing things differently.  For example, traditional
RE matching takes longest matches, while PCRE is quite happy
with the first (shorter) match.

So it's not always a plug-and-play replacement, even if one
would have performed a basic syntax translation first.


-- J$
Re: slrn won't score on one group
#45341
Author: tony summerfelt
Date: Sat, 12 Dec 1998 00:00
21 lines
1596 bytes
On 9 Dec 1998 12:25:15 GMT, John E. Davis wrote:

> Using this standard code would cause slang to not work on MSDOS, 

i wasn't aware that there was a version of slang that worked on strictly ms
dos systems. while still relatively new to slang/slrn i've always assumed
that slang/slrn had to be compiled on either a win32 system (NT or 95)

if there's a ported version of slang/slrn for dos i'd be interested...

-- 
.t
*-------------------------------------------------------------------------
| origin: ...the vented spleen kingston on (613-544-9332) 1:249/139 
|
| `you want a toe? i can get you a toe'
|
| take myspleen out to reply via email
*-------------------------------------

Re: slrn won't score on one group
#45391
Author: John E. Davis
Date: Tue, 15 Dec 1998 00:00
14 lines
1499 bytes
On 12 Dec 1998 18:28:44 -0500, tony summerfelt <tonys@myspleen.kos.net>
wrote:
>if there's a ported version of slang/slrn for dos i'd be interested...

The slang library has supported MSDOS from the beginning.  However,
slrn was never written with a 16 bit system in mind and it cannot be
ported to a 16 bit system without a lot of work.  It may compile and
run on a 16 bit system, but that does not mean that it will always
run correctly.  Instead, I recmommend using DJGPP for slrn under MSDOS
if possible.

--John

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