Messages in this thread | | | Date | Sat, 1 Mar 2003 15:11:14 +0100 (CET) | From | Matthias Schniedermeyer <> | Subject | Re: [PATCH] kernel source spellchecker |
| |
On Fri, 28 Feb 2003, Dan Kegel wrote:
> Joe Perches wrote: > > On Wed, 2003-02-26 at 22:59, Dan Kegel wrote: > > > >>Since the main remaining feature before release of the 2.6 > >>kernel is fixing all the remaining spelling errors, > >>this patch seems appropriate. > > > > > > Who let the comedian in? :o > > At first I was jokeing, but what the heck, I figured I'd run > it. Here are the mispelled words that occur in five > or more files and that lookd like real misspellings to my eye. > The list contains some words that are ok in British usage; > I don't have a British spellchecker (that I know how to use). > > Perhaps some eagr Perl monger can (after removing the British-ok > words!) contribute a spellcorrect-kernel program that takes > in a liste of known misspellings + corrections, and applies > them to the commments in all kernel source files... > - Dan
I've no spelling knowledge, so the list of spellcorrections must be made by someone else. But i can volunteer the perl-snippet to correct the files. :-)
See attachment.
The programm uses this file-format: correct=false1,false2,false3...
As there are many ways to false-write a word i think this is the best(tm) solution to get readable file. :-)
I've only done a "quick-debug", so there might still be errors in the program. (Including spelling-bugs ;-) )
- snip - Usage: spell_fix.pl <options>, where valid options are --help # this message :-) --file <file> # File(s) to be checked --dir <dir> # Directory(s) to be checked (recursive!) --spell-file # File with the correction-list --debug # Debugging-Messages - snip -
Bis denn
-- Real Programmers consider "what you see is what you get" to be just as bad a concept in Text Editors as it is in women. No, the Real Programmer wants a "you asked for it, you got it" text editor -- complicated, cryptic, powerful, unforgiving, dangerous.
[unhandled content-type:application/x-perl] | |