Page 1 of 1

Suggestion-list from customdic.txt

Posted: Thu Apr 09, 2015 1:55 pm
by Gwiasda
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;