🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
7 messages
7 total messages Started by Carl Flippin Sun, 16 Nov 2008 16:51
Per group settings in slrn
#227479
Author: Carl Flippin
Date: Sun, 16 Nov 2008 16:51
10 lines
2040 bytes
Is it possible to change the highlighting of quoted material on a per
group basis? One of my newsgroups is full of ascii art and it always
highlights parts of the messages that it thinks are quotes and screws
up the ascii art. I checked the documentation but only saw global
settings. Any hints would be greatly appreciated.

-- 
Carl Flippin             | Some people, when confronted with a problem,
carlf@photocarl.org      | think "I know, I'll use regular expressions".
http://www.photocarl.org | Now they have two problems. - jwz
Re: Per group settings in slrn
#227481
Author: Troy Piggins
Date: Sun, 16 Nov 2008 20:08
58 lines
3206 bytes
* Carl Flippin wrote :
> 
> Is it possible to change the highlighting of quoted material on a per
> group basis? One of my newsgroups is full of ascii art and it always
> highlights parts of the messages that it thinks are quotes and screws
> up the ascii art. I checked the documentation but only saw global
> settings. Any hints would be greatly appreciated.

By "change the highlighting", do you mean change the colour of
highlighting, or change the patterns that /cause/ the highlighting?
I assume the latter.

Interesting idea.  You'd need a macro/hook to do that.  Won't
work in base slrn.

The macro would just change your settings depending on what group
you enter.  Let me think...

You need to set "ignore_quotes" on a group basis.  Try this.  I
hacked it from another macro of mine, but it's untested.  you'll
need to change the "ascii" pattern as commented.  I don't know
what pattern you want.

#v+
define quote_assign(q) {

  variable cgp= current_newsgroup();
  variable default_quote;

  switch( cgp)
    { ( is_substr( cgp, "alt.ascii-art")): default_quote=
"ascii";}
    { default_quote= "default";}

  if (0==strlen(q))
  q= default_quote;

  variable q_pattern;

  switch( q)
    { case "default" :
      q_pattern= "^ ? ?[><:=|]";
    }
    { case "ascii" :
% change this pattern here to what you want
      q_pattern= "^ ? ?[><:=|]";
    }
    { message( "Error detecting identity");}

  set_string_variable ("ignore_quotes", q_pattern);

}
#v-

-- 
Troy Piggins | http://piggo.com/~troy/slrn                    ___  |   __   __
                                                             |___  | |/   |/  |
                                                              ___| | |    |   |
Re: Per group settings in slrn
#227482
Author: Troy Piggins
Date: Sun, 16 Nov 2008 20:17
76 lines
3731 bytes
* Troy Piggins wrote :
> * Carl Flippin wrote :
>> 
>> Is it possible to change the highlighting of quoted material on a per
>> group basis? One of my newsgroups is full of ascii art and it always
>> highlights parts of the messages that it thinks are quotes and screws
>> up the ascii art. I checked the documentation but only saw global
>> settings. Any hints would be greatly appreciated.
>
> By "change the highlighting", do you mean change the colour of
> highlighting, or change the patterns that /cause/ the highlighting?
> I assume the latter.
>
> Interesting idea.  You'd need a macro/hook to do that.  Won't
> work in base slrn.
>
> The macro would just change your settings depending on what group
> you enter.  Let me think...
>
> You need to set "ignore_quotes" on a group basis.  Try this.  I
> hacked it from another macro of mine, but it's untested.  you'll
> need to change the "ascii" pattern as commented.  I don't know
> what pattern you want.

Just had another look at this, and had a residual variable in
there not needed for your macro.  Make these changes:

