🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.help
Article #189591

Re: Problems with ispell - reads line at a time no words.

#189591
From: Mike Balenger
Date: Wed, 02 Jan 1991 19:59
50 lines
2576 bytes
>>>>> On 31 Dec 90 23:14:51 GMT, joe@bram.UUCP (Joe Saladino) said:

joe> I am having a problem with ispell.el.  When I run ispell-buffer, I get
joe> the entire line as an error.  Any ideas why it doesn't see just the
joe> words?  Thanks for your help in advance.

You may have the default value of "tr" for ispell-filter-hook when you
want "deroff".  The following works in a nroff-mode-hook

    (setq nroff-mode-hook '(lambda ()	
			     (ispell-troffize-settings)))

    (defun ispell-troffize-settings ()
      "Troff-ize settings needed for ispell on such a buffer"
      (interactive)
      (setq ispell-filter-hook "deroff")
      (setq ispell-filter-hook-args '("-w"))
      (setq ispell-words-have-boundaries nil))

Or you may have the wrong args for ispell-filter-hook-args, since the
"tr" arg syntax is different between systems.  This works on our SunOS
systems.

(defvar ispell-filter-hook-args '("-cs" "[A-Z][a-z]'" "[\012*]")
  "Argument LIST to pass to ispell-filter-hook")
(make-variable-buffer-local 'ispell-filter-hook-args)

================
ispell-filter-hook's value is "deroff"

Documentation:
Filter to pass a region through before sending it to ispell.
Must produce output one word per line.  Typically this is set to tr,
deroff, detex, etc.
================
ispell-filter-hook-args's value is ("-w")

Documentation:
Argument LIST to pass to ispell-filter-hook
================


--
----------------------------------------------------------------------
<cute quote>            Michael S. Balenger             (908) 949-8789
<cute disclaimer>       AT&T Bell Labs	           FAX: (908) 949-7512
M_Balenger@att.com      Room 1L-405
msb@hos1cad.att.com     Crawfords Corner Road
att!hos1cad!msb         Holmdel, NJ   07733-1988
Technical Details
Message-ID: <1991Jan2.195940.9258@cbnewsh.att.com>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!cbnewsh!hosmsb!msb
References: <1990Dec31.231451.4779@bram.UUCP>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 103b8b,fbd4f1741cdbae3
X-Google-Attributes: gid103b8b,public
X-Google-ArrivalTime: 1991-01-02 12:56:55 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!cbnewsh!hosmsb!msb
From: msb@hosmsb.ATT.COM (Mike Balenger)
Newsgroups: gnu.emacs.help
Subject: Re: Problems with ispell - reads line at a time no words.
Message-ID: <1991Jan2.195940.9258@cbnewsh.att.com>
Date: 2 Jan 91 19:59:40 GMT
References: <1990Dec31.231451.4779@bram.UUCP>
Sender: msb@cbnewsh.att.com (michael.s.balenger)
Reply-To: msb@hos1cad.ATT.COM (Mike Balenger)
Organization: AT&T Bell Laboratories -- Holmdel, NJ
Lines: 50
In-Reply-To: joe@bram.UUCP's message of 31 Dec 90 23:14:51 GMT