Bug#560198: /usr/bin/munch: munch and unmunch do not handle continuation classes
Package: hunspell-tools
Version: 1.2.8-5
Severity: normal
File: /usr/bin/munch
The commands "munch" and "unmunch" do not handle continuation classes in
affix files:
% cat demo.list
8
bil
bilen
bilens
biler
bilerne
bilernes
bilers
bils
% cat demo.aff
SET UTF-8
SFX C Y 2
SFX C 0 s [^sz]
SFX C 0 ' [sz]
SFX D Y 3
SFX D 0 en/C .
SFX D 0 er/C .
SFX D 0 erne/C .
% munch demo.list demo.aff 2>/dev/null
4
bilen/C
bilerne/C
biler/C
bil/C
%
The result from the last command should ideally have been:
1
bil/DC
% cat demo.dic
1
bil/DC
% unmunch demo.dic demo.aff 2>/dev/null
bil
bils
bilen/C
biler/C
bilerne/C
%
The result from the last command should be:
8
bil
bilen
bilens
biler
bilerne
bilernes
bilers
bils
(possibly with the words in some other order)
-- System Information:
Debian Release: squeeze/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.30-2-686 (SMP w/1 CPU core)
Locale: LANG=fo_FO.ISO-8859-1, LC_CTYPE=fo_FO.ISO-8859-1 (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash
Versions of packages hunspell-tools depends on:
ii libc6 2.10.2-2 GNU C Library: Shared libraries
ii libgcc1 1:4.4.2-3 GCC support library
ii libhunspell-1.2-0 1.2.8-5 spell checker and morphological an
ii libstdc++6 4.4.2-3 The GNU Standard C++ Library v3
ii perl 5.10.1-8 Larry Wall's Practical Extraction
hunspell-tools recommends no packages.
hunspell-tools suggests no packages.
-- no debconf information
Reply to: