public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: jw schultz <jw@pegasys.ws>
To: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] kernel source spellchecker
Date: Sun, 2 Mar 2003 00:40:48 -0800	[thread overview]
Message-ID: <20030302084048.GD30797@pegasys.ws> (raw)
In-Reply-To: <3E61BF1B.7040706@kegel.com>

On Sun, Mar 02, 2003 at 12:21:47AM -0800, Dan Kegel wrote:
> jw schultz <jw () pegasys ! ws> wrote:
> 
> >An ispell filter seems a simpler approach to me. (ispell -F
> >filter) I use that (shown here to head off requests) for
> >email so quoted content is ignored.  A similar filter for C
> >source would make this trivial.
> >
> >$ grep ispell .muttrc
> >set ispell="ispell -F maildequote"
> >$ cat bin/maildequote
> >#!/usr/bin/perl
> >
> >while (<STDIN>)
> >{
> >        /^[>|] / || /^On .* wrote:$/ and tr[A-Za-z][_];
> >        print $_;
> >}
> >print "\004";
> 
> Integrating in to existing spellcheckers is a Good Idea,
> though it might not totally replace the perl script Matthias
> wrote (does ispell have a batch mode that works on whole
> directory trees?).
> 
> BTW, ispell on my system is gnu aspell,
> and I couldn't tell for the life of me from the manual
> whether it supports this kind of filter.
> Nor could I find any doc on ispell filters.
> Where's the best place to learn about 'em?

The manpage was my only reference.  It was enough:

       The -F switch specifies an external  deformatter  program.
       This  program should read data from its standard input and
       write to its standard output.  The  program  must  produce
       exactly  one  character  of  output  for each character of
       input, or ispell will lose synchronization and corrupt the
       output  file.   Whitespace  characters (especially blanks,
       tabs, and newlines) and characters that should  be  spell-
       checked  should  be  passed through unchanged.  Characters
       that should not be spell-checked should be converted  into
       blanks or other non-word characters.  For example, an HTML
       deformatter might turn all HTML tags into blanks, and also
       blank  out  all  text  delimited by tags such as "code" or
       "kbd".

I don't know if aspell has filter support.  I'm running 
International Ispell Version 3.2.06 08/01/01
It came standard on SuSE.
http://fmg-www.cs.ucla.edu/geoff/ispell.html
It isn't GPL but the license terms are not unacceptable.

-- 
________________________________________________________________
	J.W. Schultz            Pegasystems Technologies
	email address:		jw@pegasys.ws

		Remember Cernan and Schmitt

  reply	other threads:[~2003-03-02  8:30 UTC|newest]

Thread overview: 46+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-27  6:59 [PATCH] kernel source spellchecker Dan Kegel
     [not found] ` <1046330232.15763.97.camel@localhost.localdomain>
2003-03-01  5:38   ` Dan Kegel
2003-03-01 14:11     ` Matthias Schniedermeyer
2003-03-01 17:13       ` Matthias Schniedermeyer
2003-03-01 18:54       ` Dan Kegel
2003-03-01 19:18         ` Steven Cole
2003-03-01 21:20           ` Dan Kegel
2003-03-02  3:45             ` jw schultz
2003-03-02  2:08           ` Dan Kegel
2003-03-02  3:02             ` Dan Kegel
2003-03-02  3:54               ` Steven Cole
2003-03-02  8:04                 ` Dan Kegel
2003-03-02  4:16               ` Steven Cole
2003-03-02  8:21                 ` Dan Kegel
2003-03-02  8:40                   ` jw schultz [this message]
2003-03-02 11:21                 ` David Woodhouse
2003-03-02 13:49                   ` Steven Cole
2003-03-02 14:55                     ` David Woodhouse
2003-03-02 22:44                     ` Alan Cox
2003-03-02 22:59                       ` John Bradford
2003-03-03  2:29                       ` Dan Kegel
     [not found]                     ` <3E62C0FF.1090700@kegel.com>
     [not found]                       ` <1046661777.7527.518.camel@spc1.mesatop.com>
2003-03-03  5:36                         ` Dan Kegel
     [not found]                         ` <3E62E4C0.9070103@kegel.com>
     [not found]                           ` <1046668274.7527.533.camel@spc1.mesatop.com>
2003-03-03  5:48                             ` Dan Kegel
2003-03-02 15:35                   ` Dan Kegel
2003-03-02  8:09               ` Matthias Schniedermeyer
2003-03-02  8:13                 ` Matthias Schniedermeyer
2003-03-02  3:29             ` Steven Cole
2003-03-01 19:30         ` Matthias Schniedermeyer
2003-03-01 20:33           ` Matthias Schniedermeyer
2003-03-01 21:25           ` Dan Kegel
2003-03-01 21:25             ` Matthias Schniedermeyer
2003-03-02  9:15               ` John Bradford
2003-03-02  9:31                 ` Matthias Schniedermeyer
2003-03-02  3:16         ` Horst von Brand
  -- strict thread matches above, loose matches on Subject: below --
2003-03-01 15:57 shaheed
2003-03-01 16:35 ` Jörn Engel
2003-03-01 18:01   ` shaheed
2003-03-01 18:31     ` Jörn Engel
2003-03-05 18:10   ` Pavel Machek
     [not found] <20030301160017$56fc@gated-at.bofh.it>
2003-03-01 18:39 ` Pascal Schmidt
2003-03-02 18:56 Jared Daniel J. Smith
2003-03-02 17:22 ` Bernd Petrovitsch
2003-03-02 17:47   ` Werner Almesberger
2003-03-02 18:28     ` Bernd Petrovitsch
2003-03-02 18:46 ` Steven Cole
2003-03-02 22:32   ` Alan Cox

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030302084048.GD30797@pegasys.ws \
    --to=jw@pegasys.ws \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox