🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
47 messages
47 total messages Started by Lars Stokholm Sun, 11 Jul 2004 21:38
[slrn/S-Lang] RegEx for duplicate signature delimiters
#151596
Author: Lars Stokholm
Date: Sun, 11 Jul 2004 21:38
17 lines
1110 bytes
Can anyone tell me why the following won't match in an article with
two signature delimiters?

  string_match (article, "\n-- \n.*\\(\n-- \n\\)", 1);

Is it a D'OH? :)

Here's an example:
#v+
Hey, how are you?

-- 
Lars

-- 
Lars
#v-
Re: [slrn/S-Lang] RegEx for duplicate signature delimiters
#151601
Author: Lars Stokholm
Date: Mon, 12 Jul 2004 02:29
14 lines
1245 bytes
Lars Stokholm wrote:

> Can anyone tell me why the following won't match in an article with
> two signature delimiters?
>
>   string_match (article, "\n-- \n.*\\(\n-- \n\\)", 1);
>
> Is it a D'OH? :)

Yeah, it was a D'OH.

>From <http://www.s-lang.org/doc/html/slang-18.html>:

  .  match any character except newline
Re: [slrn/S-Lang] RegEx for duplicate signature delimiters
#151626
Author: »Q«
Date: Mon, 12 Jul 2004 14:07
21 lines
1773 bytes
Lars Stokholm <stokholm@despammed.com> wrote in
<news:slrn.cf3ts0.17c@stokholm.dyndns.dk>:

>> Can anyone tell me why the following won't match in an article with
>> two signature delimiters?
>>
>>   string_match (article, "\n-- \n.*\\(\n-- \n\\)", 1);
>>
>> Is it a D'OH? :)
>
> Yeah, it was a D'OH.
>
> From <http://www.s-lang.org/doc/html/slang-18.html>:
>
>   .  match any character except newline

Is there anything like the PCRE_DOTALL switch in to make S-Lang regex
have . match all characters including newlines?

-- 
»Q«
Re: [slrn/S-Lang] RegEx for duplicate signature delimiters
#151634
Author: Lars Stokholm
Date: Mon, 12 Jul 2004 15:28
7 lines
1332 bytes
»Q« wrote:

> Is there anything like the PCRE_DOTALL switch in to make S-Lang regex
> have . match all characters including newlines?

I don't know what PCRE_DOTALL is, but I don't think S-Lang has anything
like that. I'd like to know though.
Re: [slrn/S-Lang] RegEx for duplicate signature delimiters
#151667
Author: DC
Date: Mon, 12 Jul 2004 18:53
28 lines
1787 bytes
Lars Stokholm wrote:
> Can anyone tell me why the following won't match in an article with
> two signature delimiters?

>   string_match (article, "\n-- \n.*\\(\n-- \n\\)", 1);

> Is it a D'OH? :)

> Here's an example:
> #v+
> Hey, how are you?

> -- 
> Lars

> -- 
> Lars
> #v-


Not in answer to your question:  just curious about what you are trying
to accomplish.  Feel free to tell me to mind my own business.  };O)

-- 
DC

I've given up on Emacs several times. It only happened once with Vim.
                                                - Lars Stokholm
Re: [slrn/S-Lang] RegEx for duplicate signature delimiters
#151673
Author: Lars Stokholm
Date: Mon, 12 Jul 2004 19:30
35 lines
2455 bytes
DC wrote:

>> string_match (article, "\n-- \n.*\\(\n-- \n\\)", 1);

[...]

> Not in answer to your question:  just curious about what you are trying
> to accomplish.  Feel free to tell me to mind my own business.  };O)

Not at all. :)

Some AV-software puts a signature in every outgoing post (like
"Outgoing mail is certified Virus Free" and all that other crap).
Usually it uses "---" for a signature delimiter, so slrn will not
recognize it as a signature. I could add it to strip_sig_regexp,
but instead I wrote a macro to "repair" it.

Now, some newsreaders will of course add a signature for the user,
so if this user also uses some crappy AV-software, suddenly I will
have two signature delimiters in an article, like in my example.
slrn is smart enough to guess that only the last "-- " is actually
intended as a signature delimiter, so it will only hide the latter
of the two signatures in the article.

So, finally, my macro has to detect multiple signature delimiters,
and delete every one but the first. So that was what I was going
to use it for. But I came up with something else on the way.

Below is a link to the macro. It does some other things to the
article too. It's not commented, and parts of the code are probably
garbage, but take a peek if you wish (look for 'fix_dup_sig_delim'):

  http://home19.inet.tele.dk/stokholm/usenet/fixarticle.sl

If you see some really stupid code on your way, let me know. :)
Re: [slrn/S-Lang] RegEx for duplicate signature delimiters
#151684
Author: DC
Date: Mon, 12 Jul 2004 20:43
81 lines
3713 bytes
Lars Stokholm wrote:
> DC wrote:

>>> string_match (article, "\n-- \n.*\\(\n-- \n\\)", 1);

> [...]

>> Not in answer to your question:  just curious about what you are trying
>> to accomplish.  Feel free to tell me to mind my own business.  };O)

> Some AV-software puts a signature in every outgoing post (like
> "Outgoing mail is certified Virus Free" and all that other crap).
> Usually it uses "---" for a signature delimiter, so slrn will not
> recognize it as a signature. I could add it to strip_sig_regexp,
> but instead I wrote a macro to "repair" it.


I've been using this in .slrnrc:

% Define regular expression used to detect signatures
% Thanks to ras2 (nsr)
strip_sig_regexp "^-- ?$" "^- -- ?$" "^--- ?$"

Works for me.


> Now, some newsreaders will of course add a signature for the user,
> so if this user also uses some crappy AV-software, suddenly I will
> have two signature delimiters in an article, like in my example.


