[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Aspell-user] Selecting dictionary with the C interface
From: |
Bill Moseley |
Subject: |
Re: [Aspell-user] Selecting dictionary with the C interface |
Date: |
Mon, 26 Aug 2002 23:07:15 -0700 |
At 08:37 PM 08/26/02 -0400, Kevin Atkinson wrote:
>> Is there (could there be) a way to directly select the dictionary file from
>> within the C interface?
>
>You should be able to now by setting the "master" option.
Ah, yes that now works. That makes things easier. Thanks.
>PWLI are no longer used. Please read the manual for Aspell 0.50.
I'm not clear. They still work, though -- at least I'm using one and it's
locating the dictionary. Still documented at section 5.7 AWLI files.
Or is there something else that I missed?
In the Text::Aspell perl module I added a $speller->list_dictionaries
method (since you have example/list-dicts.c). I'm just returning an array
of dictionary names formatted as:
[name]:[code]:[jargon]:[size]:[module]
for example:
en:en::60:default
en_CA:en_CA::60:default
en_CA-w-accents:en_CA:w-accents:60:default
en_GB:en_GB::60:default
en_GB-w-accents:en_GB:w-accents:60:default
en_US:en_US::60:default
en_US-w-accents:en_US:w-accents:60:default
I could of returned an array of hash references, but people can always use
split().
I guess I don't understand the difference between entry->name and
entry->code. They are the same for each of those.
Thanks,
--
Bill Moseley
mailto:address@hidden