Doubt Working with Hunspell

General TRichView support forum. Please post your questions here
Post Reply
alexandreq
Posts: 184
Joined: Wed Jan 18, 2012 6:22 pm

Doubt Working with Hunspell

Post by alexandreq »

Hello Sergey,

I am working with this spellchecker, but some behavior has attracts my attention.

First: It is very slow to load the dictionary and it is worthy to release the application.

I loaded 3 dictionaries and when I close my application, it takes more than 15 seconds to release it. Do you have any Ideia why?

Another thing:

I don't know if it is possible to do this with this component.

I have a fold with 3 dictionaries, English US, Spanish and Portuguese.

There is an option where you must inform the path where are the dictionaries, I noticed when I pass the path, all the dictionaries is loaded turning my application very slowly to be load.

I don't want to load all dictionary from my path, is there any option that allow me to choose the dictionary to be load?

Something like:

Dic.load = 'english'

thanks
Alex
alexandreq
Posts: 184
Joined: Wed Jan 18, 2012 6:22 pm

Post by alexandreq »

Sergey,

I wonder if it is the version of the DLL.

I notice that the last update of hunspell was 2011-02-16 and the DLL I have is 2006-05-27

What do you think?
alexandreq
Posts: 184
Joined: Wed Jan 18, 2012 6:22 pm

Post by alexandreq »

Sergey,

A friend of mine compiled the new version of DLL of hunspell, I tried to use it but the hunspell exemple of your didn't load it. Why?

Here you can download the lastet version

http://www.oaklea-software.com/misc_dow ... nspell.dll
http://www.oaklea-software.com/misc_dow ... nspell.lib
http://www.oaklea-software.com/misc_dow ... nspell.exp
Sergey Tkachenko
Site Admin
Posts: 17559
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

I am sorry for the delay, I'll answer tomorrow.
alexandreq
Posts: 184
Joined: Wed Jan 18, 2012 6:22 pm

Post by alexandreq »

ok
Sergey Tkachenko
Site Admin
Posts: 17559
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

1) I cannot reproduce a slow loading. In my tests, applications are loaded without any delays.
2) The demo project load all available dictionaries in the folder, because it calls RVHunSpell1.LoadAllDictionaries.
To load one dictionary, call instead:

Code: Select all

  with RVHunSpell1.Dictionaries.Add do begin
    Load('en_US');
    if not Active then
      Free;
  end;
3) Thank you for compiling a new hunspell. It should be renamed to 'hunspelldll.dll', and some changes must be made in the source code to support it. I'll upload a changed version soon.
Post Reply