🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
5 messages
5 total messages Started by Fabrice kurz Fri, 09 Apr 1999 00:00
[slrn]regular expression problem
#47852
Author: Fabrice kurz
Date: Fri, 09 Apr 1999 00:00
26 lines
1520 bytes
Hi,
I'm new to slrn, but I find it quite usefull and easy to use. Yet I have a
problem with the "ignore_quote" regular expression. I tried to use the same
expression as the one I use with mutt, but it doesn't work, it doesn't seem
to understand the OR ("|") operator. Is it the case , or what's wrong with
that :

"^ *[a-zA-Z-]*>|^[]()%:=>|}-]+"

(it should quote everything that begins with some text followed by ">" or
evry line that begins by something in ]()%:=>|}- )
t works fine in mutt, so I don't think the regexpr itself is to blame.

thanks for your help

BTW, do you know how to increase the width of the columns in the group
headers? (especially the width for the authors of thearticles)?


-- 
Against SPAM? sign the petition at http://www.politik-digital.de/spam/

Fabrice KURZ -- Surrey Space Centre -- United Kingdom
Email : f.kurz@ee.surrey.ac.uk -- Tel : + 44 (0)1483 259 278 ext. 3439

Re: [slrn]regular expression problem
#47864
Author: markus
Date: Fri, 09 Apr 1999 00:00
22 lines
1367 bytes
In article <slrn7gsg0t.nq2.davis@aluche.mit.edu>, John E. Davis wrote:
>   See http://space.mit.edu/%7Edavis/doc/slang/doc/html/slang-18.html
>for more information.

	On this pae you say that you can't use some posix-compatible
	re-lib because of the problem with portability and license.

	I know a few other programs with the same problem, but some of them
	allow to specify which re-lib to use (built-in or gnu-re or
	something similar).

	Is there posibility from your point of view to enhance S-Lang with
	an option to use the gnu re-lib ?

sincerly,
	Markus

-- 
<johns> macx: mein domain name ist laenger als deiner :)
<macx> johns: meiner hat aber mehr punkte drin :)

Re: [slrn]regular expression problem
#47876
Author: John E. Davis
Date: Fri, 09 Apr 1999 00:00
19 lines
1398 bytes
On 9 Apr 1999 15:30:30 GMT, Fabrice kurz <ees1fk@mir.ee.surrey.ac.uk>
wrote:
>expression as the one I use with mutt, but it doesn't work, it doesn't seem
>to understand the OR ("|") operator. Is it the case , or what's wrong with

   See http://space.mit.edu/%7Edavis/doc/slang/doc/html/slang-18.html
for more information.

>"^ *[a-zA-Z-]*>|^[]()%:=>|}-]+"
>(it should quote everything that begins with some text followed by ">" or
>evry line that begins by something in ]()%:=>|}- )

   Use:
   
       ignore_quotes "^ *[a-zA-Z-]*>"  "^[]()%:=>|}-]+"

--John

Re: [slrn]regular expression problem
#47895
Author: Heikki Kantola
Date: Sat, 10 Apr 1999 00:00
38 lines
2644 bytes
Fabrice kurz <ees1fk@mir.ee.surrey.ac.uk> informed
news.software.readers with the following:
>I'm new to slrn, but I find it quite usefull and easy to use. Yet I have a
>problem with the "ignore_quote" regular expression. I tried to use the same
>expression as the one I use with mutt, but it doesn't work, it doesn't seem
>to understand the OR ("|") operator. Is it the case , or what's wrong with
>that :
>
>"^ *[a-zA-Z-]*>|^[]()%:=>|}-]+"
>
>(it should quote everything that begins with some text followed by ">" or
>evry line that begins by something in ]()%:=>|}- )
>t works fine in mutt, so I don't think the regexpr itself is to blame.

It is sort of. Slang regexp syntax which Slrn uses is somewhat inferior
to the syntax used eg. Mutt, which means in practice that you indeed 
can't group expressions with '|' (and '(' & ')'), however in case of 
ignore_quote-command you can luckily provide upto 5 separate regexps.

>BTW, do you know how to increase the width of the columns in the group
>headers? (especially the width for the authors of thearticles)?

Yes, with header_display_format slrnrc command and its Slang equivalent
set_header_display_format()you configure the order and size of various 
elements of article listing to suit your wishes. Unfortunately AFAIK 
only documentation (in English, I've whipped up something in Finnish 
for my Slrn page at <URL:http://www.iki.fi/hezu/slrn.html>) for those 
is still Slrn's changes.txt-file. In case you don't have that file (it
is included in the standard Slrn source distribution), you can grab a
copy from <URL:ftp://space.mit.edu/pub/davis/slrn/changes.txt>.
 
-- 
Heikki "Hezu" Kantola, <Heikki.Kantola@IKI.FI>
L�hett�m�ll� mainoksia tai muuta asiatonta s�hk�postia yll� olevaan
osoitteeseen sitoudut maksamaan oikolukupalvelusta FIM500 alkavalta
tunnilta.

Re: [slrn]regular expression problem
#47910
Author: Scott Sellers
Date: Sun, 11 Apr 1999 00:00
46 lines
2677 bytes
Heikki Kantola <hezu@iki.fi>:
>Fabrice kurz <ees1fk@mir.ee.surrey.ac.uk> informed
>news.software.readers with the following:
[...]
>>BTW, do you know how to increase the width of the columns in the group
>>headers? (especially the width for the authors of thearticles)?
>
>Yes, with header_display_format slrnrc command and its Slang equivalent
>set_header_display_format()you configure the order and size of various 
>elements of article listing to suit your wishes. Unfortunately AFAIK 
>only documentation (in English, I've whipped up something in Finnish 
>for my Slrn page at <URL:http://www.iki.fi/hezu/slrn.html>) for those 
>is still Slrn's changes.txt-file. In case you don't have that file (it
>is included in the standard Slrn source distribution), you can grab a
>copy from <URL:ftp://space.mit.edu/pub/davis/slrn/changes.txt>.
> 
For anyone interested, I transposed the following information
from changes.txt into my .slrnrc some time back.  IIRC, this
encompasses the original feature, plus a later addition which
involved some minor tweaking of JED's original text.

% This sets the header display format.  The following item specifiers
% are recognized:
%	 s : subject
%	 S : score
%	 r : author real name
%	 f : from header
%	 G : Group lens score
%	 l : Number of lines
%	 n : server number
%	 d : date
%	 t : thread tree
%	 F : flags (read/unread, `*' and `#' tags, header number)
%	 % : percent character
% The generic format specifier begins with the % character and must be
% of the form: %[-][w]x, where the brackets indicate optional items.
% The minus sign, if present, causes the field to be right justified,
% and w is a width specifier of one or more digits.  The x is one of the
% item specifiers listed above.
header_display_format 0 "%F%-5S %14r%-4l%t%s"

-- 
Scott Sellers  |
(sds@cts.com)  |

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