Debian Bug report logs - #745613
dictionaries-common: emacs's ispell-change-dictionary displays unavailable (and invalid?) dictionaries

version graph

Package: dictionaries-common; Maintainer for dictionaries-common is Agustin Martin Domingo <agmartin@debian.org>; Source for dictionaries-common is src:dictionaries-common (PTS, buildd, popcon).

Reported by: "Neal H. Walfield" <neal@walfield.org>

Date: Wed, 23 Apr 2014 10:12:01 UTC

Severity: normal

Found in version dictionaries-common/1.12.11

Fixed in version dictionaries-common/1.23.3

Done: Agustin Martin Domingo <agmartin@debian.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Agustin Martin Domingo <agmartin@debian.org>:
Bug#745613; Package dictionaries-common. (Wed, 23 Apr 2014 10:12:06 GMT) (full text, mbox, link).


Acknowledgement sent to "Neal H. Walfield" <neal@walfield.org>:
New Bug report received and forwarded. Copy sent to Agustin Martin Domingo <agmartin@debian.org>. (Wed, 23 Apr 2014 10:12:06 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: "Neal H. Walfield" <neal@walfield.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: dictionaries-common: emacs's ispell-change-dictionary displays unavailable (and invalid?) dictionaries
Date: Wed, 23 Apr 2014 11:52:23 +0200
Package: dictionaries-common
Version: 1.12.11
Severity: normal

Dear Maintainer,

On Debian Squeeze, I would run ispell-change-dictionary in emacs to 
toggle between my default dictionary (american) and german-new8.  
Despite installing many dictionary packages, I couldn't get 
'german-new8' back in the menu on Wheezy.  What is present, however, is 
german and german8.  Unfortunately, when I select, say, german, I get 
'/usr/lib/aspell/german' can not be opened for reading.  Looking on 
packages.debian.org:

  https://packages.debian.org/search?suite=wheezy&arch=any&mode=filename&searchon=contents&keywords=%2Fusr%2Flib%2Faspell%2Fgerman

I get:

  Sorry, your search gave no results

I eventually figured out that I should be using de-neu after looking at 
the 91 options available when using tab completion on 
ispell-change-dictionary.  Given that I only have aspell-de and 
aspell-en:

$ dpkg -l \*spell\* | grep '^ii'
ii  aspell                                0.60.7~20110707-1                  amd64        GNU Aspell spell-checker
ii  aspell-de                             20120607-1                         all          German dictionary for aspell
ii  aspell-en                             7.1-0-1                            all          English dictionary for GNU Aspell
ii  hunspell-en-us                        20070829-6                         all          English_american dictionary for hunspell
ii  ispell                                3.3.02-6                           amd64        International Ispell (an interactive spelling corrector)
ii  libaspell15                           0.60.7~20110707-1                  amd64        GNU Aspell spell-checker runtime library
ii  libhunspell-1.3-0:amd64               1.3.2-4                            amd64        spell checker and morphological analyzer (shared library)

it seems to me that not only should dictionaries not included in Debian 
be pruned, but not-installed dictionaries should be pruned as well.

The list of dictionaries appears to be generated by 
ispell-find-aspell-dictionaries (from ispell.el).  This function merges 
entries from the output of 'aspell dicts' with 
ispell-dictionary-base-alist, which is a static list.  Likely, the 
intersection should be taken instead of the union.  However, my elisp-fu 
is not good enough to come up with a patch.

Thanks,

Neal

-- System Information:
Debian Release: 7.4
  APT prefers stable
  APT policy: (990, 'stable'), (500, 'stable-updates'), (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 3.12-0.bpo.1-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages dictionaries-common depends on:
ii  debconf [debconf-2.0]  1.5.49
ii  libtext-iconv-perl     1.7-5

dictionaries-common recommends no packages.

Versions of packages dictionaries-common suggests:
ii  emacsen-common  2.0.7
ii  ispell          3.3.02-6
pn  jed-extra       <none>

-- debconf information:
* dictionaries-common/default-wordlist: american (American English)
  dictionaries-common/invalid_debconf_value:
  dictionaries-common/ispell-autobuildhash-message:
  dictionaries-common/selecting_ispell_wordlist_default:
  dictionaries-common/default-ispell: american (American English)
  dictionaries-common/old_wordlist_link: true
  dictionaries-common/move_old_usr_dict: true
  dictionaries-common/remove_old_usr_dict_link: false



Information forwarded to debian-bugs-dist@lists.debian.org, Agustin Martin Domingo <agmartin@debian.org>:
Bug#745613; Package dictionaries-common. (Tue, 20 May 2014 17:09:05 GMT) (full text, mbox, link).


Acknowledgement sent to Agustin Martin <agmartin@debian.org>:
Extra info received and forwarded to list. Copy sent to Agustin Martin Domingo <agmartin@debian.org>. (Tue, 20 May 2014 17:09:05 GMT) (full text, mbox, link).


Message #10 received at 745613@bugs.debian.org (full text, mbox, reply):

From: Agustin Martin <agmartin@debian.org>
To: "Neal H. Walfield" <neal@walfield.org>, 745613@bugs.debian.org
Subject: Re: Bug#745613: dictionaries-common: emacs's ispell-change-dictionary displays unavailable (and invalid?) dictionaries
Date: Tue, 20 May 2014 19:05:31 +0200
clone 745613 -1
reassign -1 igerman98
retitle  -1 igerman98: Please declare german-new8 and friends for aspell and myspell/hunspell
found    -1 igerman98/20131206-4
severity -1 wishlist
thanks

On Wed, Apr 23, 2014 at 11:52:23AM +0200, Neal H. Walfield wrote:
> Package: dictionaries-common
> Version: 1.12.11
> Severity: normal
> 
> Dear Maintainer,

Hi, thanks for the info,
 
> On Debian Squeeze, I would run ispell-change-dictionary in emacs to 
> toggle between my default dictionary (american) and german-new8.  

german-new8 name is currently provided only by ingerman package as a
debian-only name. I think aspell-de and hunspell-* should also provide it
for consistency between spellcheckers in Debian.

> Despite installing many dictionary packages, I couldn't get 
> 'german-new8' back in the menu on Wheezy.  What is present, however, is 
> german and german8.  Unfortunately, when I select, say, german, I get 
> '/usr/lib/aspell/german' can not be opened for reading.
[...]
> it seems to me that not only should dictionaries not included in Debian 
> be pruned, but not-installed dictionaries should be pruned as well.
> 
> The list of dictionaries appears to be generated by 
> ispell-find-aspell-dictionaries (from ispell.el).  This function merges 
> entries from the output of 'aspell dicts' with 
> ispell-dictionary-base-alist, which is a static list.  Likely, the 
> intersection should be taken instead of the union.  However, my elisp-fu 
> is not good enough to come up with a patch.

Original behavior comes from upstream FSF Emacs and I think it was done for a
good reason, probably because there was no 100% safe test for non
availability of some dicts. I do not know the details, that happened before
I started contributing to Emacs.

I later wrote good part of support for hunspell auto-detection, and there
are some things that should help here, like mapping standard dict names in
`ispell-dictionary-base-alist' to found dicts with known to match locales.
This is already used for hunspell and I am extending it for aspell, so most
of the problem gets fixed. A fixed package will be uploaded very soon, and
fix also committed to upstream Emacs FSF VCS repo.

Note that this will not work for XEmacs (lack of [:alpha:]), so I think it
is still desirable to explicitly register expected german-new8 name for
aspell and hunspell/myspell dicts. For that reason I am cloning this bug
report and reassigning the clon to igerman98 (Hi, Roland).

Roland, I am experimenting with a way to make this simpler from
dictionaries-common, so I suggest waiting a bit, at least until igerman98
(20131206-4) reaches testing. While dictionaries-common fixing this bug
report will also include experimental support for this, I'd prefer to test
a bit more, will followup to the cloned bug.

Regards,

-- 
Agustin



Bug 745613 cloned as bug 748773 Request was from Agustin Martin <agmartin@debian.org> to control@bugs.debian.org. (Tue, 20 May 2014 17:09:08 GMT) (full text, mbox, link).


Reply sent to Agustin Martin Domingo <agmartin@debian.org>:
You have taken responsibility. (Tue, 20 May 2014 17:36:15 GMT) (full text, mbox, link).


Notification sent to "Neal H. Walfield" <neal@walfield.org>:
Bug acknowledged by developer. (Tue, 20 May 2014 17:36:15 GMT) (full text, mbox, link).


Message #17 received at 745613-close@bugs.debian.org (full text, mbox, reply):

From: Agustin Martin Domingo <agmartin@debian.org>
To: 745613-close@bugs.debian.org
Subject: Bug#745613: fixed in dictionaries-common 1.23.3
Date: Tue, 20 May 2014 17:33:38 +0000
Source: dictionaries-common
Source-Version: 1.23.3

We believe that the bug you reported is fixed in the latest version of
dictionaries-common, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 745613@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Agustin Martin Domingo <agmartin@debian.org> (supplier of updated dictionaries-common package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Mon, 19 May 2014 13:00:59 +0200
Source: dictionaries-common
Binary: dictionaries-common dictionaries-common-dev
Architecture: source all
Version: 1.23.3
Distribution: unstable
Urgency: low
Maintainer: Agustin Martin Domingo <agmartin@debian.org>
Changed-By: Agustin Martin Domingo <agmartin@debian.org>
Description: 
 dictionaries-common - Common utilities for spelling dictionary tools
 dictionaries-common-dev - Developer tools and Policy for spelling dictionary tools
Closes: 739412 745613 748331
Changes: 
 dictionaries-common (1.23.3) unstable; urgency=low
 .
   * postinst-compatfile.in: Make sure /var/lib/$class is available if
     needed (Closes: #748331).
   * 9991_ispell.el_default-dicts-matching-found-locale.patch: New patch
     to try matching aspell dicts found by locale to not yet associated
     ispell.el standard dict names (Closes: #745613).
   * 9992_flyspell.el_search-word-improvements.patch: Improve
     flyspell-word-search-* search quality by looking for full word match.
     Limit default search distance for duplicated words to 40000.
     (Closes: #739412).
   * Devel/DictionariesCommon.pm.in::dico_process_{aspell_simple,autocompat}:
     Return early unless valid info is found.
   * Debian/DictionariesCommon.pm.in: Experimental support for
     "emacsen-names" in info files.
   * installdeb.in: Do nothing for autocompat unless ispell or aspell.
Checksums-Sha1: 
 aca51cc761c5fa3b00faa4a0dd63cffd8de585a5 1249 dictionaries-common_1.23.3.dsc
 fb817a2858d96bfc05abdffe7da48d247bd4eda4 336045 dictionaries-common_1.23.3.tar.gz
 6b3efd0e5295dc8c31cfc7df25846b14ff01536d 303680 dictionaries-common_1.23.3_all.deb
 c33dc63fd06cf7079fd87719320d3b6a46133200 138544 dictionaries-common-dev_1.23.3_all.deb
Checksums-Sha256: 
 71d28c9b678cdebf8bd072f198d0fe195104230420299984b9c53ac7ee84a877 1249 dictionaries-common_1.23.3.dsc
 5e7247e39e02d34c397ed50075609df5cee66042be55adb3b0b85fe00c835579 336045 dictionaries-common_1.23.3.tar.gz
 e076d749829ba668760f2768c8135b515d0f3c3cbd8de4bf39f96b8751b76f06 303680 dictionaries-common_1.23.3_all.deb
 ed8e2bfc3d9aeb30612e73ff8d439434862b3e371b66081563ac540da2bdf1b3 138544 dictionaries-common-dev_1.23.3_all.deb
Files: 
 54e1a492dced5da389c03c1ef153f385 303680 text optional dictionaries-common_1.23.3_all.deb
 b11b223eb40ea7927ad2712a09785a00 138544 devel extra dictionaries-common-dev_1.23.3_all.deb
 75cb7e446871da7219b85c7dc6cbd96e 1249 text optional dictionaries-common_1.23.3.dsc
 923ae6f828d62a83f04c9444d212ce61 336045 text optional dictionaries-common_1.23.3.tar.gz

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iEYEARECAAYFAlN7gOsACgkQTShHqj72DpxF6wCfVynRyjDhwhfX6quI+UdgcFAI
IqIAoIM/XtI840xcu7Zhe4q7f+wkFj+8
=xeOg
-----END PGP SIGNATURE-----




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Wed, 18 Jun 2014 07:27:19 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Tue Jan 23 12:50:10 2024; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.