[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [pspell-user] aspell vs. ispell
From: |
Kevin Atkinson |
Subject: |
Re: [pspell-user] aspell vs. ispell |
Date: |
Tue, 5 Jun 2001 09:56:49 -0400 (EDT) |
On Tue, 5 Jun 2001, Jeff Mace wrote:
> I found the problem with it saying everything is misspelled. It was
> something I was doing. Funny how "\nthe" doesn't equal "the" ;-).
>
> I have tried to set config to use ispell. After the call the error number
> is 0 so that tells me that it didn't have a problem with what I want.
> Here is a bit of the code I am using.
>
> fprintf(stderr, "start config\n");
> config = new_pspell_config();
> fprintf(stderr, "made config\n");
> pspell_config_replace(config, "language-tag", "en");
> pspell_config_replace(config, "add-word-list-path",
> "/usr/local2/share/pspell/");
> pspell_config_replace(config, "module", "ispell");
Unfortunately Pspell does not look at the module setting when choosing a
appropriate dictionary to use. You want to do something like:
pspell_config_replace(config, "rem-all-module-search-order", "");
pspell_config_replace(config, "add-module-search-order", "ispell");
But now that you bring it up I will consider having Pspell use the
"module" setting.
> pspell_config_replace(config, "spelling", "english");
You misunderstand how to spelling setting is used. From the manual: the
requested spelling for languages with more than one spelling such as
English. Known values are ``american'', ``british'', and ``canadian''.
This information is normally inferred from the language-tag option. For
example the language tag ``en_GB'' will set spelling to ``british''.
Although this is not a problem it will just be ignored.
>
> ret = new_pspell_manager(config);
> checker = 0;
> if (pspell_error_number(ret) != 0) {
> fprintf(stderr, "%s\n",
> pspell_error_message(ret));
> fprintf(stderr, "error message area\n");
> } else {
> checker = to_pspell_manager(ret);
> }
>
> That is pretty much straight out of the manual. Do you see anything wrong
> there? Thanks for your help.
--
Kevin Atkinson
kevina at users sourceforge net
http://www.ibiblio.org/kevina/