lkml.org 
[lkml]   [2003]   [Mar]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] kernel source spellchecker
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?
- Dan



--
Dan Kegel
http://www.kegel.com
http://counter.li.org/cgi-bin/runscript/display-person.cgi?user=78045

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:33    [W:0.093 / U:0.132 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site