Re: [Fwd: Bug#283948: PLease integrate squirrelmail with dictionaries-common]
Agustin Martin <agustin.martin-a/[email protected]> Tue, 8 Feb 2005 22:29:22 +0100
| Newsgroups | gmane.linux.debian.devel.dictionary |
|---|---|
| Message-ID | <[email protected]> |
On Tue, Feb 08, 2005 at 11:12:48AM +0100, Thijs Kinkhorst wrote: > Hello people, > > I need some assistance with the bug below that has been posted to the BTS > under squirrelmail. I've looked into it but cannot seem to find out how to > detect the information needed. > > ---------------------------- Original Message ---------------------------- > Subject: Bug#283948: PLease integrate squirrelmail with > dictionaries-common From: "Alastair McKinstry" <[email protected]> > Date: Thu, December 2, 2004 15:16 > To: "Debian Bug Tracking System" <[email protected]> > -------------------------------------------------------------------------- > > Package: squirrelmail > Version: 2:1.4.3a-3 > Severity: wishlist > > > Squirrelmail should be integrated with dictionaries-common, to > detect which dictionaries are present for ispell, and which is set for the > default. > Default is currently stored in /etc/dictionaries-common/ispell-default (created by a script, not intended for edition) or in debconf, -------------- perl ------------------------ use Debconf::Client::ConfModule q(:all); my ($ret, $value) = get ("dictionaries-common/default-ispell"); if ($ret == 0 && $value ){ $ispell_default = $value; } -------------------------------------------- For the list of installed dicts, depends on what exactly you want and how is the interaction between ispell and squirrelmail. For instance, mutt does things through a wrapper to ispell (ispell-wrapper) provided by dictionaries-common, that will try to take care of encodings. Code is defined in /usr/share/dictionaries-common/mutt-ispell-init. For {x}emacs and jed things are more complex and done through special modes. In the general case, something like -------------- perl ------------------------ use Debian::DictionariesCommon q(:all); $dictionaries = loaddb ("ispell"); @list = keys %{$dictionaries}; -------------------------------------------- will give you a list of dicts including some declared encoding variants. If you only want hash names things are different. Cheers, -- Agustin