Package: libenchant1c2a
Version: 1.4.2-3.3
Severity: normal

Man page for enchant does not mention option -d (nor -h).

$ enchant -h
Usage: enchant [options] -a|-d dict|-l|-L|-m|-v[v]|<file>
       -a lists alternatives.
       -d dict uses dictionary <dict>.
       -l lists misspellings.
       -m is ignored.
       -L displays line numbers.
       -v displays program version.

Furhermore enchant -d fi and -d fi_FI do not produce the same result.
Looks like -d fi works as expected, -d fi_FI makes strange results.

In the following test material first two lines are Finnish, rest is
English and I expect enchant -l to report those english words.

$ cat test-material-for-enchant-2.txt 
Hallinnolliset tiedot
Tietoa tästä ohjeesta
This manual was created for Sarge's debian-installer, based on the
Woody 
installation manual for boot-floppies, which was based on earlier
Debian 
installation manuals, and on the Progeny distribution manual which was 
released under GPL in 2003.

$ enchant -l -d fi < test-material-for-enchant-2.txt 
This
manual
was
created
for
Sarge's
debian-installer
based
the
Woody
installation
manual
for
boot-floppies
which
was
based
earlier
Debian
installation
manuals
and
the
Progeny
distribution
manual
which
was
released
under
GPL
in

$ enchant -l -d fi_FI < test-material-for-enchant-2.txt

With -d fi_FI I get an empty listing. 

$ enchant-lsmod -list-dicts
fi (voikko)
en (ispell)
en_PH (ispell)
en_US (ispell)
fi_FI (myspell)
tr (zemberek)

According to enchant-lsmod, a different backend is used for fi_FI than
for fi. This seems strange, and not what I expected to happen with
this encant.ordering (which is the original, did not modify it):

cat /usr/share/enchant/enchant.ordering
*:myspell,aspell,ispell
fi:voikko,ispell,myspell,aspell
fi_FI:voikko,ispell,myspell,aspell
he:hspell,myspell
he_IL:hspell,myspell
yi:uspell
tr:zemberek
tr_TR:zemberek

At least the man pages needs more material. Maybe the program works as
intended, but the docs should document the intentions.

-- System Information:
Debian Release: 5.0.3
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-2-686 (SMP w/2 CPU cores)
Locale: LANG=fi_FI.UTF-8, LC_CTYPE=fi_FI.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages libenchant1c2a depends on:
ii  libaspell15            0.60.6-1          GNU Aspell spell-checker runtime l
ii  libc6                  2.7-18            GNU C Library: Shared libraries
ii  libdbus-1-3            1.2.1-5           simple interprocess messaging syst
ii  libdbus-glib-1-2       0.76-1            simple interprocess messaging syst
ii  libgcc1                1:4.3.2-1.1       GCC support library
ii  libglib2.0-0           2.16.6-2          The GLib library of C routines
ii  libhunspell-1.2-0      1.2.6-1           spell checker and morphological an
ii  libstdc++6             4.3.2-1.1         The GNU Standard C++ Library v3
ii  libvoikko1             1.7-2             Finnish spell-checker and hyphenat
ii  zlib1g                 1:1.2.3.3.dfsg-12 compression library - runtime

libenchant1c2a recommends no packages.

libenchant1c2a suggests no packages.

-- no debconf information



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

Reply via email to