AVG, anyone?  My solution fixes that -- it's why I sought it out, to
begin with.


> slrn is smart enough to guess that only the last "-- " is actually
> intended as a signature delimiter, so it will only hide the latter
> of the two signatures in the article.


See above.


> So, finally, my macro has to detect multiple signature delimiters,
> and delete every one but the first. So that was what I was going
> to use it for. But I came up with something else on the way.


Okay.


> Below is a link to the macro. It does some other things to the
> article too. It's not commented, and parts of the code are probably
> garbage, but take a peek if you wish (look for 'fix_dup_sig_delim'):

>   http://home19.inet.tele.dk/stokholm/usenet/fixarticle.sl

> If you see some really stupid code on your way, let me know. :)


I don't do s-lang, so I can't be of very much help.

FWIW, I scanned it and notice what I *think* is an effort to strip out
empty lines.  Blinky shared this with me, a while back, which solves
this nicely for my porpoises.  };O)

In .gvim.rc:

" delete quote indicators on empty lines
" from w.citoan in n.s.r:
au BufRead ~/.followup :% s/^>[ >]*$// 


Let us know how you make out with the macro.  Once you've documented it,
I wouldn't mind test driving it for you.  I'm always on the lookout for
new toys.  }:O)

-- 
DC           Linux RU #1000111011000111001

Free your mind, and your OS will follow...
Re: [slrn/S-Lang] RegEx for duplicate signature delimiters
#151686
Author: Lars Stokholm
Date: Mon, 12 Jul 2004 21:32
83 lines
4030 bytes
DC skrev:

> strip_sig_regexp "^-- ?$" "^- -- ?$" "^--- ?$"
>
> Works for me.

That was my alternative, yes. It won't do it though; it will only
recognize the latter of these as a signature:
#v+
Hey, how are you?

-- 
My correct signature

---
Broken AV signature
#v-
That's not enough for me, I want to be able to colour and hide it all.

>> Now, some newsreaders will of course add a signature for the user,
>> so if this user also uses some crappy AV-software, suddenly I will
>> have two signature delimiters in an article, like in my example.
>
> AVG, anyone?  My solution fixes that -- it's why I sought it out, to
> begin with.

My example was from AVG, yes. :) I don't get it if it works for you.

> FWIW, I scanned it and notice what I *think* is an effort to strip out
> empty lines.

It removes multiple empty lines from an article, also multiple empty
*quoted* lines; like this:

>> I said something.
>>                        \
>>                         ) It cut's these three down to one.
>>                        /
>> I said something more.

...but only up to second level of qouting though, since I hide away
higher levels anyway.

> Blinky shared this with me, a while back, which solves this nicely
> for my porpoises.  };O)

Thanks, but that's for stripping it out on forwarding, right? What I'm
doing is stripping it from the article, before it is displayed in the
pager (using the 'replace_article' function).

By the way, I thought I saw the word "gvim". ;) I'm still with Metapad,
despite many attempts to learn something else...

> Let us know how you make out with the macro.  Once you've documented it,
> I wouldn't mind test driving it for you.  I'm always on the lookout for
> new toys.  }:O)

I can give you a short description, if you like. First of all, it
works on the article in the pager. And:

  - It replaces bad signature delimiters ("--", "---" and "-- \n-- ")
    with "-- ".

  - It makes sure that an article only has one signature delimter.

  - It removes multiple empty lines and ditto quoted lines up to the
    second level. That compacts the article a little for some posters.

  - It cleans up on English and Danish OE 6.0 attribution lines.

  - If the article is modified, a message is given in the status line,
    with a short list of the changes.

  - It has a function 'switch_art', which you can bind to a key, that
    will let you switch between the modified and original article.

That's it for now. I made a helping function 'rep_regex_substr',
that will let me replace a regular expression with a string. That
came up really handy for cleaning out in empty quoted lines:

  rep_regex_substr ("\n *> *> *\n *> *> *\n", "\n>>\n")

Please everyone, don't tell me S-Lang had a function for that. :)
Re: [slrn/S-Lang] RegEx for duplicate signature delimiters
#151687
Author: Lars Stokholm
Date: Mon, 12 Jul 2004 21:46
7 lines
1258 bytes
Lars Stokholm wrote:

> Broken AV signature
> #v-

Can you tell me why slrn recognizes everything below those two lines
as a signature? :) It's not my macro's fault, I know that much.
Re: [slrn/S-Lang] RegEx for duplicate signature delimiters
#151694
Author: DC
Date: Tue, 13 Jul 2004 02:10
17 lines
1858 bytes
Lars Stokholm wrote:
> Lars Stokholm wrote:

>> Broken AV signature
>> #v-

> Can you tell me why slrn recognizes everything below those two lines
> as a signature? :) It's not my macro's fault, I know that much.

Here is what I see:

http://dcmoose.fateback.com/screens/lars1.png

-- 
DC           Linux RU #1000111011000111001

Free your mind, and your OS will follow...
Re: [slrn/S-Lang] RegEx for duplicate signature delimiters
#151696
Author: DC
Date: Tue, 13 Jul 2004 02:22
34 lines
2192 bytes
DC wrote:
> Lars Stokholm wrote:
>> Lars Stokholm wrote:

>>> Broken AV signature
>>> #v-

>> Can you tell me why slrn recognizes everything below those two lines
>> as a signature? :) It's not my macro's fault, I know that much.

> Here is what I see:

> http://dcmoose.fateback.com/screens/lars1.png

<piggyback>

I think that we might have found a bug, here.

One would think that slrn should ignore any sig delimiters, specified in
strip_sig_regexp, when contained within verbatim marks.

Can anyone else confirm?


To recap, I am using

strip_sig_regexp "^-- ?$" "^- -- ?$" "^--- ?$"

in my ~/.slrnrc file.

-- 
DC           Linux RU #1000111011000111001

