Agustin Martin wrote: > Wordlists generally provide a single value, but ispell dictionaries can > provide more than one. For instance ispanish provides > "castellano (Spanish Tex mode)", "castellano-utf8 (Spanish utf-8)" and > "castellano8 (Spanish 8 bit)". All them use the same hash, but with > different options, so all them go in the same package.
Now I get it. I always have a range of multilingual wordlists installed, but no spellchecker dictionaries (and the English ones only supply one candidate each anyway). I should have checked wnorwegian! >> The setting for "default-wordlist" is missing, but packages >> providing a wordlist are installed: wamerican-huge wbritish-huge > > I like this one! I'd also like to reuse the same template for ispell > dictionaries and wordlists using something like > > The setting for "${question}" is missing, but packages > providing candidates are installed: "${class_packages}" Moving back in the direction of abstraction, but it should be clear enough. >> It would be better if it just told them the name of that package, but >> if that's impossible, maybe: >> >> To fix this error, reinstall (or install) the package that provides >> the dictionary "${value}". > > Agreed. With some minor changes in dictionaries-common code, package name > should easily become available. Using it, sentence may look like > > To fix this error, reinstall (or install) the package "${package}" that > provides the invalid value. > > or simply > > To fix this error, reinstall (or install) the package "${package}". The previous paragraph still mentions "the package providing...", so the second version should be clear enough. As long as we're allowed to use ${package}! Revised patch attached (still with those old FHS-related templates). Oh, and I've just noticed I somehow had some leftover singlequotes. -- JBR with qualifications in linguistics, experience as a Debian sysadmin, and probably no clue about this particular package
diff -ru dictionaries-common-1.23.8.pristine/debian/control dictionaries-common-1.23.8/debian/control --- dictionaries-common-1.23.8.pristine/debian/control 2014-06-20 10:05:49.000000000 +0100 +++ dictionaries-common-1.23.8/debian/control 2014-07-06 11:21:40.521652080 +0100 @@ -92,13 +92,14 @@ Replaces: openoffice.org-updatedicts Suggests: ispell | aspell | hunspell, wordlist -Description: Common utilities for spelling dictionary tools - These are utilities shared by all ispell, myspell and wordlist - dictionaries, including support for some tools that use them - (like emacsen, jed and mutt) and some patched spell-checking - lisp files for better system integration. - More info about naming conventions and availability of those - dictionaries in the README.Debian file. +Description: spelling dictionaries - common utilities + This package provides utilities shared between all wordlists and spelling + dictionaries for Ispell, Aspell, or MySpell/Hunspell. It also includes + support infrastructure for software using them (such as JED and Mutt), + and some patched spell-checking Lisp files for better Emacs integration. + . + More information about the availability of these dictionaries and their + naming conventions is available in the README.Debian file. Package: dictionaries-common-dev Priority: extra @@ -107,9 +108,9 @@ Depends: ${misc:Depends}, debhelper (>= 4.1.13), dictionaries-common (>= 1.22.3) -Description: Developer tools and Policy for spelling dictionary tools - Full text of the Debian Spelling Dictionaries and Tools Policy and - some debhelper like helpers. +Description: spelling dictionaries - developer files + This package provides the full text of the Debian Spelling Dictionaries + and Tools Policy, and some debhelper-like helpers. . - Only of interest for developers maintaining wordlists or dictionaries - for ispell, aspell or myspell/hunspell. + It is only of interest for developers maintaining wordlists or + dictionaries for Ispell, Aspell, or MySpell/Hunspell. diff -ru dictionaries-common-1.23.8.pristine/debian/dictionaries-common.templates dictionaries-common-1.23.8/debian/dictionaries-common.templates --- dictionaries-common-1.23.8.pristine/debian/dictionaries-common.templates 2014-06-20 12:28:35.000000000 +0100 +++ dictionaries-common-1.23.8/debian/dictionaries-common.templates 2014-07-10 21:03:46.552363046 +0100 @@ -1,41 +1,40 @@ Template: dictionaries-common/debconf_database_corruption Type: note Description: Possible debconf database corruption - Empty value for debconf question "${question}" but elements installed - for class "${class}": + The setting for "${question}" is missing, but packages providing + candidates are installed: "${class_packages}" . - Choices_dictcom: "${installed_elements}" - Choices_debconf: "${choices_value}" - Owners/error: "${shared_owners}" - . - This can be related to debconf database corruption. - See "/usr/share/doc/dictionaries-common/README.problems", section - "Debconf database corruption". + This may be due to corruption in the debconf database. See + "/usr/share/doc/dictionaries-common/README.problems" on "Debconf + database corruption". . In this case, running "/usr/share/debconf/fix_db.pl" can help to put - debconf database in a consistent state. + the debconf database in a consistent state. . - Question may be asked after this message to try leaving the - dictionaries system in a (provisionally) working state. + Some questions are likely to be asked after this message in order to + leave the dictionaries system in a (provisionally) working state. Template: dictionaries-common/invalid_debconf_value -Type: note -_Description: An invalid debconf value [${value}] has been found - It does not correspond to any installed package in the system. +Type: error +# TRANSLATORS: DO NOT TRANSLATE variable names such as ${value} +_Description: Invalid configuration value for default dictionary + An invalid value has been found for a configuration setting for + dictionaries-common. "${value}" does not correspond to any installed package + on the system. . - That is usually caused by problems at some time during packages - installation, where the package providing [${value}] was selected for + This is usually caused by previous problems during package + installation, where the package providing "${value}" was selected for installation but finally not installed because of errors in other packages. . - To fix this error, reinstall (or install) the package that provides - the missing value. Then, if you don't want this package on - your system, remove it, which will also remove its debconf entries. - Menu to be shown after this message will try to leave the system in a - working state until then. + To fix this error, reinstall (or install) the package "${package}". + Then, if you don't want that package on this system, remove it, which + will also delete this configuration setting. A menu of choices will be + shown after this message in order to leave the system in a working + state until you fix the problem. . This error message can also appear during ispell dictionary or wordlist - renaming (e.g., wenglish-> wamerican). In this case it is harmless and + renaming (e.g.: wenglish -> wamerican). In this case it is harmless and everything will be fixed after you select your default in the menu(s) shown after this message. @@ -75,57 +74,59 @@ Type: boolean Default: true _Description: Move non-FHS stuff under /usr/dict to /usr/dict-pre-FHS? - Some stuff under /usr/dict that is not a symlink to /usr/share/dict has - been detected in your system. /usr/share/dict is now the FHS location for - those files. Everything under /usr/dict can be moved to /usr/dict-pre-FHS - and a symlink /usr/dict -> /usr/share/dict set. - . - Although no current Debian package uses that obsolete /usr/dict location, - not having that symlink may break some of your old applications that used - it, so you are encouraged to let the files be moved and the link be set up. + Some files (instead of symbolic links) have been found in "/usr/dict", + a location deprecated by the Filesystem Hierarchy Standard (FHS) in + favor of "/usr/share/dict". + . + If you accept this option, everything under "/usr/dict" will be moved + to "/usr/dict-pre-FHS", and a symbolic link named "/usr/dict" will be + created pointing to "/usr/share/dict". + . + Although no current package uses the obsolete /usr/dict location, not + having the symlink may break legacy software, so you are encouraged to + allow this change. Template: dictionaries-common/old_wordlist_link Type: boolean Default: true _Description: Remove obsolete /etc/dictionary link? - There is a /etc/dictionary link in your system. This is obsolete and no - longer means anything. You are strongly suggested to allow removal of that - link. + This system has an obsolete symlink "/etc/dictionary". This is no + longer meaningful, and should be removed. . - You will be called to explicitly select the default wordlist during + You will be asked to explicitly select the default wordlist during installation of wordlist packages. You can change your selection at any - time by running 'select-default-wordlist'. + time by running "select-default-wordlist". Template: dictionaries-common/ispell-autobuildhash-message Type: note +#flag:translate!:3 _Description: Problems rebuilding an ${xxpell} hash file (${hashfile}) - ** Error: ${errormsg} + The following error happened: + . + ${errormsg} . - This error was caused by package providing '${hashfile}', although it - can be made evident during other package postinst. Please complain - to the maintainer of package providing '${hashfile}'. + This error was caused by a package providing "${hashfile}", although it + may be triggered by another package's installation. Please submit a bug + for the package providing "${hashfile}". . Until this problem is fixed you will not be able to use ${xxpell} - with '${hashfile}'. + with "${hashfile}". Template: dictionaries-common/remove_old_usr_dict_link Type: boolean Default: true _Description: Remove obsolete /usr/dict symlink? - A non FHS /usr/dict symlink has been found. Since it is obsolete, - no Debian package currently uses that location and none of your programs - should rely on it, so you are strongly suggested to accept its removal. - . - If for whatever reason you need that symlink, recreate it again, but you - are suggested to better fix your old programs to use the current - /usr/share/dict location. + This system has an obsolete symlink "/usr/dict", which is not compliant + with the Filesystem Hierarchy Standard. No packages currently use that + location, and none of your programs should rely on it, so it should be + removed. Template: dictionaries-common/selecting_ispell_wordlist_default Type: note -_Description: Default values for ispell dictionary/wordlist are not set here - Running 'dpkg-reconfigure dictionaries-common' will not set the default - values for ispell dictionary/wordlist. Running 'dpkg-reconfigure ispell' +_Description: Default values for ispell dictionary/wordlist not set + Running "dpkg-reconfigure dictionaries-common" will not set the default + values for ispell dictionary/wordlist. Running "dpkg-reconfigure ispell" will not set the default ispell dictionary. . - Use instead 'select-default-ispell' or 'select-default-wordlist' scripts. - + You should instead use the "select-default-ispell" or + "select-default-wordlist" commands for that purpose.
Source: dictionaries-common Section: text Priority: optional Maintainer: Agustin Martin Domingo <agmar...@debian.org> Uploaders: Rene Engelhard <r...@debian.org> Build-Depends-Indep: docbook-xml, docbook-dsssl, jade, w3m, slice, autoconf, recode Build-Depends: debhelper (>= 7), quilt (>= 0.40) Homepage: http://dict-common.alioth.debian.org Vcs-Browser: http://anonscm.debian.org/gitweb/?p=dict-common/dictionaries-common.git;a=summary Vcs-Git: git://anonscm.debian.org/dict-common/dictionaries-common.git Standards-Version: 3.9.5 Package: dictionaries-common Architecture: all Depends: ${perl:Depends}, ${misc:Depends}, debconf (>= 1.5.5) | debconf-2.0, libtext-iconv-perl, emacsen-common (>= 2.0.8) Breaks: hunspell-ar (<= 0.0.0+20080110-1.1), hunspell-da (<= 1:3.1.0), hunspell-de-at (<= 20100727-1), hunspell-de-ch (<= 20100727-1), hunspell-de-de (<= 20100727-1), hunspell-en-us (<= 20070829-4ubuntu2), hunspell-eu-es (<= 0.4.20081029-4), hunspell-gl-es (<= 2.2a-8), hunspell-kk (<= 1.1-1), hunspell-ko (<= 0.5.3-1), hunspell-se (<= 1.0~beta6.20081222-1.1), hunspell-uz (<= 0.6-3.1), hyphen-en-us (<< 2.8.3-1), myspell-bg (<= 3.0-12), myspell-ca (<= 0.6-10), myspell-cs (<= 20040229-5), myspell-cs-cz (<= 20040229-5), myspell-da (<= 1.6.25-1), myspell-de-at (<= 20100727-1), myspell-de-ch (<= 20100727-1), myspell-de-de (<= 20100727-1), myspell-de-de-oldspell (<= 1:2-27), myspell-el-gr (<= 0.8-1), myspell-en-au (<= 2.1-5), myspell-eo (<= 2.1.2000.02.25-42), myspell-es (<= 1.11-1), myspell-et (<= 1:20030606-12.1), myspell-eu-es (<= 0.4.20081029-4), myspell-fa (<= 0.20070816-2), myspell-fi (<= 0.7-17.3), myspell-fo (<= 0.2.44-2), myspell-fr (<= 1.4-25), myspell-fr-gut (<= 1:1.0-28), myspell-ga (<= 2.0-20), myspell-gd (<= 0.50-7), myspell-gl-es (<= 2.2a-8), myspell-gv (<= 0.50-9), myspell-he (<= 1.1-1), myspell-hr (<= 20060617-2), myspell-hu (<= 0.99.4-2), myspell-hy (<= 0.20.0-1), myspell-ku (<= 0.20.0-1.1), myspell-lv (<= 0.9.3-2), myspell-nb (<= 2.0.10-3.2), myspell-nl (<= 1:2.0-1), myspell-nn (<= 2.0.10-3.2), myspell-nr (<< 20070206-4ubuntu1), myspell-ns (<< 20070206-4ubuntu1), myspell-pl (<= 20100612-1), myspell-pt-br (<= 20101030-1), myspell-pt-pt (<= 20091013-2), myspell-ru (<= 0.99g5-8.1), myspell-sk (<= 0.5.5a-2.1fakesync1), myspell-sl (<< 1.0-3ubuntu1), myspell-sv-se (<= 1.3.8-6-2.2), myspell-ss (<< 20070206-4ubuntu1), myspell-uk (<= 1.6.0-1), myspell-tn (<< 20070206-4ubuntu1), myspell-ts (<< 20070207-4ubuntu1), myspell-ve (<< 20070206-3ubuntu1), myspell-xh (<< 20070206-4ubuntu1), myspell-zu (<< 20070207-5ubuntu1), mythes-it (<= 2.0.7.gh.deb1-3), openoffice.org-thesaurus-it (<< 2.0.7.gh.deb1-1.1ubuntu3) Provides: openoffice.org-updatedicts Replaces: openoffice.org-updatedicts Suggests: ispell | aspell | hunspell, wordlist Description: spelling dictionaries - common utilities This package provides utilities shared between all wordlists and spelling dictionaries for Ispell, Aspell, or MySpell/Hunspell. It also includes support infrastructure for software using them (such as JED and Mutt), and some patched spell-checking Lisp files for better Emacs integration. . More information about the availability of these dictionaries and their naming conventions is available in the README.Debian file. Package: dictionaries-common-dev Priority: extra Section: devel Architecture: all Depends: ${misc:Depends}, debhelper (>= 4.1.13), dictionaries-common (>= 1.22.3) Description: spelling dictionaries - developer files This package provides the full text of the Debian Spelling Dictionaries and Tools Policy, and some debhelper-like helpers. . It is only of interest for developers maintaining wordlists or dictionaries for Ispell, Aspell, or MySpell/Hunspell.
Template: dictionaries-common/debconf_database_corruption Type: note Description: Possible debconf database corruption The setting for "${question}" is missing, but packages providing candidates are installed: "${class_packages}" . This may be due to corruption in the debconf database. See "/usr/share/doc/dictionaries-common/README.problems" on "Debconf database corruption". . In this case, running "/usr/share/debconf/fix_db.pl" can help to put the debconf database in a consistent state. . Some questions are likely to be asked after this message in order to leave the dictionaries system in a (provisionally) working state. Template: dictionaries-common/invalid_debconf_value Type: error # TRANSLATORS: DO NOT TRANSLATE variable names such as ${value} _Description: Invalid configuration value for default dictionary An invalid value has been found for a configuration setting for dictionaries-common. "${value}" does not correspond to any installed package on the system. . This is usually caused by previous problems during package installation, where the package providing "${value}" was selected for installation but finally not installed because of errors in other packages. . To fix this error, reinstall (or install) the package "${package}". Then, if you don't want that package on this system, remove it, which will also delete this configuration setting. A menu of choices will be shown after this message in order to leave the system in a working state until you fix the problem. . This error message can also appear during ispell dictionary or wordlist renaming (e.g.: wenglish -> wamerican). In this case it is harmless and everything will be fixed after you select your default in the menu(s) shown after this message. Template: dictionaries-common/default-ispell Type: select Choices-C: ${choices}, Manual symlink setting __Choices: ${echoices}, Manual symlink setting _Description: System default ispell dictionary: Please indicate which dictionary ispell should use as system-wide default when no other spell-checking dictionary is specified. . This sets up the /usr/lib/ispell/default.aff and /usr/lib/ispell/default.hash symlinks, as well as ispell's global ispell-wrapper and Emacs defaults. . Use "Manual symlink setting" if you want to handle the symlinks yourself. In this case ispell will have no global ispell-wrapper or Emacs defaults. . The default ispell dictionary can be changed at any time by running "select-default-ispell". Template: dictionaries-common/default-wordlist Type: select Choices-C: ${choices}, Manual symlink setting __Choices: ${echoices}, Manual symlink setting _Description: System default wordlist: Please indicate which wordlist the "/usr/share/dict/words" symlink should point to. This will provide a simple list of dictionary words for basic spell-checking and word searches. Use "Manual symlink setting" if you want to handle this symlink yourself. . The default wordlist can be changed at any time by running "select-default-wordlist". Template: dictionaries-common/move_old_usr_dict Type: boolean Default: true _Description: Move non-FHS stuff under /usr/dict to /usr/dict-pre-FHS? Some files (instead of symbolic links) have been found in "/usr/dict", a location deprecated by the Filesystem Hierarchy Standard (FHS) in favor of "/usr/share/dict". . If you accept this option, everything under "/usr/dict" will be moved to "/usr/dict-pre-FHS", and a symbolic link named "/usr/dict" will be created pointing to "/usr/share/dict". . Although no current package uses the obsolete /usr/dict location, not having the symlink may break legacy software, so you are encouraged to allow this change. Template: dictionaries-common/old_wordlist_link Type: boolean Default: true _Description: Remove obsolete /etc/dictionary link? This system has an obsolete symlink "/etc/dictionary". This is no longer meaningful, and should be removed. . You will be asked to explicitly select the default wordlist during installation of wordlist packages. You can change your selection at any time by running "select-default-wordlist". Template: dictionaries-common/ispell-autobuildhash-message Type: note #flag:translate!:3 _Description: Problems rebuilding an ${xxpell} hash file (${hashfile}) The following error happened: . ${errormsg} . This error was caused by a package providing "${hashfile}", although it may be triggered by another package's installation. Please submit a bug for the package providing "${hashfile}". . Until this problem is fixed you will not be able to use ${xxpell} with "${hashfile}". Template: dictionaries-common/remove_old_usr_dict_link Type: boolean Default: true _Description: Remove obsolete /usr/dict symlink? This system has an obsolete symlink "/usr/dict", which is not compliant with the Filesystem Hierarchy Standard. No packages currently use that location, and none of your programs should rely on it, so it should be removed. Template: dictionaries-common/selecting_ispell_wordlist_default Type: note _Description: Default values for ispell dictionary/wordlist not set Running "dpkg-reconfigure dictionaries-common" will not set the default values for ispell dictionary/wordlist. Running "dpkg-reconfigure ispell" will not set the default ispell dictionary. . You should instead use the "select-default-ispell" or "select-default-wordlist" commands for that purpose.