🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #106969

Re: [slrn] `emphasized_text_mode' not working as it should

#106969
From: Jens Wahnes
Date: Sun, 28 Jul 2002 16:52
33 lines
2309 bytes
Andrew Preater wrote:

> *BeoWulf* - *Registered* *GNU/Linux* *user* *#223157*
> Unfortunately this shows up in slrn as:
> BeoWulf - Registered *GNU/Linux* user *#223157*

The algorithm for deciding what should be highlighted and what not
obviously isn't working perfectly in this case.  One reason why '/'
needs special attention when coloring is that in a sentence such as
"The files need to be installed in /usr/local/bin, not /usr/bin."
one would not want to see "usr" colorized.  In the obove case, the way
slrn handles '/' in highlighting leads to having words not be
highlighted that should have been; on the other hand, there are also
cases where slrn finds false positives.

Unfortunately, s-lang regexps would probably not be versatile enough to
allow the user to set what should be highlighted, so it's not possible
to have all users decide on their own what should be highlighted and
what should not through a config file option.

If you find a better algorithm for highlighting, maybe it could be
incorporated into the slrn source and a config file option added, i.e.
then one could select which algorithm to use via .slrnrc ("set
highlighting_algorithm <number>" or such).


Jens

-- 
"What is robbing a bank compared with founding a bank?"

        - Bertolt Brecht
Technical Details
Message-ID: <slrnak889t.1g0.nsr@message-id.wahnes-world.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!151.189.0.75!newsfeed.arcor-online.net!news.belwue.de!wahnes-world.de!not-for-mail
References: <ai0u2a$107iuq$1@ID-139491.news.dfncis.de>

Show Full Headers
Complete Article Headers
Message-ID: <slrnak889t.1g0.nsr@message-id.wahnes-world.de>
Subject: Re: [slrn] `emphasized_text_mode' not working as it should
Date: Sun, 28 Jul 2002 16:52:13 +0000
From: Jens Wahnes <jewa@gmx.net>
References: <ai0u2a$107iuq$1@ID-139491.news.dfncis.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!151.189.0.75!newsfeed.arcor-online.net!news.belwue.de!wahnes-world.de!not-for-mail
Newsgroups: news.software.readers
Organization: Wahnes World
Lines: 32
NNTP-Posting-Host: talkline24.rhrk.uni-kl.de
X-Trace: news.BelWue.DE 1027874911 10440 131.246.65.24 (28 Jul 2002 16:48:31 GMT)
X-Complaints-To: news@news.belwue.de
NNTP-Posting-Date: Sun, 28 Jul 2002 16:48:31 +0000 (UTC)
User-Agent: slrn/0.9.7.4 (Linux)