Free your mind, and your OS will follow...
Re: [slrn/S-Lang] RegEx for duplicate signature delimiters
#151697
Author: DC
Date: Tue, 13 Jul 2004 02:34
84 lines
3930 bytes
Lars Stokholm wrote:
> DC skrev:

>> [snip .gvimrc stuff]

> Thanks, but that's for stripping it out on forwarding, right? What I'm
> doing is stripping it from the article, before it is displayed in the
> pager (using the 'replace_article' function).


Ah!  You are rewriting the article on-the-fly.  Big difference.


> By the way, I thought I saw the word "gvim". ;) I'm still with Metapad,
> despite many attempts to learn something else...


I forgot you are using win32.  Vim is really nice.  I use it in Windoze,
also.  Metapad is my notepad replacement -- it wouldn't be my choice for
use with slrn, though.

But that smee.  };O)


> > Let us know how you make out with the macro.  Once you've documented it,
> > I wouldn't mind test driving it for you.  I'm always on the lookout for
> > new toys.  }:O)

> I can give you a short description, if you like. First of all, it
> works on the article in the pager. And:

>   - It replaces bad signature delimiters ("--", "---" and "-- \n-- ")
>     with "-- ".

>   - It makes sure that an article only has one signature delimter.

>   - It removes multiple empty lines and ditto quoted lines up to the
>     second level. That compacts the article a little for some posters.


I'm not crazy about this.  Personally, I would prefer to do my own
selective snipping.

You have little control over what gets snipped.  Further, there may be
snippets of quoted text, deeper than level 2 and that are still relevant
to the discussion at hand, which you would then be forced to go back and
retrieve/cut/paste.

You might end up (1) creating more work for yourself and (2) sacrificing
coherence/context for brevity.


>   - It cleans up on English and Danish OE 6.0 attribution lines.

>   - If the article is modified, a message is given in the status line,
>     with a short list of the changes.


Good idea.


>   - It has a function 'switch_art', which you can bind to a key, that
>     will let you switch between the modified and original article.


Very good idea.


> That's it for now. I made a helping function 'rep_regex_substr',
> that will let me replace a regular expression with a string. That
> came up really handy for cleaning out in empty quoted lines:

>   rep_regex_substr ("\n *> *> *\n *> *> *\n", "\n>>\n")

> Please everyone, don't tell me S-Lang had a function for that. :)


You won't hear it from me.  };O)


-- 
DC           Linux RU #1000111011000111001

Free your mind, and your OS will follow...
Re: [slrn/S-Lang] RegEx for duplicate signature delimiters
#151700
Author: Keith
Date: Tue, 13 Jul 2004 02:49
30 lines
2039 bytes
On 2004-07-13, DC 
<slrncf6hqc.5rf.dcmoose@moosemeat.ca.INVALID> wrote:
> DC wrote:
>> Lars Stokholm wrote:
>>> Lars Stokholm wrote:
>
>>>> Broken AV signature
>>>> #v-
>
>>> Can you tell me why slrn recognizes everything below those two lines
>>> as a signature? :) It's not my macro's fault, I know that much.
>
>> Here is what I see:
>
>> http://dcmoose.fateback.com/screens/lars1.png
>
><piggyback>
>
> I think that we might have found a bug, here.
>
> One would think that slrn should ignore any sig delimiters, specified in
> strip_sig_regexp, when contained within verbatim marks.
>
> Can anyone else confirm?
>

 There are no bugs in SLRN, SLRN users have undiscovered features. 

;-)
Re: [slrn/S-Lang] RegEx for duplicate signature delimiters
#151702
Author: Ben Shimmin
Date: Tue, 13 Jul 2004 02:53
20 lines
1965 bytes
DC <dcmoose@myrealbox.com>:

> > http://dcmoose.fateback.com/screens/lars1.png
>
> <piggyback>
>
> I think that we might have found a bug, here.
>
> One would think that slrn should ignore any sig delimiters, specified in
> strip_sig_regexp, when contained within verbatim marks.
>
> Can anyone else confirm?

I can confirm.  But I can't really seem to get very excited about it... ;)

b.

-- 
Ben Shimmin (bas@bas.me.uk)                            <URL:http://bas.me.uk/>
                                                   <URL:http://gpg.bas.me.uk/>
Re: [slrn/S-Lang] RegEx for duplicate signature delimiters
#151701
Author: DC
Date: Tue, 13 Jul 2004 02:59
41 lines
2563 bytes
Keith wrote:
> On 2004-07-13, DC 
><slrncf6hqc.5rf.dcmoose@moosemeat.ca.INVALID> wrote:
>> DC wrote:
>>> Lars Stokholm wrote:
>>>> Lars Stokholm wrote:

>>>>> Broken AV signature
>>>>> #v-

>>>> Can you tell me why slrn recognizes everything below those two lines
>>>> as a signature? :) It's not my macro's fault, I know that much.

>>> Here is what I see:

>>> http://dcmoose.fateback.com/screens/lars1.png

>><piggyback>

>> I think that we might have found a bug, here.

>> One would think that slrn should ignore any sig delimiters, specified in
>> strip_sig_regexp, when contained within verbatim marks.

>> Can anyone else confirm?


>  There are no bugs in SLRN, SLRN users have undiscovered features. 

> ;-)

As a long time Xnews user, I will not dispute the value of undocumented
featurettes.  }:O)

However, I am at a loss, in this case, to see how *this* feature is of
any value whatsoever.

-- 
DC           Linux RU #1000111011000111001

Free your mind, and your OS will follow...
[slrn] Possible Bug -- (was: [slrn/S-Lang] RegEx for duplicate signature delimiters)
#151703
Author: DC
Date: Tue, 13 Jul 2004 03:01
23 lines
2094 bytes
Ben Shimmin wrote:
> DC <dcmoose@myrealbox.com>:

