Thread View: news.software.readers
2 messages
2 total messages
Started by DC
Sat, 27 Mar 2004 00:49
[slrn] Recognising non-standard quote characters
Author: DC
Date: Sat, 27 Mar 2004 00:49
Date: Sat, 27 Mar 2004 00:49
32 lines
2157 bytes
2157 bytes
Is there a way to make slrn recognise non-standard quote characters and treat them as it does ">" symbols? There is a user in one of my regular groups that insists on using a "]" to mark quoted text. Naturally, this completely fscks up my quote level colour scheme. I've been digging through the docs (and Google) for help, but all I've managed to find is quote_string to change the ">" for my postings. This, obviously, is not what I want. <clickety> Oops, I spoke too soon. Okay, so I've just found this: % This regular expression defines lines that are consider to be quoted lines. % It says that any lines beginning with 0-2 spaces followed by a either % a >, <, :, |, or = character is a quoted line. ignore_quotes "^ ? ?[><:=|]" I can't seem to add a "]" to this string -- clearly, this confuses things. I tried escaping it like this \], but no joy. Could someone kindly lend a hand, here? Thanks. -- DC Registered Linux User #1000111011000111001 Why I love Open Source: http://support.microsoft.com/?kbid=111601
Re: [slrn] Recognising non-standard quote characters
Author: DC
Date: Sat, 27 Mar 2004 00:54
Date: Sat, 27 Mar 2004 00:54
63 lines
3150 bytes
3150 bytes
<piggyback -- }:(8) Oink!> DC wrote: > Is there a way to make slrn recognise non-standard quote characters and > treat them as it does ">" symbols? > There is a user in one of my regular groups that insists on using a "]" > to mark quoted text. Naturally, this completely fscks up my quote level > colour scheme. > I've been digging through the docs (and Google) for help, but all I've > managed to find is quote_string to change the ">" for my postings. This, > obviously, is not what I want. ><clickety> > Oops, I spoke too soon. Okay, so I've just found this: > % This regular expression defines lines that are consider to be quoted lines. > % It says that any lines beginning with 0-2 spaces followed by a either > % a >, <, :, |, or = character is a quoted line. > ignore_quotes "^ ? ?[><:=|]" > I can't seem to add a "]" to this string -- clearly, this confuses > things. I tried escaping it like this \], but no joy. > Could someone kindly lend a hand, here? > Thanks. This has to be a new record. I just answered my own question. http://slrn.sourceforge.net/docs/manual.txt <q> 5.3.8. ignore_quotes Usage: ignore_quotes pattern [pattern] ... The regular expressions given here are used to determine quoted lines in the body of an article. You can define up to 5 different patterns (this is meant to make up for the lack of an OR operator in slang regexps). Please try to keep them as exact as possible, so that slrn is able to distinguish different quoting levels - e.g. use "^>" rather than "^>*". By default, only one pattern is set: "^ ? ?[><:=|]" </q> So, the "trick" was to add them in series, like this: ignore_quotes "^ ? ?[><:=|]" "^]" Glad I could help, DC. Hey, no problem! Anytime! Here, have a beer. Why thank you, DC, you're so kind! I know... };O) -- DC Registered Linux User #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