Re: WPTools 5.06 - wordprocessing comp. suite based on new, modern RTF + HTML/CSS Engine (by WPCubed GmbH)

From: Julian Ziersch (news_at_wptools.de)
Date: 08/30/04


Date: Mon, 30 Aug 2004 08:41:27 +0200

Hi Gene,

>If you are in the process of implementing the spell check routines,
>it would be helpful if you also have a Spell_GetPreviousWord procedure in
>addition to the Spell_GetNextWord. This would help in using spell checking
>as you type in order to pick up repeated (duplicated) words
>in addition to misspelled words. Right now, I can only pick up
>misspelled words as I type. (I can pick up repeated words if
>I spell check the entire text string; I would like to pick up repeated
>words as I type.)

Since GetNextWord is used to step through the text word by word I
think GetPreviousWord is not useful - simply store the previos string
and check.

You can also pretty easy develop SpellAsYouGo by using the event
OnSpellCheckWord .

// attached with: WPRichText1.Memo.OnSpellCheckWord :=
// DoSpellCheckWord;
procedure TForm1.DoSpellCheckWord(Sender: TObject;
    var word: WideString;
    var resultvalue: TSpellCheckResult;
    var hyphen_pos: TSpellCheckHyphen;
    par: TParagraph;
    posinpar: Integer
    );
begin
    if Word<>'misspelled' then
    begin
        resultvalue := [];
    end
    else
    begin
        resultvalue := [spMisSpelled];
    end;
end;

The 'OnMouseDownWord' event makes it possible to create a popup for
misspelled words.

Julian Ziersch



Relevant Pages

  • Re: Desperate need of Spell Check assistance for Word 2007! Please hel
    ... I was typing one day in Word 2007 when all of a sudden the red squiggly lines under my misspelled words disappeared. ... I've tried EVERYTHING I can think of to fix the spell check...I made sure everything under "Proofing" is checked appropriately, all the language settings are correct, and I uninstalled and reinstalled the program and it still didn't work. ... For what it's worth, after I reinstalled the program, under "Start", "Programs", when new programs are usually highlighted orange, Word, Excel, and PP were not highlighted, while all the other Office programs were. ...
    (microsoft.public.word.docmanagement)
  • Re: Spell Check Works Sporadically in Outlook 2007 E-mail
    ... you are typing in the signature field. ... Copy and paste includes the style so no spell check. ... Diane Poremsky [MVP - Outlook] ... Misspelled words are not underlined. ...
    (microsoft.public.outlook)
  • Re: Dictionary Not working in "some" Text Boxes
    ... Spelling Checker Misses Misspelled Words ... > My spell check is NOT working in "selected text boxes" in publisher. ... > dictionay to see if I had added the word to the dictionay by mistake. ...
    (microsoft.public.publisher)
  • Spell Check ignores Mail merge fields
    ... Spell check ignores mail merge fields because they are ... I have gone through the /edit/find/ no language and no ... then, with deliberately misspelled words, the spell ... template I use so that the spell checker will check each ...
    (microsoft.public.word.mailmerge.fields)

Loading