>> > http://dcmoose.fateback.com/screens/lars1.png

>> <piggyback>

>> I think that we might have found a bug, here.

>> One would think that slrn should ignore any sig delimiters, specified in
>> strip_sig_regexp, when contained within verbatim marks.

>> Can anyone else confirm?

> I can confirm.  But I can't really seem to get very excited about it... ;)


Thank you, Ben.  Neither can I.  }:O\

-- 
DC           Linux RU #1000111011000111001

Free your mind, and your OS will follow...
Re: [slrn/S-Lang] RegEx for duplicate signature delimiters
#151705
Author: SINNER
Date: Tue, 13 Jul 2004 03:50
41 lines
2722 bytes
* DC wrote in news.software.readers:
> DC wrote:
>> Lars Stokholm wrote:
>>> Lars Stokholm wrote:

>>>> Broken AV signature
>>>> #v-

>>> Can you tell me why slrn recognizes everything below those two lines
>>> as a signature? :) It's not my macro's fault, I know that much.

>> Here is what I see:

>> http://dcmoose.fateback.com/screens/lars1.png

><piggyback>

> I think that we might have found a bug, here.

> One would think that slrn should ignore any sig delimiters, specified in
> strip_sig_regexp, when contained within verbatim marks.

I am not sure I agree. I think the Verbatim marks should negate ANY
other special meaning as all the info contained in the verbatim marks
should be read/used verbatim.

> Can anyone else confirm?

I see the same thing you do.

> To recap, I am using

> strip_sig_regexp "^-- ?$" "^- -- ?$" "^--- ?$"

> in my ~/.slrnrc file.

I dont use any setting at all for it and yet see the same results.

-- 
David                 |	AGM Favorites - http://tinyurl.com/loec 
I'd rather just believe that it's done by little elves running around.
Re: [slrn/S-Lang] RegEx for duplicate signature delimiters
#151707
Author: DC
Date: Tue, 13 Jul 2004 03:59
55 lines
2860 bytes
SINNER wrote:
> * DC wrote in news.software.readers:
>> DC wrote:
>>> Lars Stokholm wrote:
>>>> Lars Stokholm wrote:

>>>>> Broken AV signature
>>>>> #v-

>>>> Can you tell me why slrn recognizes everything below those two lines
>>>> as a signature? :) It's not my macro's fault, I know that much.

>>> Here is what I see:

>>> http://dcmoose.fateback.com/screens/lars1.png

>><piggyback>

>> I think that we might have found a bug, here.

>> One would think that slrn should ignore any sig delimiters, specified in
>> strip_sig_regexp, when contained within verbatim marks.

> I am not sure I agree. I think the Verbatim marks should negate ANY
> other special meaning as all the info contained in the verbatim marks
> should be read/used verbatim.


Isn't that what I said?  }:O)  If not, it is what I intended to say.


>> Can anyone else confirm?

> I see the same thing you do.


K.


>> To recap, I am using

>> strip_sig_regexp "^-- ?$" "^- -- ?$" "^--- ?$"

>> in my ~/.slrnrc file.

> I dont use any setting at all for it and yet see the same results.


The default is strip_sig_regexp "^-- ?$", IIRC.  I added the other two
to handle (strip) AVG and PGP b0rked sigs.

-- 
DC                                  Linux RU #1000111011000111001

Why I love Open Source: http://support.microsoft.com/?kbid=111601
Re: [slrn/S-Lang] RegEx for duplicate signature delimiters
#151708
Author: Blinky the Shark
Date: Tue, 13 Jul 2004 04:44
20 lines
1736 bytes
DC wrote:
> Lars Stokholm wrote:
>> DC skrev:

>>> [snip .gvimrc stuff]

>> Thanks, but that's for stripping it out on forwarding, right? What I'm
>> doing is stripping it from the article, before it is displayed in the
>> pager (using the 'replace_article' function).

> Ah!  You are rewriting the article on-the-fly.  Big difference.

>> By the way, I thought I saw the word "gvim". ;) I'm still with Metapad,
>> despite many attempts to learn something else...

Huh!?

-- 
Blinky		                Linux Registered User 297263
Re: [slrn/S-Lang] RegEx for duplicate signature delimiters
#151718
Author: Lars Stokholm
Date: Tue, 13 Jul 2004 10:11
45 lines
2325 bytes
DC wrote:

>>   - It removes multiple empty lines and ditto quoted lines up to the
>>     second level. That compacts the article a little for some posters.
>
> I'm not crazy about this.  Personally, I would prefer to do my own
> selective snipping.

I don't think I understand. :) What I'm doing is cutting:
#v+
>> Hey, how are you?
>>
>>
>>
>> I hope you are fine.
>
>
>
>
> Yes, I am fine, thanks.


Good!
#v-
...down to:
#v+
>> Hey, how are you?
>>
>> I hope you are fine.
>
> Yes, I am fine, thanks.

Good!
#v-
Still not crazy about it?

> You have little control over what gets snipped.  Further, there may be
> snippets of quoted text, deeper than level 2 and that are still relevant
> to the discussion at hand, which you would then be forced to go back and
> retrieve/cut/paste.

If something that shouldn't be removed is removed (I can't imagine
what that should be, it's only redundant empty lines), I can always
hit F8 (the key I have bound to 'switch_art') and get the original
article back. :)
Re: [slrn/S-Lang] RegEx for duplicate signature delimiters
#151719
Author: Lars Stokholm
Date: Tue, 13 Jul 2004 10:12
8 lines
1465 bytes
Blinky the Shark wrote:

>>> By the way, I thought I saw the word "gvim". ;) I'm still with Metapad,
>>> despite many attempts to learn something else...
>
> Huh!?

