🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #264855

Re: Dialog signature delimiter

#264855
From: Bernd Rose
Date: Mon, 19 Apr 2021 18:29
28 lines
2389 bytes
On Mon, 19th Apr 2021 15:09:40 +0200, bill wrote:

> One OnBeforeSending script idea I have is one that gets rid of inconsistent
> punctuation before sending 
[...] 
> There is a script I found somewhere that replaced German characters
> but I haven't modified it yet to replace the HTML characters above.
> (http://dialog.datalist.org:80/scripts/ScriptreplaceUmlaut.html)
> 
> It's called "StringReplace" and it replaces characters using
>  s:=StringReplace(s,'oldcharacter','newcharacter');
> 
> But I haven't figured out yet how to feed it the HTML characters:
>  s:=StringReplace(s,' ',''');

There's more to it. Depending on your permitted/restricted encoding
settings and the characters contained in your message before the script
fires up, the text may be encoded in quite a few different ways.
The replacement script has to check the encoding and act accordingly.
This means, every character, which shall be replaced, needs /several/
replacement rules. Maybe okay for only few characters, but /not/ for
your very broad approach.

The old German umlaut replacing script was meant for "near ASCII" 
text. It has to be tweaked and expanded for more complex encodings,
if above condition is not met. - Even for these few replacement cases...

Bernd
Technical Details
Message-ID: <17rf3wjx02quj$.dlg@b.rose.tmpbox.news.arcor.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
References: <s5ilpb$kd9$1@gioia.aioe.org> <s5ir5o$7qt$1@tncsrv09.home.tnetconsulting.net> <s5irtv$ene$1@gioia.aioe.org> <s5iu6t$84h$1@tncsrv09.home.tnetconsulting.net> <w1ab8v93kvce$.dlg@b.rose.tmpbox.news.arcor.de> <s5jvec$5s7$1@gioia.aioe.org>

Show Full Headers
Complete Article Headers
Message-ID: <17rf3wjx02quj$.dlg@b.rose.tmpbox.news.arcor.de>
Subject: Re: Dialog signature delimiter
Date: Mon, 19 Apr 2021 20:29:34 +0200
From: Bernd Rose <b.rose.tmpbox@arcor.de>
References: <s5ilpb$kd9$1@gioia.aioe.org> <s5ir5o$7qt$1@tncsrv09.home.tnetconsulting.net> <s5irtv$ene$1@gioia.aioe.org> <s5iu6t$84h$1@tncsrv09.home.tnetconsulting.net> <w1ab8v93kvce$.dlg@b.rose.tmpbox.news.arcor.de> <s5jvec$5s7$1@gioia.aioe.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
Newsgroups: news.software.readers
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Injection-Info: solani.org; logging-data="25198"; mail-complaints-to="abuse@news.solani.org"
User-Agent: 40tude_Dialog/2.0.15.41 (f4ef0056.207.363)
Cancel-Lock: sha1:3B4c+iCFS9amW1cizuY3+t8GZoY=
X-User-Id: eJwVycERBCEMA7CWMLbDUk4IpP8Sbk5fmYGopXDI7T7UVxN67lFWnetg9gBTufEAcuV5sgncdZHFxJifPLr/f/aOZsyU1v0BvhQZOA==