Article View: news.software.readers
Article #264848Re: Dialog signature delimiter
From: bill
Date: Mon, 19 Apr 2021 13:09
Date: Mon, 19 Apr 2021 13:09
75 lines
4517 bytes
4517 bytes
On Mon, 19 Apr 2021 06:30:52 +0200, Bernd Rose wrote: > Shouldn't be too much work with an OnBeforeSending > script, because the sig is inserted on the creation of the message (or > by explicitly selecting it while editing) and not just on sending. I love that you suggested this 40tude Dialog to someone else in another recent thread as Dialog seems like a really nicely done Win10 newsreader! I checked out this "OnBeforeSending" functionality and while I'm not a programmer I can often string together examples to tweak and guess at syntax. I guess I could convert an existing *.ds script to create a custom sig but I openly admit removing the sig delimiter isn't all that important. If it's not just a simple switch it's probably not worth writing. I was just asking if the option existed - that's all (as Dialog seems to have a LOT of nicely thought out options!). One OnBeforeSending script idea I have is one that gets rid of inconsistent punctuation before sending because I often paste from a variety of web sites which creates conflicting punctuation. https://www.toptal.com/designers/htmlarrows/punctuation/ Hidden HTML characters such as zero width non joiner characters (‌) (https://en.wikipedia.org/wiki/Zero-width_non-joiner) are sometimes in the cut and paste results (aka ZWNJ) that I'd like Dialog to replace with a space instead. Likewise with horizontal elipses and the infamous em dash (https://www.toptal.com/designers/htmlarrows/punctuation/horizontal-ellipsis/) (https://www.toptal.com/designers/htmlarrows/punctuation/em-dash/) And we're all familiar with smart quotes (also known as "curling quotes"). (https://www.typewolf.com/cheatsheet) (https://dwheeler.com/essays/quotes-in-html.html) While we can remove & replace them on Windows using Notepadd++ (https://stackoverflow.com/questions/12124434/easiest-way-to-convert-smart-curly-quotes-to-dumb-straight-quotes-in-notepad) It would be nice for Dialog OnBeforeSending script to do it for us. Convert HTML character " " to "'" Convert HTML character "༌" to "'" Convert HTML character " " to "'" Convert HTML character "​" to "'" Convert HTML character "‌" to "'" Convert HTML character "‌" to '&' Convert HTML character "‍" to "'" Convert HTML character "‑" to "'" Convert HTML character "‘" to "'" Convert HTML character "‘" to "'" Convert HTML character "’" to "'" Convert HTML character "’" to "'" Convert HTML character "“" to '"' Convert HTML character "“" to '"' Convert HTML character "”" to '"' Convert HTML character "”" to '"' Convert HTML character "…" to ' ' Convert HTML character " " to "'" Convert HTML character "⁠" to "'" Convert HTML character "" to "." 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,' ','''); -- Police are searching for a robber who's stealing blunt pencils. Quite frankly, they cant see the point
Technical Details
Message-ID:
<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-mailReferences:
<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>Show Full Headers
Complete Article Headers
Message-ID: <s5jvec$5s7$1@gioia.aioe.org> Subject: Re: Dialog signature delimiter Date: Mon, 19 Apr 2021 15:09:40 +0200 From: bill <bill@spam.invalid> 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> 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 Organization: Aioe.org NNTP Server Lines: 75 Nntp-Posting-Host: tKMeCZpOoHFkQLaFKeAqow.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.41 (51e03d8d.9.298) X-Notice: Filtered by postfilter v. 0.9.2