Huh huh!? What? ;)
Re: [slrn/S-Lang] RegEx for duplicate signature delimiters
#151720
Author: Lars Stokholm
Date: Tue, 13 Jul 2004 10:24
22 lines
1820 bytes
DC wrote:

>> http://dcmoose.fateback.com/screens/lars1.png
>
> <piggyback>
>
> I think that we might have found a bug, here.

I agree.

> One would think that slrn should ignore any sig delimiters, specified in
> strip_sig_regexp, when contained within verbatim marks.

It seems that it will be ignored inside the verbatim text. If you
hide the signature, only what is below the end verbatim mark will
be hidden. Example:
#v+
I'm not signature.
-- 
I'm not signature either, you can't hide me with toggle signature.
#-
I am signature though.
Re: [slrn/S-Lang] RegEx for duplicate signature delimiters
#151721
Author: Lars Stokholm
Date: Tue, 13 Jul 2004 10:44
21 lines
1862 bytes
Lars Stokholm wrote:

> Example:
> #v+
> I'm not signature.
> -- 
> I'm not signature either, you can't hide me with toggle signature.
> #-
> I am signature though.

Creepy, that 'v' was in the article I posted, I'm sure. I save all
posted articles, an it has got a 'v' in it. Either slrn removed it
before posting it, or the server did.

I hope for better luck now, it does work in dk.test:
#v+
I'm not signature.
-- 
I'm not signature either, you can't hide me with toggle signature.
#v-
I am signature though.
Re: [slrn/S-Lang] RegEx for duplicate signature delimiters
#151723
Author: SINNER
Date: Tue, 13 Jul 2004 13:00
40 lines
2745 bytes
* DC wrote in news.software.readers:
> SINNER wrote:
>> * DC wrote in news.software.readers:
>>> DC wrote:
>>>> Lars Stokholm wrote:
>>>>> Lars Stokholm wrote:

>>>>>> Broken AV signature
>>>>>> #v-

>>>>> Can you tell me why slrn recognizes everything below those two lines
>>>>> as a signature? :) It's not my macro's fault, I know that much.

>>>> Here is what I see:

>>>> http://dcmoose.fateback.com/screens/lars1.png

>>><piggyback>

>>> I think that we might have found a bug, here.

>>> One would think that slrn should ignore any sig delimiters, specified in
>>> strip_sig_regexp, when contained within verbatim marks.

>> I am not sure I agree. I think the Verbatim marks should negate ANY
>> other special meaning as all the info contained in the verbatim marks
>> should be read/used verbatim.


> Isn't that what I said?  }:O)  If not, it is what I intended to say.

DOH! I guess you did ;) What I meant to say was....

Yeah! What he said.


-- 
David                 |	AGM Favorites - http://tinyurl.com/loec 
We have lingered long enough on the shores of the Cosmic Ocean.
		-- Carl Sagan
Re: [slrn/S-Lang] RegEx for duplicate signature delimiters
#151724
Author: DC
Date: Tue, 13 Jul 2004 15:04
48 lines
2396 bytes
Lars Stokholm wrote:
> DC wrote:

>>>   - It removes multiple empty lines and ditto quoted lines up to the
>>>     second level. That compacts the article a little for some posters.

>> I'm not crazy about this.  Personally, I would prefer to do my own
>> selective snipping.

> I don't think I understand. :) What I'm doing is cutting:
> #v+
> >> Hey, how are you?



> >> I hope you are fine.




> > Yes, I am fine, thanks.


> Good!
> #v-
> ...down to:
> #v+
> >> Hey, how are you?

> >> I hope you are fine.

> > Yes, I am fine, thanks.

> Good!
> #v-
> Still not crazy about it?


It is *I* that had misunderstood. I read your earlier description to mean
that any quoted text deeper than two levels would be stripped down to a
single line (the first, presumably).

Carry on.  }:O)

-- 
DC                                  Linux RU #1000111011000111001

Why I love Open Source: http://support.microsoft.com/?kbid=111601
Re: [slrn/S-Lang] RegEx for duplicate signature delimiters
#151725
Author: DC
Date: Tue, 13 Jul 2004 15:08
44 lines
2933 bytes
SINNER wrote:
> * DC wrote in news.software.readers:
>> SINNER wrote:
>>> * DC wrote in news.software.readers:
>>>> DC wrote:
>>>>> Lars Stokholm wrote:
>>>>>> Lars Stokholm wrote:

>>>>>>> Broken AV signature
>>>>>>> #v-

>>>>>> Can you tell me why slrn recognizes everything below those two lines
>>>>>> as a signature? :) It's not my macro's fault, I know that much.

>>>>> Here is what I see:

>>>>> http://dcmoose.fateback.com/screens/lars1.png

>>>><piggyback>

>>>> I think that we might have found a bug, here.

>>>> One would think that slrn should ignore any sig delimiters, specified in
>>>> strip_sig_regexp, when contained within verbatim marks.

>>> I am not sure I agree. I think the Verbatim marks should negate ANY
>>> other special meaning as all the info contained in the verbatim marks
>>> should be read/used verbatim.


>> Isn't that what I said?  }:O)  If not, it is what I intended to say.

> DOH! I guess you did ;) What I meant to say was....

> Yeah! What he said.


No prob.  The same thing used to happen to me after spending whole
afternoons in the arcade watching all them blinkenlights.  };O)

-- 
DC                                  Linux RU #1000111011000111001

Why I love Open Source: http://support.microsoft.com/?kbid=111601
Re: [slrn/S-Lang] RegEx for duplicate signature delimiters
#151726
Author: DC
Date: Tue, 13 Jul 2004 15:11
30 lines
2282 bytes
Lars Stokholm wrote:
> DC wrote:

>>> http://dcmoose.fateback.com/screens/lars1.png

>> <piggyback>

>> I think that we might have found a bug, here.

> I agree.


Good.  I'm glad someone does.  SINNER was a tougher sell, but he seems
to have suddenly come around, now.  };O)


