Page 1 of 1

hunspell for richview

Posted: Sun Jan 18, 2009 5:41 pm
by sr1111
hunspell question

normal procedure load
p := ExtractFilePath(Application.ExeName) + 'dict\';
spell := hunspell_initialize(PChar(p + 'en_US.aff'), PChar(p + 'en_US.dic'));

where, how can I load, apply this en_US.aff, en_US.dic for richviewedit (rvspell\Demos\HunSpell\RichViewActions)

Posted: Sun Jan 18, 2009 6:34 pm
by Sergey Tkachenko
Please read the comments in RVHunSpell.pas:
- specify DictDir property (a path to dictionary files; you can leave
it empty if dictionaries are in the application's directory
- add the necessary dicionaries in Dictionaries collection:
- RVHunSpell1.Dictionaries.Add.Load(<language>), where <language> is
a dictionary name (for example, for en_US.dic it is 'en_US';
On successfull loading, Language property of the new collection item
is <language>;
- or call LoadAllDictionaries to load all dictionaries in the path.

Posted: Mon Jan 19, 2009 3:32 am
by sr1111
I did into this lines and but not run

after I add hunspelldll.dll now runner

you can add hunspelldll.dll to directory rvspell\Demos\HunSpell\RichViewActions

not run without hunspelldll.dll

Posted: Mon Jan 19, 2009 4:06 pm
by Sergey Tkachenko
Yes, dll is necessary.

Re: hunspell for richview

Posted: Tue Aug 14, 2018 3:37 pm
by SergJP
Sorry, I can't install RVHunSpellPkgCB10_2

In RVHunSpell.pas the compiler makes errors:
procedure TRVHunSpell.Check(Editor: TCustomRichViewEdit; Scope: TRVEnumScope);
var Helper: TRVHunSpellHelper;
Helper := TRVHunSpellHelper.Create;
Helper.RVHunSpell := Self;
Helper.Unicode := True;
Helper.Check(Editor, Scope);
FDialogShown := Helper.DialogShown;
[DCC Error] RVHunSpell.pas(894): E2003 Undeclared identifier: 'Unicode'
[DCC Error] RVHunSpell.pas(1074): E2003 Undeclared identifier: 'FWordW'
[DCC Error] RVHunSpell.pas(1110): E2003 Undeclared identifier: 'FTextW'

Maybe I do something wrong?

Re: hunspell for richview

Posted: Tue Aug 14, 2018 5:25 pm
by Sergey Tkachenko
You tried to install an old version of the HunSpell parser.

The new version is in <TRichView Dir>\ThirdParty\HunSpell\Source\, and TRichView Setup installs it automatically.