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)
hunspell for richview
-
- Site Admin
- Posts: 17569
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
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.
-
- Site Admin
- Posts: 17569
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Re: hunspell for richview
Sorry, I can't install RVHunSpellPkgCB10_2
In RVHunSpell.pas the compiler makes errors:
[DCC Error] RVHunSpell.pas(1074): E2003 Undeclared identifier: 'FWordW'
[DCC Error] RVHunSpell.pas(1110): E2003 Undeclared identifier: 'FTextW'
Maybe I do something wrong?
In RVHunSpell.pas the compiler makes errors:
[DCC Error] RVHunSpell.pas(894): E2003 Undeclared identifier: 'Unicode'procedure TRVHunSpell.Check(Editor: TCustomRichViewEdit; Scope: TRVEnumScope);
var Helper: TRVHunSpellHelper;
begin
Helper := TRVHunSpellHelper.Create;
try
Helper.RVHunSpell := Self;
Helper.Unicode := True;
Helper.Check(Editor, Scope);
FDialogShown := Helper.DialogShown;
finally
Helper.Free;
end;
end;
[DCC Error] RVHunSpell.pas(1074): E2003 Undeclared identifier: 'FWordW'
[DCC Error] RVHunSpell.pas(1110): E2003 Undeclared identifier: 'FTextW'
Maybe I do something wrong?
-
- Site Admin
- Posts: 17569
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Re: hunspell for richview
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.
The new version is in <TRichView Dir>\ThirdParty\HunSpell\Source\, and TRichView Setup installs it automatically.