Dear List,

I have run into an interesting issue -- it looks like all numbers
containing more than one digit are marked as misspelled when using
aspell APIs (see attached C source).  However, 'aspell' the program does
not have this problem.  I tried looking at the code, but it's C++ and
might as well have been Greek to me :)  Could someone please explain the
discrepancy?

Thanks!

  - Dmitri.

Setup:

[EMAIL PROTECTED] ~]$ aspell --version
@(#) International Ispell Version 3.1.20 (but really Aspell 0.60.3)
[EMAIL PROTECTED] ~]$ uname -a
Linux localhost.localdomain 2.6.16-1.2122_FC5 #1 Sun May 21 15:01:01 EDT
2006 i686 i686 i386 GNU/Linux

#include <stdlib.h>
#include <stdio.h>
#include <aspell.h>

int
main (int argc, char **argv)
{
    AspellConfig * spell_config;
    AspellCanHaveError * possible_err;
    int i;

    spell_config = new_aspell_config();
    aspell_config_replace(spell_config, "lang", "en_US");
    possible_err = new_aspell_speller(spell_config);
    AspellSpeller * spell_checker = 0;
    if (aspell_error_number(possible_err) != 0)
        puts(aspell_error_message(possible_err));
    else
        spell_checker = to_aspell_speller(possible_err);


    for (i = 1; i < argc; ++i) {
        printf("word: %s; check: %d\n", argv[i],
            aspell_speller_check(spell_checker, argv[i], -1));
    }

    return 0;
}
_______________________________________________
Aspell-user mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/aspell-user

Reply via email to