Table for ispell settings!


Subject: Table for ispell settings!
From: James Alan Brown (James@jabcomp.force9.co.uk)
Date: Mon Mar 19 2001 - 07:26:32 CST


Dear All,

Getting the AbiWord "ispell" to work for your own native language can be
done quite easy.

Read the details of your ispell hash file by typing the following in whatever
directory your ispell hash files are stored:-

In my example:-

“file britishxlg.hash” will show:
8-bit, 52 flags and 128 string characters.

Note: the old "american.hash is:-
8-bit, 26 flags and 100 string characters.

In order to get it to work in AbiWord you need to change some values in
your /spell/ispell.h using the table according to the number of flags and
string
characters that your hash file has.

Using the table below:-

        0x00 - 8-bit, no capitalization, 26 flags
        0x01 - 7-bit, no capitalization, 26 flags
        0x02 - 8-bit, capitalization, 26 flags
        0x03 - 7-bit, capitalization, 26 flags
        0x04 - 8-bit, no capitalization, 52 flags
        0x05 - 7-bit, no capitalization, 52 flags
        0x06 - 8-bit, capitalization, 52 flags
        0x07 - 7-bit, capitalization, 52 flags
        0x08 - 8-bit, no capitalization, 128 flags
        0x09 - 7-bit, no capitalization, 128 flags
        0x0A - 8-bit, capitalization, 128 flags
        0x0B - 7-bit, capitalization, 128 flags
        0x0C - 8-bit, no capitalization, 256 flags
        0x0D - 7-bit, no capitalization, 256 flags
        0x0E - 8-bit, capitalization, 256 flags
        0x0F - 7-bit, capitalization, 256 flags

Edit (ispell.h) line 207
                                                Number of String Characters

#ifndef MAXSTRINGCHARS
#define MAXSTRINGCHARS 100 (change to 128)
#endif /* MAXSTRINGCHARS */

Edit (ispell.h) line 541 and again at line 543

#ifdef NO8BIT
# define MAGIC8BIT 0x01
#else
# define MAGIC8BIT 0x00
#endif
#ifdef NO_CAPITALIZATION_SUPPORT
                                                          New value from table

# define MAGICCAPITALIZATION 0x00 (Change to 0x04)
#else
# define MAGICCAPITALIZATION 0x02 (Change to 0x06)
#endif

Don’t forget to put your new hash file into your AbiWord “/dictionary “
in order to use it!

Tested:
americanmed.hash, americanxlg.hash, britishmed.hash and
britishxlg. all run ok with new settings.

Regards,

James



This archive was generated by hypermail 2b25 : Mon Mar 19 2001 - 07:27:50 CST