Skip Menu |

This queue is for tickets about the Lingua-Ispell CPAN distribution.

Report information
The Basics
Id: 129019
Status: new
Priority: 0/
Queue: Lingua-Ispell

People
Owner: Nobody in particular
Requestors: user42_kevin [...] yahoo.com.au
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: parse_according_to('tex') sets nroff instead
Date: Thu, 04 Apr 2019 18:15:29 +1100
To: bug-Lingua-Ispell [...] rt.cpan.org
From: Kevin Ryde <user42_kevin [...] yahoo.com.au>
In Lingua::Ispell 0.07, a program use Lingua::Ispell ':all'; parse_according_to('tex'); foreach my $r (spellcheck('\\documentclass{article}')) { print "\"$r->{term}\" $r->{type}\n"; } prints "documentclass" miss where I expected no misses parsed according to tex. (Which is so if ispell run directly as ispell -t.) In parse_according_to(), I think it should be "+" to set the parse mode, so send +tex or +nroff. Sending "-", as parse_according_to() does now, sets nroff always (no matter what rest of the line). Incidentally, I think recent ispell 3.4.00 (debian package at least) has a bug where +nroff is not recognised, only +tex. That will affect everybody so Lingua::Ispell needn't do anything.