>> One would think that slrn should ignore any sig delimiters, specified in
>> strip_sig_regexp, when contained within verbatim marks.

> It seems that it will be ignored inside the verbatim text. If you
> hide the signature, only what is below the end verbatim mark will
> be hidden.


Interesting.

-- 
DC                                  Linux RU #1000111011000111001

Why I love Open Source: http://support.microsoft.com/?kbid=111601
Re: [slrn/S-Lang] RegEx for duplicate signature delimiters
#151727
Author: DC
Date: Tue, 13 Jul 2004 15:14
20 lines
1966 bytes
DC wrote:
> Lars Stokholm wrote:

[...]

>> It seems that it will be ignored inside the verbatim text. If you
>> hide the signature, only what is below the end verbatim mark will
>> be hidden.


> Interesting.

<oink>

And *confirmed*, I had meant to add.

-- 
DC                                  Linux RU #1000111011000111001

Why I love Open Source: http://support.microsoft.com/?kbid=111601
Re: [slrn/S-Lang] RegEx for duplicate signature delimiters
#151728
Author: Lars Stokholm
Date: Tue, 13 Jul 2004 15:19
28 lines
2133 bytes
DC wrote:

> It is *I* that had misunderstood. I read your earlier description to mean
> that any quoted text deeper than two levels would be stripped down to a
> single line (the first, presumably).

Ahh... :) Strange, I thought slrn had a configuration variable that
would do just that, but I can't find it. Maybe it's my imagination.

Anyway, I *do* hide quotes deeper than second lever (since I usually
don't need to read them - or if I do, I just get the parent, and the
parents parent), but that's a function slrn has:

| 6.49.  hide_quotes
|
| Type: integer
| Default: 0
|
| This variable can be used to hide quoted text. If it is non-zero,
| quoted text from the nth level on is hidden in the article pager
| (where n is the value of hide_quotes).
|
| To toggle the value at runtime, you can use the ``toggle_quotes''
| command.

> Carry on.  }:O)

Will do. :)
Re: [slrn/S-Lang] RegEx for duplicate signature delimiters
#151729
Author: SINNER
Date: Tue, 13 Jul 2004 15:21
14 lines
1896 bytes
* DC Wrote in news.software.readers:

> The same thing used to happen to me after spending whole
> afternoons in the arcade watching all them blinkenlights.  };O)
> 

You mean these:

http://www.blinkenlights.de/

:)

-- 
David
Re: [slrn/S-Lang] RegEx for duplicate signature delimiters
#151730
Author: DC
Date: Tue, 13 Jul 2004 15:36
32 lines
2608 bytes
Lars Stokholm wrote:
> DC wrote:

>> It is *I* that had misunderstood. I read your earlier description to mean
>> that any quoted text deeper than two levels would be stripped down to a
>> single line (the first, presumably).

> Ahh... :) Strange, I thought slrn had a configuration variable that
> would do just that, but I can't find it. Maybe it's my imagination.

> Anyway, I *do* hide quotes deeper than second lever (since I usually
> don't need to read them - or if I do, I just get the parent, and the
> parents parent), but that's a function slrn has:

>| 6.49.  hide_quotes
>|
>| Type: integer
>| Default: 0
>|
>| This variable can be used to hide quoted text. If it is non-zero,
>| quoted text from the nth level on is hidden in the article pager
>| (where n is the value of hide_quotes).
>|
>| To toggle the value at runtime, you can use the ``toggle_quotes''
>| command.

I didn't know about that feature.  Neat.  }:O)

-- 
DC                                  Linux RU #1000111011000111001

Why I love Open Source: http://support.microsoft.com/?kbid=111601
Re: [slrn/S-Lang] RegEx for duplicate signature delimiters
#151731
Author: Lars Stokholm
Date: Tue, 13 Jul 2004 15:38
15 lines
1669 bytes
DC wrote:

>>> I think that we might have found a bug, here.
>
>> I agree.
>
> Good.  I'm glad someone does.  SINNER was a tougher sell, but he seems
> to have suddenly come around, now.

You're very persuasive. ;)

> };O)

OK, I have to ask: Is it a devil, or some sort of cow-creature? :)
I don't do advanced smileys as you can see.
Re: [slrn/S-Lang] RegEx for duplicate signature delimiters
#151732
Author: DC
Date: Tue, 13 Jul 2004 15:43
18 lines
2081 bytes
SINNER wrote:
> * DC Wrote in news.software.readers:

>> The same thing used to happen to me after spending whole
>> afternoons in the arcade watching all them blinkenlights.  };O)


> You mean these:

> http://www.blinkenlights.de/


That is way too cool.  }:O)))

-- 
DC                                  Linux RU #1000111011000111001

Why I love Open Source: http://support.microsoft.com/?kbid=111601
Re: [slrn/S-Lang] RegEx for duplicate signature delimiters
#151733
Author: DC
Date: Tue, 13 Jul 2004 15:49
26 lines
2184 bytes
Lars Stokholm wrote:
> DC wrote:

[...]

>> };O)

> OK, I have to ask: Is it a devil, or some sort of cow-creature? :)


*GASP!*


> I don't do advanced smileys as you can see.


It's an emoticonomological <g> representation of my x-face.
http://dcmoose.fateback.com/screens/cow_creature.jpg


I'll let the cow-creature charaterisation slide -- this time.  };O)

-- 
DC                                  Linux RU #1000111011000111001

Why I love Open Source: http://support.microsoft.com/?kbid=111601
Re: [slrn/S-Lang] RegEx for duplicate signature delimiters
#151734
Author: Lars Stokholm
Date: Tue, 13 Jul 2004 16:30
26 lines
2364 bytes
DC wrote:

>>> };O)
>
>> OK, I have to ask: Is it a devil, or some sort of cow-creature? :)
>
> *GASP!*

