🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #264889

Re: Dialog signature delimiter

#264889
From: Bernd Rose
Date: Thu, 22 Apr 2021 20:13
46 lines
3454 bytes
On Thu, 22nd Apr 2021 15:12:39 +0200, bill wrote:

[40tude text autocorrection]
> What worked the first time was I created an autocorrect entry for three
> subsequent b's in a row (I typed them but it autocorrected me!). ;-/
> 
> When I type the space after the three b's it converts it to Regards,^Mbill 
> I haven't yet figured out how to get the control M character to work.

While typing, any text is copied into the 16-bit Unicode formatted text
buffer I mentioned in an earlier post. For the copy function and the text
buffer, itself, ^M are just 2 simple characters (^ and M). There's no
interpreter (function) involved, that might interpret ^M as a control
character.

>> Of course, bill wanted "regards,\nbill" inserted into his message, but
>> auto-correct would add a string within the current line instead of
>> adding 2 lines.  I take it \n (newline) cannot be included in the
>> auto-correct string.
> 
> I just set "aaa" to "Regards,\nbill" in the "a.dy" dictionary & saved it.
> Now when I type aaa nothing happens 

That's not because of the \n, but because some of your active dictionaries
accepts aaa as valid word. Only strings, that are not valid words in any
of your currently active dictionaries can be used as shortcuts for your
autocorrection lists. Best, first to try a string inside the Compose
editor window. If the string gets a red underlining (= spelling error or
unknown word), it is usable as autocorrection shortcut.

Back to "Regards,\nbill": Regular expressions aren't evaluated by the
copy function or inside the text buffer, either. (As VanguardLH already
suggested.) If you'd have used a working autocorrection shortcut, the
outcome would have been just: Regards,\nbill

As long as you have auto-wrapping of long lines turned on and leave the
"Wrap after XX characters" on a fixed value, you can trick autocorrect
into some virtual multi-line-support, though. Just type enough space
characters between "Regards," and "Bill" to trigger the wrapping. ;-)

This may get you unfriendly replies, though, if people start to notice,
that you bloat all your messages with lots of unnecessary space chars
just to save a couple of keystrokes. So, maybe, you apply this approach
only, when you find a longer first-line text than "Regards,"...   ;-)

Bernd
Technical Details
Message-ID: <1puqewfef1flx$.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> <1nxmd9phvu8fg.dlg@v.nguard.lh> <1dob5buuw4cod.dlg@v.nguard.lh> <s5nspi$1p71$1@gioia.aioe.org> <j60d0yfypsr3$.dlg@v.nguard.lh> <fj8zu1aou1se.dlg@b.rose.tmpbox.news.arcor.de> <qa1g6yr2jbwk$.dlg@v.nguard.lh> <s5rsnu$1vaf$1@gioia.aioe.org>

Show Full Headers
Complete Article Headers
Message-ID: <1puqewfef1flx$.dlg@b.rose.tmpbox.news.arcor.de>
Subject: Re: Dialog signature delimiter
Date: Thu, 22 Apr 2021 22:13:44 +0200
From: Bernd Rose <b.rose.tmpbox@arcor.de>
References: <s5ilpb$kd9$1@gioia.aioe.org> <1nxmd9phvu8fg.dlg@v.nguard.lh> <1dob5buuw4cod.dlg@v.nguard.lh> <s5nspi$1p71$1@gioia.aioe.org> <j60d0yfypsr3$.dlg@v.nguard.lh> <fj8zu1aou1se.dlg@b.rose.tmpbox.news.arcor.de> <qa1g6yr2jbwk$.dlg@v.nguard.lh> <s5rsnu$1vaf$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
Content-Transfer-Encoding: 7bit
User-Agent: 40tude_Dialog/2.0.15.41 (334e9e3f.252.344)
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Cancel-Lock: sha1:8TCFVDdknKdrrF6fz0v4UtzqojQ=
X-User-Id: eJwFwYEBwCAIA7CXGErVc4DS/09YEgsf+mwEdii0mYLi5MHYmPuoq2sR81id9FdI3mVkzzYdx3A1yhVeLav5Moy6b4zvBzP2HCg=
Injection-Info: solani.org; logging-data="9717"; mail-complaints-to="abuse@news.solani.org"
Newsgroups: news.software.readers