Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sat, 1 Mar 2003 09:01:05 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sat, 1 Mar 2003 09:01:05 -0500 Received: from pdbn-d9bb8683.pool.mediaWays.net ([217.187.134.131]:58638 "EHLO citd.de") by vger.kernel.org with ESMTP id ; Sat, 1 Mar 2003 09:01:02 -0500 Date: Sat, 1 Mar 2003 15:11:14 +0100 (CET) From: Matthias Schniedermeyer To: Dan Kegel cc: Joe Perches , Linux Kernel Mailing List Subject: Re: [PATCH] kernel source spellchecker In-Reply-To: <3E60474C.1060304@kegel.com> Message-ID: MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="-1463811740-117829526-1046527874=:29947" Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 7811 Lines: 164 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-117829526-1046527874=:29947 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 , where valid options are --help # this message :-) --file # File(s) to be checked --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. ---1463811740-117829526-1046527874=:29947 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 b25nOwp1c2UgdmFycyBxdyAoCgkgICAgICRkZWJ1ZwoJICAgICAlc3BlbGwg JHNwZWxsX3JlCgkgICAgICRzcGVsbF9maWxlCgkgICAgIEBpbnB1dF9maWxl cyAkaW5wdXRfZmlsZQoJICAgICBAaW5wdXRfZGlycyAgJGlucHV0X2RpcgoJ ICAgICAkZGlyICRwYXRoCgkgICAgKTsKdXNlIHN1YnMgcXcgKAoJICAgICBp bml0X2NvbW1hbmRsaW5lIHVzYWdlCgkgICAgKTsKc3ViIGNoZWNrX2ZpbGUo JCk7Cgppbml0X2NvbW1hbmRsaW5lOwoKIyAtLSBSZWFkIGZpbGUgd2l0aCB0 aGUgc3BlbGxpbmdzIC0tCiMgRmlsZS1Gb3JtYXQKIyBjb3JyZWN0LXdvcmQ9 ZmFsc2UsZmFsc2UsZmFsc2UuLi4Kb3BlbiAoRkksICRzcGVsbF9maWxlKSBv ciBkaWUgKCJDYW4ndCBvcGVuIFwiJHNwZWxsX2ZpbGVcIiIpOwp3aGlsZSAo PEZJPikgewogIGNob21wOwogIHByaW50ICJJbnB1dC1MaW5lOiAkX1xuIiBp ZiAoJGRlYnVnKTsKICBteSAoJGNvcnJlY3QsICRmYWxzZV9zKSA9IHNwbGl0 ICgvXHMqPVx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ybjsKICAkY29udGVudCA9IGpvaW4gKCIiLCA8 Rkk+KTsKICBjbG9zZSAoRkkpOwoKICAjIENvcnJlY3Qgc3BlbGxpbmcuIFll cyB0aGlzIGlzIG9ubHkgYSBzaW5nbGUgc3Vic3RpdHV0aW9uLiA6LSkKICBp ZiAoJGNvbnRlbnQgPX4gcy9cYigkc3BlbGxfcmUpLyRzcGVsbHskMX0vZWcp IHsKICAgIHByaW50ICJGYWxzZSBzcGVsbGluZ3MgZm91bmQuIEZpbGU6IFwi JGZpbGVcIlxuIiBpZiAoJGRlYnVnKTsKICAgICMgQW5kIHdyaXRlIGJhY2sg dGhlIGZpbGUuCiAgICBvcGVuIChGTywgIj4kZmlsZS50bXAiKSBvciBkaWUg KCJDYW4ndCBvcGVuIGZpbGUgXCIudG1wJGZpbGVcIiBmb3Igd3JpdGluZyIp OwogICAgcHJpbnQgRk8gJGNvbnRlbnQ7CiAgICBjbG9zZSAoRk8pOwoKICAg IHJlbmFtZSAoIiRmaWxlIiwgIiRmaWxlLnRtcDIiKSBvciBkaWUgKCJDYW4n dCByZW5hbWUgXCIkZmlsZVwiIC0+IFwiJGZpbGUudG1wMlwiIik7CiAgICBy ZW5hbWUgKCIkZmlsZS50bXAiLCAiJGZpbGUiKSBvciBkaWUgKCJDYW4ndCBy ZW5hbWUgXCIkZmlsZS50bXBcIiAtPiBcIiRmaWxlXCIiKTsKICAgIHVubGlu ayAoIiRmaWxlLnRtcDIiKSBvciBkaWUgKCJDYW4ndCB1bmxpbmsgXCIkZmls ZS50bXAyXCIiKTsKICB9CiAgZWxzZSB7CiAgICBwcmludCAiTm8gZmFsc2Ug c3BlbGxpbmdzIGZvdW5kLiBGaWxlOiBcIiRmaWxlXCJcbiIgaWYgKCRkZWJ1 Zyk7CiAgfQp9Cg== ---1463811740-117829526-1046527874=:29947-- - 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/