Re: Using aspell programmatically
Kevin Atkinson <[email protected]> Tue, 4 May 2010 05:51:11 -0600 (MDT)
| Newsgroups | gmane.comp.gnu.aspell.user |
|---|---|
| Message-ID | <[email protected]> |
On Tue, 4 May 2010, John P. Hartmann wrote: > I wish to use aspell in one of my own applications. I can loop up words and > get spelling corrections through the C API, but word list management has me > stumped. > > I have (from a mainframe application) list of words that should be > considered valid in the context of specific files/applications/users. > > So I tried to generate a personal word list: > > j /home/john/aspell: aspell create personal < john.add > Sorry "create/merge personal" is currently unimplemented. You can easily create one manually. The personal dict. is just a wordlist with a header line. You probably want to use: personal_ws-1.1 en 0 as the header. > j /home/john/aspell: aspell create master < john.add > Error: The language "en_GB" is not known. This is probably because: the file > "/usr/local/lib/aspell-0.60/en_GB.dat" can not be opened for reading. You need to provide a dictionary name. Also the language needs to be specified as "en". en_GB is technical not a language but a dictionary name, but it works when specified as a language in most cases (excluding this one of course). > My configuration file: > > dict-dir /usr/lib/aspell-0.60 > lang en_GB > home-dir ~/aspell > personal pwl > > The last two lines are out of desperation more than knowledge. Get rid of them, they are unnecessary and the last one is nonsense.