Suggestion-list from customdic.txt

General TRichView support forum. Please post your questions here
Post Reply
Gwiasda
Posts: 11
Joined: Mon Feb 16, 2015 3:15 pm

Suggestion-list from customdic.txt

Post by Gwiasda » Thu Apr 09, 2015 1:55 pm

I have a project with hunspelldll.dll and a Germany dictionary and a Customdic.txt. Save and spell in the custom dictionary works fine. But the suggestion-list only comes from the Germany dictionary. What can I do to load a suggestion -list from the custom dictionary too?
Your code searched only the directories but not the custom dictionary. Do I have this right?

procedure TRVHunSpell.Suggest(Word: TRVUnicodeString;
Suggestions: {$IFDEF USERVTNT}TTntStrings{$ELSE}TStrings{$ENDIF};
Language: TRVUnicodeString);
var
I: Integer;
begin
Suggestions.Clear;
for I := 0 to Dictionaries.Count - 1 do
begin
if (Language = '') or (Language = Dictionaries.FLanguage) then
Dictionaries.Suggest(Word, Suggestions);
end;
end;

Post Reply