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.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 26440 invoked from network); 22 Feb 2021 21:15:00 -0000 Received: from minnie.tuhs.org (45.79.103.53) by inbox.vuxu.org with ESMTPUTF8; 22 Feb 2021 21:15:00 -0000 Received: by minnie.tuhs.org (Postfix, from userid 112) id 332BF9CA68; Tue, 23 Feb 2021 07:14:56 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id 8BA9193D39; Tue, 23 Feb 2021 07:14:37 +1000 (AEST) Authentication-Results: minnie.tuhs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="Qf1XCJnm"; dkim-atps=neutral Received: by minnie.tuhs.org (Postfix, from userid 112) id 88D2E93D39; Tue, 23 Feb 2021 07:14:34 +1000 (AEST) Received: from mail-pj1-f53.google.com (mail-pj1-f53.google.com [209.85.216.53]) by minnie.tuhs.org (Postfix) with ESMTPS id 128CA93D32 for ; Tue, 23 Feb 2021 07:14:34 +1000 (AEST) Received: by mail-pj1-f53.google.com with SMTP id d2so424088pjs.4 for ; Mon, 22 Feb 2021 13:14:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=z549glcLBMhwstt9amj5j0nNv6TM7pd36k8hXRt9ido=; b=Qf1XCJnm3fyUewjnPFMerfQJPZBWjOLgBvvqSF3PTFupupf9jQO9YsCtV/pvHSvmca A5fHiKs6mXaG16rxVOq1vF+vnfO8k6c9O8JGwzA21vgcdgKPPE5KbqVJ7mvNdHeGtRiJ i98n2g/YogWCgXRy4Mapx1LUVP83d+M02J864vcDnzGFXVaLlWAkXHZeNoht3k8ybjRl Xg0L7SrS98m1+6TXI8un4cC7nVwUW51161mZrZ9I3Zbg30Tnjl22P6NqUyLe38IUyVje pxJVaiXcCAkA9VbiOIeGWL4k2AVfy2Wpm94GGN+zm6CzDJNVTz28tX7VPtYIZyT3q9L8 wqBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=z549glcLBMhwstt9amj5j0nNv6TM7pd36k8hXRt9ido=; b=p2KzEmOpiX7RCxWa77lD8cF7F4i0GJKwlTUwBjo0yKjZLVC82Vl5ipUBNVUY2iO1aD AJClMHb/MhV+s/yYjmnuBKrWt7CfxvHVnQJ8jSgYn7QeFz2Q6GAXDmKyFEzd0clIWfup vCIDqEYKm2f2kWhQGaCcHNbBmtYlGM3X60pMb/r9MKjYKk+08Irvpt5CTGiQlElHn/FQ yyqaJLJD2UV2sZj1XBmfwj7ZwTdAojgMDBlGQGL5taXLSFJj3w9s3/JB0HCqO+/f/Ily IK+xTfmrnnUdl5vePi1ipgbHClSNacdB81JgLMqkfNt+qDRTC/wgLzk3y5KrZjN+3nq/ w8nw== X-Gm-Message-State: AOAM533Z+65yo3RucXGzUVuQrINRYbUtMq0lpXOFKeNji+fCQ8URL4g+ mGkBYfPFSuUcmgAIHc6ZSlQfhwQFY0c= X-Google-Smtp-Source: ABdhPJwfcZENWZPbPfHvXny/w+Y87xxKCovo3zoqYpI2WeiL51EprlQpxWs3Slw6nYp+ct5WWfi51Q== X-Received: by 2002:a17:90a:ce04:: with SMTP id f4mr23511869pju.213.1614028473287; Mon, 22 Feb 2021 13:14:33 -0800 (PST) Received: from localhost.localdomain ([1.129.237.119]) by smtp.gmail.com with ESMTPSA id p8sm1637942pff.79.2021.02.22.13.14.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Feb 2021 13:14:32 -0800 (PST) Date: Tue, 23 Feb 2021 08:14:29 +1100 From: "G. Branden Robinson" To: tuhs@minnie.tuhs.org Message-ID: <20210222211427.dpdkjxv72ojnmpuu@localhost.localdomain> References: <20210222033217.dkqavclp22sa77ln@localhost.localdomain> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="rxy4aprgtvdy2zr4" Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716 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: , Errors-To: tuhs-bounces@minnie.tuhs.org Sender: "TUHS" --rxy4aprgtvdy2zr4 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi John, At 2021-02-22T10:49:52-0500, John P. Linderman wrote: > I can imagine a simple perl (or python or whatever) script that would > run through groff input, determine which preprocessors are *actually* > needed, and set up a pipeline to run through (only) the needed > preprocessors in the proper order. This is _almost_ what the groff grog(1) command does. It's been present as far back as our history goes, to groff 1.02 in June 1991. * It's a Perl script. * It uses pattern-matching heuristics to infer which arguments groff(1) will need to format the document (not just for preprocessors, but macro packages as well). * Depending on its own options, it writes the constructed command to stderr, executes it, or both. The only thing it doesn't handle is ordering, because groff(1) already takes care of that. > I wouldn't have to tell groff what preprocessors I think are needed, > and groff wouldn't have to change (although my script would) when > another preprocessor comes into existence. Modern processors are fast > enough, and groff input small enough, that the "extra" pass wouldn't > be burdensome. And it would take the burden off me to remember exactly > which preprocessors are essential. -- jpl We don't get a lot of bug reports about grog. Maybe it's not given enough prominence in groff's own documentation. Regards, Branden --rxy4aprgtvdy2zr4 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEh3PWHWjjDgcrENwa0Z6cfXEmbc4FAmA0HqoACgkQ0Z6cfXEm bc7UURAAg4zApqL/DUZctuodQaeWeAjaOPLh2D3teXz8kPQeHaJUACZSGfUN6drm FkztDVNCHko3Kq9/CX755DD/iM+H1mIvZ/JkHI56HR1cP8sJKJKBDQNJxdlArUdj vHGio1EijXvFMwM8/EP7P92QDtp2H8jcBxYulK1be3JphcUpatv4ddP4W78BIKCI IgXgkisg6VPgdd2PxTpghXcFrD4zMdtFvQNAjyfbya+i7LjTM/uSFfWg+AKrOv+k Vh5J1EiKJyF7tTswpbspKos6mm9qKK1aTK7flLQe9U15ukQGOWGkC8PLIbP3SHuP YAH3UrdBkYUNWReIZTYYALC+u5SV8ocowsouxTBRqWwRcZWB3DGVlSFzMBOiCvkl 5BDibGVJy83BGQy3Lc12z6Iq1LwC3JD3fp+pY6EFdCf1i7pZE9uzk0UnRttzrRpF 9n+0nWIxn1uIuDQwwVjtA3ddjSyoDfJ28fPb5dtzeRZ/f2ZtePyT3ZUpNfqE8KZt IleRP/lsPiCq5IFX0NthwV2wQTPNM8jRVkHwlCAPqL8LkXHvMs5IM9abvg/Vgiu1 9ODopQdoN2wEGzX3yrWuqPNPgyXEmcCgEDKj9iMvQ4aIQg8HLEPajMCv07c0Kgt7 y6NGZx3Zy6aSUQxN17L2G8dCfFYpsjvrf+UcebKZiqL9WhTM/4g= =2+fB -----END PGP SIGNATURE----- --rxy4aprgtvdy2zr4--