From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 12504 invoked from network); 23 Feb 2021 13:59:12 -0000 Received: from minnie.tuhs.org (45.79.103.53) by inbox.vuxu.org with ESMTPUTF8; 23 Feb 2021 13:59:12 -0000 Received: by minnie.tuhs.org (Postfix, from userid 112) id 773DB9CA8D; Tue, 23 Feb 2021 23:59:07 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id 5A46D93D39; Tue, 23 Feb 2021 23:58:43 +1000 (AEST) Received: by minnie.tuhs.org (Postfix, from userid 112) id 76C1F93D39; Tue, 23 Feb 2021 23:58:41 +1000 (AEST) X-Greylist: delayed 519 seconds by postgrey-1.36 at minnie.tuhs.org; Tue, 23 Feb 2021 23:58:40 AEST Received: from relay05.pair.com (relay05.pair.com [216.92.24.67]) by minnie.tuhs.org (Postfix) with ESMTPS id 2BE5293D32 for ; Tue, 23 Feb 2021 23:58:40 +1000 (AEST) Received: from orac.inputplus.co.uk (unknown [87.112.211.187]) by relay05.pair.com (Postfix) with ESMTP id EC9B51A28A7; Tue, 23 Feb 2021 08:49:59 -0500 (EST) Received: from orac.inputplus.co.uk (orac.inputplus.co.uk [IPv6:::1]) by orac.inputplus.co.uk (Postfix) with ESMTP id 0EEC2219D9; Tue, 23 Feb 2021 13:49:59 +0000 (GMT) To: M Douglas McIlroy From: Ralph Corderoy MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit In-reply-to: References: Date: Tue, 23 Feb 2021 13:49:59 +0000 Message-Id: <20210223134959.0EEC2219D9@orac.inputplus.co.uk> Subject: Re: [TUHS] Proliferation of options is great simplification of pipes, really? X-BeenThere: tuhs@minnie.tuhs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: The Unix Heritage Society mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: tuhs@minnie.tuhs.org Errors-To: tuhs-bounces@minnie.tuhs.org Sender: "TUHS" Hi Doug, > > I can imagine a simple perl (or python or whatever) script that > > would run through groff input [and] determine which preprocessors > > are actually needed ... > > Brian imagined such and implemented it way back when. Though I used > it, I've forgotten its name. Was it ‘doctype’? That's what it's called in Kernighan & Pike's ‘Unix Programming Environment’, pp. 306-8. Groff had something similar called grog(1) which had flaws when I rewrote it in sh and mainly awk back in 2002. (My version never made it in because an FSF copyright assignment was required and their answers to some of my questions meant I wouldn't sign.) Someone else since rewrote Groff's in Perl. > defensive groff -pet that I often use I've taken to putting the information needed as a comment at the start of the main source file whence it's picked up by a generic run-off script. Similar to man(1) looking for a «'\"» comment with code letters: ‘p’ for pic, ‘v’ for vgrind, etc. -- Cheers, Ralph.