Page 1 of 1

Autocorrection

Posted: Sun Feb 01, 2015 11:52 am
by Jim Knopf
What is the easyest way of autocorrection?

I plan to offer users the option of an list that contains individual replacements. During writing special strings as ^x should be automatically replaced by a word or phrase.

Posted: Sun Feb 01, 2015 4:29 pm
by Sergey Tkachenko
You can see the source code of function RVA_Addict3AutoCorrect in RichViewActions.pas.
It is assumed that this function is called from OnKeyDown (when Enter is pressed) and in OnKeyPress (when tab, space or other delimiter characters are pressed). If the current word has a correction, it replaces it.