> #v+
> define quote_assign(q) {

define quote_assign() {
                  ^^^^
Get rid of "q" here

>   variable cgp= current_newsgroup();
>   variable default_quote;
>
>   switch( cgp)
>     { ( is_substr( cgp, "alt.ascii-art")): default_quote=
> "ascii";}
>     { default_quote= "default";}
>
>   if (0==strlen(q))
^^^^^^^^^^^^^^^^^^^^^
>   q= default_quote;
^^^^^^^^^^^^^^^^^^^^^

Delete these 2 lines.

>   variable q_pattern;
>
>   switch( q)

  switch( default_quote)
        ^^^^^^^^^^^^^^^^

Change this.

>     { case "default" :
>       q_pattern= "^ ? ?[><:=|]";
>     }
>     { case "ascii" :
> % change this pattern here to what you want
>       q_pattern= "^ ? ?[><:=|]";
>     }
>     { message( "Error detecting identity");}
>
>   set_string_variable ("ignore_quotes", q_pattern);
>
> }
> #v-

-- 
Troy Piggins | http://piggo.com/~troy/slrn                    ___  |   __   __
                                                             |___  | |/   |/  |
                                                              ___| | |    |   |
Re: Per group settings in slrn
#227503
Author: Jarek 'bacza' Baczynski
Date: Mon, 17 Nov 2008 23:17
27 lines
1936 bytes
W poprzednim odcinku... (Carl Flippin pisze):

> Is it possible to change the highlighting of quoted material on a per
> group basis? One of my newsgroups is full of ascii art and it always
> highlights parts of the messages that it thinks are quotes and screws
> up the ascii art. I checked the documentation but only saw global
> settings.

check out tsca's s-lang webpage:

http://www.geocities.com/tsca.geo/slang.html

for his 'multiple personalities' macro.

it was intended (long long time ago ;) for changing user's personality
depending on a newsgroup but I guess it could be easily extended for
changing the highlighting/colors as well.

> Any hints would be greatly appreciated.

keep your s-lang documentation handy ;->>

pozdro,
jb.

-- 
http://www.bacza.net/slrn/
Re: Per group settings in slrn
#227504
Author: Mike Yetto
Date: Mon, 17 Nov 2008 23:52
34 lines
2743 bytes
Bada bing Jarek 'bacza' Baczynski <jarek@nie.lubie.spamu.invalid> bada bang:
> W poprzednim odcinku... (Carl Flippin pisze):
>
>> Is it possible to change the highlighting of quoted material on a per
>> group basis? One of my newsgroups is full of ascii art and it always
>> highlights parts of the messages that it thinks are quotes and screws
>> up the ascii art. I checked the documentation but only saw global
>> settings.
>
> check out tsca's s-lang webpage:
>
> http://www.geocities.com/tsca.geo/slang.html
>
> for his 'multiple personalities' macro.
>
> it was intended (long long time ago ;) for changing user's personality
> depending on a newsgroup but I guess it could be easily extended for
> changing the highlighting/colors as well.
>
>> Any hints would be greatly appreciated.
>
> keep your s-lang documentation handy ;->>
>
> pozdro,
> jb.
>

Can we change *any* user's personality?  If so, I could come up
with a few suggestions.

Mike "now *that's* a newsreader" Yetto
-- 
Pluralitas non est ponenda sine necessitas.
 - William of Ockham
Re: Per group settings in slrn
#227510
Author: Adam Funk
Date: Tue, 18 Nov 2008 15:28
31 lines
2033 bytes
On 2008-11-17, Jarek 'bacza' Baczynski wrote:

> W poprzednim odcinku... (Carl Flippin pisze):
>
>> Is it possible to change the highlighting of quoted material on a per
>> group basis? One of my newsgroups is full of ascii art and it always
>> highlights parts of the messages that it thinks are quotes and screws
>> up the ascii art. I checked the documentation but only saw global
>> settings.
>
> check out tsca's s-lang webpage:
>
> http://www.geocities.com/tsca.geo/slang.html
>
> for his 'multiple personalities' macro.
>
> it was intended (long long time ago ;) for changing user's personality
> depending on a newsgroup 

So is
http://www.emmanuelebassi.net/slrn/identity.sl

> but I guess it could be easily extended for
> changing the highlighting/colors as well.

but I don't think it can do that.


-- 
The wonderful thing about standards is that there are so 
many of them to choose from.       [Grace Murray Hopper]
Re: Per group settings in slrn
#227511
Author: Adam Funk
Date: Tue, 18 Nov 2008 15:29
19 lines
1796 bytes
On 2008-11-17, Mike Yetto wrote:

> Bada bing Jarek 'bacza' Baczynski <jarek@nie.lubie.spamu.invalid> bada bang:

...
>> it was intended (long long time ago ;) for changing user's personality
>> depending on a newsgroup but I guess it could be easily extended for
>> changing the highlighting/colors as well.

> Can we change *any* user's personality?  If so, I could come up
> with a few suggestions.

Hey!  I'm sitting right here!


-- 
History teaches that grave threats to liberty often come in times of
urgency, when constitutional rights seem too extravagant to endure.
                                                 (Thurgood Marshall)
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