🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #74861

Re: Multilevel colouring of quoted text...

#74861
From: Robert Amesz
Date: Sat, 31 Mar 2001 17:10
64 lines
4325 bytes
Murray Peterson wrote:

>rcameszREMOVETHIS@dds.removethistoo.nl (Robert Amesz) wrote in 
><Xns90748887C47Crcamesz@127.0.0.1>:
>
>>Your idea has merit, but does it have to be Perl? Personally, I
>>find Python a *much* cleaner language, and it's relatively easy to
>>embed. 
>
>I have no problem with Python either.  Either language is easy to
>embed, and both can handle the text manipulations very nicely.  I
>suggested Perl because the score file already uses Perl regular
>expressions, and I must admit that I am much more familiar with
>Perl.

Well, Python has regexes too, though it's not part of the language 
syntax itself, as it is with Perl, but it's located in a standard 
module. Mind you, I'm not attempting to start an advocacy-war here, and 
I'm not in any way implying that Perl isn't up to the task, but the 
consensus seems to be that Python is a lot easier to learn than Perl. 
And that would mean that more Xnews users could actually use that 
scripting feature effectively.


>>Furthermore, I seem to have read somewhere that there's an
>>embedded- python component for Delphi already.
>
>Might help make things easier.

Let's give Google a whirl... yep, got something:
    http://www.multimania.com/marat/delphi/python.htm
Curious, they're mentioning Python 1.5 in the text, but there's just 
the link to Python 2.0. I'm not a Delphi programmer, so I can't check 
how (or even if) it works. Still, it's a good starting point.


>>Also, replacing the richedit-component by a HTML-component might
>>make the display system a lot more flexible and scriptable.
>
>That's an amusing thought -- run the article through a script to
>strip all HTML from the poster, and replace it with my own HTML
>(which would be *much* nicer :-)

Hmmm, something like <p>Spurious HTML removed</p>, perhaps? That would 
save some aggravation, wouldn't it? But I thinking of the formatting 
capabilities of HTML: you could use a HTML-template to generate nicely 
formatted text, to suit your own preferences. The templates could even 
be different per group, or per server, so you could use a monospaced 
font in alt.ascii.art (and no, I'm not a regular there), and Times 
Roman in a literary group. Or you could put newsgroup headers in a 
table, so that long lines don't wrap all the way back to the beginning 
of the line. Also, HTML could handle unicode text, which might please 
some.

You could replace *a bold phrase* with <b>a bold phrase</b>, for 
instance. Or: a script could scan the article, and highlight certain 
keywords, or display them in a different font. (How about displaying 
every 'Xnews' in Times Roman Italic, or even embed the Xnews-logo 
inline? ;-) ) Or: change smileys to inline-pictures. As you can see, 
the possibilities are endless, if not necessarily too serious.


Robert Amesz
Technical Details
Message-ID: <Xns9075C2ED8D8E1rcamesz@127.0.0.1>
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!supernews.google.com!sn-xit-03!supernews.com!newsswitch.lcs.mit.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!dispose.news.demon.net!news.demon.nl!demon!amesz.demon.nl!not-for-mail
References: <Xns907199D2355A2RarAvishotmailcom@127.0.0.1> <Xns907211BAF2744wiredearp@194.182.148.146> <Xns9071F1E3ADFD9luutrangeocities@206.13.28.182> <Xns90727932AEF47farkle@24.64.2.57> <Xns90748887C47Crcamesz@127.0.0.1> <Xns9073C3FC75AA6farkle@24.64.2.57>

Show Full Headers
Complete Article Headers
Message-ID: <Xns9075C2ED8D8E1rcamesz@127.0.0.1>
Subject: Re: Multilevel colouring of quoted text...
Date: Sat, 31 Mar 2001 17:10:29 GMT
From: rcameszREMOVETHIS@dds.removethistoo.nl (Robert Amesz)
References: <Xns907199D2355A2RarAvishotmailcom@127.0.0.1> <Xns907211BAF2744wiredearp@194.182.148.146> <Xns9071F1E3ADFD9luutrangeocities@206.13.28.182> <Xns90727932AEF47farkle@24.64.2.57> <Xns90748887C47Crcamesz@127.0.0.1> <Xns9073C3FC75AA6farkle@24.64.2.57>
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!supernews.google.com!sn-xit-03!supernews.com!newsswitch.lcs.mit.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!dispose.news.demon.net!news.demon.nl!demon!amesz.demon.nl!not-for-mail
Newsgroups: news.software.readers
Reply-To: rcamesz@dds.nl
NNTP-Posting-Host: amesz.demon.nl
X-NNTP-Posting-Host: amesz.demon.nl:212.238.72.220
X-Trace: news.demon.nl 986058629 pluto:24286 NO-IDENT amesz.demon.nl:212.238.72.220
X-Complaints-To: abuse@nl.demon.net
X-Posting-Agent: Hamster/1.3.13.0
User-Agent: Xnews/4.03.29
X-Face: i/!"w>!GV8UL{^20`L2OEvvFz(T"{bFYn2<:u"5<4Blsl-isl(bTDMKVqWL?nk-VY7[[);j =yB|s]|c3nRG4c7^1#+/(D)v4ToNC;PoE=\7baN'i75%+2NhzndU~qJUTI*-v[R"l)Q$GOX3o(-#7C iY6a`%._v`G8cG`!/3,mt?pkyvjv3f}\-mZiNnXJ9EK~D>Qs(ckW8yam<<T!\Kf>`wtj3>eEAAV\
Lines: 63