* Thijs Kinkhorst <[EMAIL PROTECTED]> [2007-01-23 17:12]:

> Package: dictionaries-common
> Version: 0.70.11
> 
> Hi,
> 
> The squirrelmail package
> uses /var/cache/dictionaries-common/ispell-dicts-list.txt from
> dictionaries-common to read the available dictionaries for ispell for
> use in the SquirrelMail spell checker.
> 
> However, if I install ifrench-gut I get the following contents in that
> file:
> 
> american (American English)
> british (British English)
> francais GUTenberg (French GUTenberg)
> francais GUTenberg TeX8b (French GUTenberg TeX8b)
> nederlands (Dutch)
> 
> and the following files under /usr/lib/ispell/fr*:
> 
> lrwxrwxrwx  1 root root      16 Jan 23 15:03 francais-TeX8b.aff ->
> french-TeX8b.aff
> lrwxrwxrwx  1 root root      17 Jan 23 15:03 francais-TeX8b.hash ->
> french-TeX8b.hash
> lrwxrwxrwx  1 root root      10 Jan 23 15:03 francais.aff -> french.aff
> lrwxrwxrwx  1 root root      11 Jan 23 15:03 francais.hash ->
> french.hash
> -rw-r--r--  1 root root   29580 Aug 26  2004 french-TeX8b.aff
> -rw-r--r--  1 root root 2777116 Aug 26  2004 french-TeX8b.hash
> -rw-r--r--  1 root root   29577 Aug 26  2004 french.aff
> -rw-r--r--  1 root root 2777148 Aug 26  2004 french.hash
> lrwxrwxrwx  1 root root      10 Jan 23 15:03 frenchb.aff -> french.aff
> lrwxrwxrwx  1 root root      11 Jan 23 15:03 frenchb.hash -> french.hash
> 
> SquirrelSpell needs to get the right name to pass to "ispell -d".
> ispell-dicts-list.txt lists those names for american, british and
> nederlands, but I don't see how I can deduce the right parameter for the
> French dictionary.

The information you are looking for is in
/var/cache/dictionaries-common/ispell.db.  This file contains Perl code and
the hash name can be easily extract like this (try the following in bash): 

perl -e '$name = "francais Hydro-Quebec (French Hydro-Quebec)"; \
  do "/var/cache/dictionaries-common/ispell.db"; \
  print ($dictionaries{$name}->{"hash-name"}, "\n")'

At any rate, this is not a bug of the dictionaries-common package and I
would recommend to close this bug report.

-- 
Rafael


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to