Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sat, 1 Mar 2003 15:23:36 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sat, 1 Mar 2003 15:23:36 -0500 Received: from pdbn-d9bb8750.pool.mediaWays.net ([217.187.135.80]:54031 "EHLO citd.de") by vger.kernel.org with ESMTP id ; Sat, 1 Mar 2003 15:23:32 -0500 Date: Sat, 1 Mar 2003 21:33:41 +0100 (CET) From: Matthias Schniedermeyer To: Dan Kegel cc: Joe Perches , Linux Kernel Mailing List , Subject: Re: [PATCH] kernel source spellchecker In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="-1463811740-833646833-1046550821=:32101" Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 8502 Lines: 165 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. Send mail to mime@docserver.cac.washington.edu for more info. ---1463811740-833646833-1046550821=:32101 Content-Type: TEXT/PLAIN; charset=US-ASCII HI > > Matthias Schniedermeyer wrote: > > > 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. :-) > > > > Smashing! However, it should probably avoid correcting spellings > > in anything but C comments. > > Here we go. > > Take 1.10 Ups. A bit to "noisy". Take 1.10b 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. ---1463811740-833646833-1046550821=:32101 Content-Type: APPLICATION/x-perl; name="spell-fix.pl" Content-Transfer-Encoding: BASE64 Content-ID: Content-Description: Content-Disposition: attachment; filename="spell-fix.pl" IyEvdXNyL2Jpbi9wZXJsIC13Cgp1c2Ugc3RyaWN0Owp1c2UgR2V0b3B0OjpM b25nOwp1c2UgdmFycyBxdyAoCgkgICAgICRkZWJ1ZwoJICAgICAlc3BlbGw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FxuIjsKCiAgaWYgKCRjb250ZW50 ID1+IHMvXGIoJHNwZWxsX3JlKS8kc3BlbGx7JDF9L2VnKSB7CiAgICAkZml4 ZWQgPSAxOwogIH0KCiAgaWYgKCRjb21tZW50IGVxICIvLyIpIHsKICAgIHJl dHVybiAiLy8kY29udGVudCI7CiAgfQogIGVsc2UgewogICAgcmV0dXJuICIv KiRjb250ZW50Ki8iOwogIH0KfQo= ---1463811740-833646833-1046550821=:32101-- - 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/