Package: aspell
Version: 0.60.6-4
Severity: normal

To reproduce this bug create an html file with the following content:

--- Start mixed.html ---
<html>
<body>
  <!-- English comment -->
  <p lang="en">Some English text.</p>
  <p lang="fr">Du texte en Français.</a>
</body>
</html>
--- End mixed.html ---

Then check its content with one of the following commands:
   aspell check mixed.html
   cat mixed.html | aspell -a --mode html --lang fr
   cat mixed.html | aspell -a --mode html --lang en

It ignores the text in the comment as it should when in html mode.
However it does not take the lang attribute into account and thus
systematically reports errors either in the French paragraph or in the
English one.

Ideally if no language and dictionary is specified on the command line it
would automatically pick the right dictionary for the paragraph based on
the lang attribute.

But if a language is specified on the command line it should definitely
ignore paragraphs with a non-matching lang attribute.


-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages aspell depends on:
ii  dictionaries-common       1.5.1          Common utilities for spelling dict
ii  libaspell15               0.60.6-4       GNU Aspell spell-checker runtime l
ii  libc6                     2.10.2-6       Embedded GNU C Library: Shared lib
ii  libgcc1                   1:4.4.2-9      GCC support library
ii  libncursesw5              5.7+20090803-2 shared libraries for terminal hand
ii  libstdc++6                4.4.2-9        The GNU Standard C++ Library v3

Versions of packages aspell recommends:
ii  aspell-de [aspell-dicti 20091006-4       German dictionary for aspell
ii  aspell-en [aspell-dicti 6.0-0-6          English dictionary for GNU Aspell
ii  aspell-es [aspell-dicti 1.10-9           Spanish dictionary for aspell
ii  aspell-fr [aspell-dicti 0.50-3-6         French dictionary for aspell
ii  aspell-it [aspell-dicti 2.4-20070901-0-2 The Italian dictionary for GNU Asp
ii  aspell-nl [aspell-dicti 1:1.10-5         Dutch dictionary for Aspell
ii  aspell-pl [aspell-dicti 20100220-1       Polish dictionary for aspell
ii  aspell-pt-br [aspell-di 20100109-2       Brazilian Portuguese dictionary fo
ii  aspell-pt-pt [aspell-di 20091013-1       European Portuguese dictionary for
ii  aspell-ru [aspell-dicti 0.99g5-8.1       Russian dictionary for Aspell
ii  aspell-sk [aspell-dicti 0.52-0-4         Slovak dictionary for GNU Aspell

Versions of packages aspell suggests:
pn  aspell-doc                    <none>     (no description available)
pn  spellutils                    <none>     (no description available)

-- no debconf information



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

Reply via email to