They must be related somehow. :) I don't know, we don't have moose
in Denmark, we leave that for the rest of Scandinavia.

>> I don't do advanced smileys as you can see.
>
> It's an emoticonomological <g> representation of my x-face.
> http://dcmoose.fateback.com/screens/cow_creature.jpg

That X-Face interpretation, is that a patch? A macro? Do you think
it'll work with Windows? I wrote a macro that will show an X-Face on
<http://www.dairiki.org/xface/>, but I forgot to include it in this
configuration. It would be great if there was another solution, than
to press a key to open a browser to open a website to show an X-Face.

> I'll let the cow-creature charaterisation slide -- this time.  };O)

Thanks and sorry... ;) I never saw your X-Face before - if I had I
would probably have guessed.
Re: [slrn/S-Lang] RegEx for duplicate signature delimiters
#151735
Author: SINNER
Date: Tue, 13 Jul 2004 16:38
10 lines
2032 bytes
* Lars Stokholm Wrote in news.software.readers:

> That X-Face interpretation, is that a patch? A macro?

Its a Macro, Look for slrnface.sl only works in an Xterminal though. 
There is an ascii version that should work in a console but I've nt 
been able to make it work.

-- 
David
Re: [slrn/S-Lang] RegEx for duplicate signature delimiters
#151739
Author: Lars Stokholm
Date: Tue, 13 Jul 2004 17:22
10 lines
1917 bytes
SINNER wrote:

>> That X-Face interpretation, is that a patch? A macro?
>
> Its a Macro, Look for slrnface.sl only works in an Xterminal though. 
> There is an ascii version that should work in a console but I've nt 
> been able to make it work.

OK. I'm not sure the ASCII version is worth it, I might as well use
my own macro. Thanks anyway though.
Re: [slrn/S-Lang] RegEx for duplicate signature delimiters
#151743
Author: Blinky the Shark
Date: Tue, 13 Jul 2004 18:13
18 lines
1726 bytes
Lars Stokholm wrote:

> Blinky the Shark wrote:

>>>> By the way, I thought I saw the word "gvim". ;) I'm still with Metapad,
>>>> despite many attempts to learn something else...

>> Huh!?

> Huh huh!? What? ;)

DC not using vim?

-- 
Blinky                                Linux Registered User 297263

New Pieces of Shakespeare Manuscript Found Near Salt Lake City USA
Sorry - penguins only:  http://snipurl.com/scolius  (at blinkynet)
Re: [slrn/S-Lang] RegEx for duplicate signature delimiters
#151745
Author: Blinky the Shark
Date: Tue, 13 Jul 2004 18:15
31 lines
2183 bytes
Lars Stokholm wrote:
> DC wrote:

>>> http://dcmoose.fateback.com/screens/lars1.png

>> <piggyback>

>> I think that we might have found a bug, here.

> I agree.

>> One would think that slrn should ignore any sig delimiters, specified in
>> strip_sig_regexp, when contained within verbatim marks.

> It seems that it will be ignored inside the verbatim text. If you
> hide the signature, only what is below the end verbatim mark will
> be hidden. Example:
> #v+
> I'm not signature.
> -- 
> I'm not signature either, you can't hide me with toggle signature.
> #-
> I am signature though.

All hidden here (thus quoted).

-- 
Blinky                                Linux Registered User 297263

New Pieces of Shakespeare Manuscript Found Near Salt Lake City USA
Sorry - penguins only:  http://snipurl.com/scolius  (at blinkynet)
Re: [slrn/S-Lang] RegEx for duplicate signature delimiters
#151747
Author: Blinky the Shark
Date: Tue, 13 Jul 2004 18:16
28 lines
2188 bytes
DC wrote:

> Lars Stokholm wrote:

>> DC wrote:

> [...]

>>> };O)

>> OK, I have to ask: Is it a devil, or some sort of cow-creature? :)

> *GASP!*

>> I don't do advanced smileys as you can see.

> It's an emoticonomological <g> representation of my x-face.
> http://dcmoose.fateback.com/screens/cow_creature.jpg

> I'll let the cow-creature charaterisation slide -- this time.  };O)

Well, what else is a moose, if not a cow-creature with fancy horns. ;)

-- 
Blinky                                Linux Registered User 297263

New Pieces of Shakespeare Manuscript Found Near Salt Lake City USA
Sorry - penguins only:  http://snipurl.com/scolius  (at blinkynet)
Re: [slrn/S-Lang] RegEx for duplicate signature delimiters
#151748
Author: Blinky the Shark
Date: Tue, 13 Jul 2004 18:24
35 lines
2809 bytes
DC wrote:

> SINNER wrote:

>> * DC Wrote in news.software.readers:

>>> The same thing used to happen to me after spending whole
>>> afternoons in the arcade watching all them blinkenlights.  };O)

>> You mean these:

>> http://www.blinkenlights.de/

> That is way too cool.  }:O)))

When I was a freshman at Michigan State, we had a kick-ass football
team, won our conference, and thereby got a bid from one of the top
(and the oldest) bowl games, for New Years Day.  On one end of campus
there was a new 12-story dorm going up -- it would be the the first one
over 6 stories high, when it opened.  One night just before winter final
exams week, I looked out my own dorm window - on the far side of campus
- and some hackers had hopped the fence, got into the building and spelled
out on the side facing the rest of the campus, 12 stories high:


                            R O S E
                      
                            B O W L


-- 
Blinky                                Linux Registered User 297263

New Pieces of Shakespeare Manuscript Found Near Salt Lake City USA
Sorry - penguins only:  http://snipurl.com/scolius  (at blinkynet)
Re: [slrn/S-Lang] RegEx for duplicate signature delimiters
#151785
Author: DC
Date: Wed, 14 Jul 2004 15:51
32 lines
2541 bytes
Blinky the Shark wrote:
> DC wrote:

