Package: ispell
Version: 3.4.00-6+b1
Severity: normal
File: /usr/bin/ispell

The ispell man page under -a mode says

    A line starting with '+', followed immediately by tex or nroff will
    cause ispell to parse future input according the syntax of that
    formatter.

But this doesn't work for me.  For example,

    ispell -a

then entering to it

    +nroff
    \nosuchword

prints a blank line, where I expected in nroff mode the "nosuchword"
would be reported wrong (and it is if +nroff never entered).

It seems any + sets tex mode, where \nosuchword is reckoned a macro name
and so skipped.  I know + alone is supposed to do this, but understand
the docs to mean +nroff etc set the named mode.

Nosing around the sources, at correct.c askmode() case '+', some printfs
suggest filteredbuf includes a final '\n' and consequently the various
strcmp() do not match.  I got some joy adding \n into the strcmps.


-- System Information:
Debian Release: buster/sid
Architecture: i386 (i686)

Kernel: Linux 4.4.0-1-686-pae (SMP w/1 CPU core)
Locale: LANG=en_AU.iso88591, LC_CTYPE=en_AU.iso88591 (charmap=ISO-8859-1), 
LANGUAGE=en_AU:en_GB:en (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages ispell depends on:
ii  libc6      2.28-6
ii  libtinfo6  6.1+20181013-1

Versions of packages ispell recommends:
ii  ibritish [ispell-dictionary]  3.4.00-6
ii  wbritish [wordlist]           2018.04.16-1

Versions of packages ispell suggests:
pn  spell  <none>

-- no debconf information

Reply via email to