[comp.emacs] ispell.el troubles

brennan@rtp.dg.com (Dave Brennan) (10/18/90)

Before I go digging into Elisp, I thought I'd give this posting a shot.  I
just tried using ispell (Version 2.0.01, May 1987 Beta posting) with Emacs
using ispell.el (last modification by Mark Davies (mark@comp.vuw.ac.nz) on
Sun Jun 26 14:01:35 NZST 1988, but it won't correctly do ispell-buffer or
ispell-region.  The Elisp fires up "ispell -A" which the man page says
takes a word per line, but ispell.el appears to be feeding it a line at a
time, confusing poor ispell and leaving me with mispelled words.

I figure if this problem really did/does exist someone must have fixed it
by now.  Maybe I've got some kind of version incompatibility.

Thanks up front and in advance...

                                          |\
Dave Brennan                              | \____oo_     brennan@rtp.dg.com
=========================================((__|  /___>    ...rti!dg-rtp!brennan
User Interfaces, Data General                | //        daveb@rpitsmts.bitnet
Research Triangle Park, NC                   |//         Phone: (919) 248-6330

wambold@magnus.ircc.ohio-state.edu (Sandra E. Wambold) (10/19/90)

This sounds like a problem I encountered.  `tr' takes different switches under
System V.  Change the line:

(defvar ispell-filter-hook-args '("-cs" "A-Za-z" "\012")

to:

(defvar ispell-filter-hook-args '("-cs" "[A-Z][a-z]" "[\012*]")


-- 
-Sandy
------
Sandra Wambold (wambold@magnus.ircc.ohio-state.edu), 614-292-0886
OSU-20 (DEC-20/TOPS-20) and MAGNUS (UNIX) system staff / consultation

jayb@qsun.att.com (02/26/91)

>>>>> Recently I posted:

 >    I have modified the ispell-syntax-table (in ispell.el :-( I'd rather
 >    not have changed ispell.el itself, but...) to regard an apostrophe (')
 >    as a legitimate character, and ispell-word seems to know how to handle
 >    this: ispell-word on "you've" results in:
 > 	   "Checking spelling of YOU'VE ... correct" in the minibuffer.

 >    However, ispell-buffer and ispell-region keep giving me the 
 >    "cannot find ve in original text" message for words like "you've".
 >    (Interestingly, "you've" when within quotation marks does not give me
 >      the "cannot find ..." message.  Hmmm.)

Muchos gracias to James R. Van Artsdalen <james@bigtex.cactus.org> and
Dale Worley <worley@compass.com> and for their solutions.

In a nutshell, the problem I was having was that while I _was_
correctly changing the ispell-filter-table as instructed in ispell.el,
I also needed to be setting up my ispell-filter-hook-args for tr() to
pass the apostrophe on through.  Now I have 
 (setq ispell-filter-hook-args '("-cs" "'A-Za-z" "\012")) in my .emacs.  

[ Remember that this variable may require square brackets around the
second argument depending on the syntax of your tr() command. ] 

I don't understand that much about that ispell-syntax-table stuff, but
it seems kinda clumsy to have to make two types of changes (in the
table and in the tr arguments) in order to get things going.  
Is it time ispell.el were cleaned up?

Anyway, James sent me complete diffs to ispell.el to implement these
changes getting ispell.el to behave properly with apostrophes.  I'll
leave it up to James to post these diffs here, or send me email and
I'll send 'em to you.

					Jay_Borkenhagen@ATT.Com