Package: aspell-it
Version: 0.60-2
Severity: wishlist

During the compilation of the dictionary file (it.rws), a lot of
warning messages are generated and many of them can easily be removed.

The wordlist (it.cwl) is derived from Myspell and has the following
format:

(1) the first line is an integer specifying the number of lines that 
    follow ("91477")

(2) there's a block of line starting with "/ " containing some
    copyright informations; these are just comments.

(3) the previous blocks are followed by the dictionary words:
    this is the important stuff.


(1) causes the following warning message:
    "Warning: The word "91477" is invalid. The character '9'
    (U+39) may not appear at the beginning of a word. Skipping word."

(2) causes the following:
Warning: Removing invalid affix ' ' from word .
Warning: Removing inapplicable affix 'C' from word .
Warning: Removing inapplicable affix 'o' from word .
...
Warning: Removing inapplicable affix 't' from word .
Warning: Removing inapplicable affix 'm' from word .
Warning: Removing invalid affix 'l' from word .

(3) causes the following:
Warning: Removing inapplicable affix 'T' from word cento.
Warning: Removing inapplicable affix 'q' from word cento.
Warning: Removing inapplicable affix 'T' from word cinquanta.
...
Warning: Removing inapplicable affix 'q' from word tr?
Warning: Removing inapplicable affix 'T' from word venti.
Warning: Removing inapplicable affix 'q' from word venti.

----
(1),(2) can be avoided with the following patch which filters out
the unneeded text at compile time:

--- Makefile.pre.orig   2005-05-10 10:46:45.000000000 +0200
+++ Makefile.pre        2005-05-10 10:47:26.000000000 +0200
@@ -57,5 +57,5 @@
 .SUFFIXES: .cwl .rws
  
 .cwl.rws:
-       cat < $< | ${ASPELL} ${ASPELL_FLAGS} --lang=it create master ./$@
+       cat < $< | tail +2 | grep -v "^\/ " | ${ASPELL} ${ASPELL_FLAGS} 
--lang=it create master ./$@


As for (3) I asked upstream and it's a known issue which could be
fixed in the near future.

Those are just warnings and I verified that there are no error hiding
behind those; I still think it's better to keep everything as clean as
possible.

Ciao,
Davide


-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.8-20050110
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages aspell-it depends on:
ii  libaspell15            0.60.2+20050121-2 The GNU Aspell spell-checker runti

-- no debconf information


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

Reply via email to