[prev in list] [next in list] [prev in thread] [next in thread] 

List:       aspell-user
Subject:    Re: [Aspell-user] Using aspell with Visual C++
From:       Jan Gehring <gehring () egotec ! com>
Date:       2003-08-06 15:08:13
Message-ID: 20030806170813.00007be9.gehring () egotec ! com
[Download RAW message or body]

On Wed, 6 Aug 2003 07:39:00 -0700
moseley@hank.org wrote:

> On Wed, Aug 06, 2003 at 04:27:25PM +0200, Jan Gehring wrote:
> > Hello ml,
> > 
> > i try to use aspell with Visual C++. But when i try to load a dictionary my \
> > application sais:  No word lists can be found for the language "en".
> > 
> > I installed the Full installer available at \
> > http://aspell.net/win32/files/Aspell-0-50-3-3-Setup.exe and the english \
> > dictionary availabe at: http://aspell.net/win32/files/Aspell-en-0.50-2-3.exe
> > 
> > 
> > 
> > This is my Testapplication:
> > I can compile and run it but it do not find the dictionary for "en".
> > 
> > 
> > #include "stdafx.h"
> > #include <pspell/pspell.h>
> 
> Isn't that the interface for the old version of Aspell/Pspell?
Well thats right, but i try to compile php with aspell/pspell support and for that \
reason i have to use the "old" functions.

But i get it to work now. 
I have to set the data and dict dir correctly.

pspell_config_replace(config, "data-dir", PATH_TO_ASPELL_DATA);
pspell_config_replace(config, "dict-dir", PATH_TO_ASPELL_DICT);

And after that i have to convert all files in "data" to unix format ...

> 
> Here's for 0.05.3:
> 
> http://savannah.gnu.org/download/aspell/manual/user/6_Writing.html
> 
> > 
> > int main(int argc, char* argv[])
> > {
> > 	printf("App started.\n");
> > 	PspellConfig *config;
> > 	PspellCanHaveError *ret;
> > 	config = new_pspell_config();
> > 	pspell_config_replace(config, "language-tag", "en");
> > 	ret = new_pspell_manager(config);
> > 	if(pspell_error_number(ret) != 0){
> > 		printf("%s", pspell_error_message(ret));
> > 		return 1;
> > 	}
> > 
> > 	return 0;
> > }
> > 
> 
> -- 
> Bill Moseley
> moseley@hank.org
> 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic