Subject: Re: Table for ispell settings!
From: Vlad Harchev (email@example.com)
Date: Mon Mar 19 2001 - 13:14:26 CST
On Mon, 19 Mar 2001, James Alan Brown wrote:
That's nice research..
Sorry your proposal was not clear enough for me - do you suggest users to
recompile AW (after editing ispell.h to match settings of their hash file) for
it to be able to work with their hash file or you mean that you found a way to
change macro definitions in ispell.h that will make that module (and
thus AW) loading any .hash file out there without any recompilation after
that (and you suggesting AW developers to change macros in ispell.h as you
> 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
> 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
> # define MAGIC8BIT 0x00
> #ifdef NO_CAPITALIZATION_SUPPORT
> New value from table
> # define MAGICCAPITALIZATION 0x00 (Change to 0x04)
> # define MAGICCAPITALIZATION 0x02 (Change to 0x06)
> Don’t forget to put your new hash file into your AbiWord “/dictionary “
> in order to use it!
> americanmed.hash, americanxlg.hash, britishmed.hash and
> britishxlg. all run ok with new settings.
This archive was generated by hypermail 2b25 : Mon Mar 19 2001 - 13:59:04 CST