>> Lars Stokholm wrote:

>>> DC wrote:

>> [...]

>>>> };O)

>>> OK, I have to ask: Is it a devil, or some sort of cow-creature? :)

>> *GASP!*

>>> I don't do advanced smileys as you can see.

>> It's an emoticonomological <g> representation of my x-face.
>> http://dcmoose.fateback.com/screens/cow_creature.jpg

>> I'll let the cow-creature charaterisation slide -- this time.  };O)

> Well, what else is a moose, if not a cow-creature with fancy horns. ;)


I'll just ask my wife what she thinks.  If I don't come back, you'll
have your answer.

-- 
DC                                  Linux RU #1000111011000111001

Why I love Open Source: http://support.microsoft.com/?kbid=111601
Re: [slrn/S-Lang] RegEx for duplicate signature delimiters
#151803
Author: Blinky the Shark
Date: Wed, 14 Jul 2004 18:10
36 lines
2690 bytes
DC wrote:
> Blinky the Shark wrote:
>> DC wrote:

>>> Lars Stokholm wrote:

>>>> DC wrote:

>>> [...]

>>>>> };O)

>>>> OK, I have to ask: Is it a devil, or some sort of cow-creature? :)

>>> *GASP!*

>>>> I don't do advanced smileys as you can see.

>>> It's an emoticonomological <g> representation of my x-face.
>>> http://dcmoose.fateback.com/screens/cow_creature.jpg

>>> I'll let the cow-creature charaterisation slide -- this time.  };O)

>> Well, what else is a moose, if not a cow-creature with fancy horns. ;)

> I'll just ask my wife what she thinks.  If I don't come back, you'll
> have your answer.

<tapping fingertips on desk> <playing minesweeper> ... <wondering how
long we have to wait before we decide you're not coming back>

-- 
Blinky                                Linux Registered User 297263

New Pieces of Shakespeare Manuscript Found Near Salt Lake City USA
Sorry - penguins only:  http://snipurl.com/scolius  (at blinkynet)
Re: [slrn/S-Lang] RegEx for duplicate signature delimiters
#151810
Author: Richard Hoskins
Date: Wed, 14 Jul 2004 18:48
40 lines
2437 bytes
DC <dcmoose@myrealbox.com> writes:

> Blinky the Shark wrote:
>> DC wrote:
>
>>> Lars Stokholm wrote:
>
>>>> DC wrote:
>
>>> [...]
>
>>>>> };O)
>
>>>> OK, I have to ask: Is it a devil, or some sort of cow-creature? :)
>
>>> *GASP!*
>
>>>> I don't do advanced smileys as you can see.
>
>>> It's an emoticonomological <g> representation of my x-face.
>>> http://dcmoose.fateback.com/screens/cow_creature.jpg
>
>>> I'll let the cow-creature charaterisation slide -- this time.
>>> };O)
>
>> Well, what else is a moose, if not a cow-creature with fancy
>> horns. ;)
>
>
> I'll just ask my wife what she thinks.  If I don't come back, you'll
> have your answer.


A Møøse once bit my sister...

No realli!

-- 
Lift me down, so I can make the Earth tremble.
                                --Bucky Katt
Re: [slrn/S-Lang] RegEx for duplicate signature delimiters
#151812
Author: DC
Date: Wed, 14 Jul 2004 18:51
44 lines
2789 bytes
Richard Hoskins wrote:
> DC <dcmoose@myrealbox.com> writes:

>> Blinky the Shark wrote:
>>> DC wrote:

>>>> Lars Stokholm wrote:

>>>>> DC wrote:

>>>> [...]

>>>>>> };O)

>>>>> OK, I have to ask: Is it a devil, or some sort of cow-creature? :)

>>>> *GASP!*

>>>>> I don't do advanced smileys as you can see.

>>>> It's an emoticonomological <g> representation of my x-face.
>>>> http://dcmoose.fateback.com/screens/cow_creature.jpg

>>>> I'll let the cow-creature charaterisation slide -- this time.
>>>> };O)

>>> Well, what else is a moose, if not a cow-creature with fancy
>>> horns. ;)


>> I'll just ask my wife what she thinks.  If I don't come back, you'll
>> have your answer.


> A Møøse once bit my sister...

> No realli!

She was delicious.  }|O9

-- 
DC                                  Linux RU #1000111011000111001

Why I love Open Source: http://support.microsoft.com/?kbid=111601
Re: [slrn/S-Lang] RegEx for duplicate signature delimiters
#153787
Author: Thomas Schultz
Date: Fri, 13 Aug 2004 23:12
11 lines
1714 bytes
* DC [2004-07-13 02:22] :
[...]
> One would think that slrn should ignore any sig delimiters, specified in
> strip_sig_regexp, when contained within verbatim marks.

I agree and just changed the code accordingly.
-- 
Thomas Schultz <tststs@gmx.de>  News on slrn: http://slrn.sf.net/news.html
.-----------------------------. [2003-08-25] Released slrn 0.9.8.0
| Home of the slrn newsreader | [2003-08-19] New slrn FAQ available
| http://slrn.sourceforge.net | [2003-07-31] First beta with offline reading
Re: [slrn/S-Lang] RegEx for duplicate signature delimiters
#153807
Author: DC
Date: Sat, 14 Aug 2004 14:36
14 lines
1835 bytes
Thomas Schultz wrote:
> * DC [2004-07-13 02:22] :
> [...]
>> One would think that slrn should ignore any sig delimiters, specified in
>> strip_sig_regexp, when contained within verbatim marks.

> I agree and just changed the code accordingly.

Why, thank you, Thomas.  }:O)

-- 
DC                                  Linux RU #1000111011000111001

Why I love Open Source: http://support.microsoft.com/?kbid=111601
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