Is it possible to set up an auto correct feature with WpSpell (or any other way). I mean auto correct of things like teh -> the or thnaks -> thanks
(I am using wptools 5 and wpspell on D2007)
Thanks
Didier
Is it possible to set up an auto correct feature with WpSpell (or any other way). I mean auto correct of things like teh -> the or thnaks -> thanks
(I am using wptools 5 and wpspell on D2007)
Thanks
Didier
I am still looking for an answer and would love to hear your ideas ...
Didier
Hi,
The event AfterCompleteWordEvent could be used. WPSpell also uses this.
Inside this event You can read and write the current wird using the property CPWord.
You can use this also for macros:
procedure TWPTBXForm.WPRichText1AfterCompleteWordEvent(Sender: TObject;
var lastchar: Char);
begin
if lastchar = #32 then
begin
if WPRichText1.CPWord = 'mfg' then
begin
WPRichText1.CPWord := 'Mit freundlichen Grüssen';
end;
end
else if lastchar = '+' then
if WPRichText1.CPWord = 'mfg' then
begin
WPRichText1.CPWord := 'Mit freundlichen Grüssen';
end;
end;
Alles anzeigen
Regards,
Julian
Thank you Julian, this should give me a head start
Didier
This is actually the event I used and it work beautifully.