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, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 15302 invoked from network); 29 Jun 2023 19:03:32 -0000 Received: from minnie.tuhs.org (50.116.15.146) by inbox.vuxu.org with ESMTPUTF8; 29 Jun 2023 19:03:32 -0000 Received: from minnie.tuhs.org (localhost [IPv6:::1]) by minnie.tuhs.org (Postfix) with ESMTP id 4FEA94328F; Fri, 30 Jun 2023 05:03:26 +1000 (AEST) Received: from sdaoden.eu (sdaoden.eu [217.144.132.164]) by minnie.tuhs.org (Postfix) with ESMTPS id E7D5743281 for ; Fri, 30 Jun 2023 05:03:16 +1000 (AEST) Date: Thu, 29 Jun 2023 21:03:12 +0200 Author: Steffen Nurpmeso From: Steffen Nurpmeso To: tuhs@tuhs.org Message-ID: <20230629190312.OzHE3%steffen@sdaoden.eu> In-Reply-To: References: <20230628234750.GE43966@eureka.lemis.com> <20230629133400.d53treoxwyrxhnzi@illithid> Mail-Followup-To: tuhs@tuhs.org User-Agent: s-nail v14.9.24-489-gc71d14c5bf OpenPGP: id=EE19E1C1F2F7054F8D3954D8308964B51883A0DD; url=https://ftp.sdaoden.eu/steffen.asc; preference=signencrypt BlahBlahBlah: Any stupid boy can crush a beetle. But all the professors in the world can make no bugs. Message-ID-Hash: D4S7LDJBV6ZETTQTIY23GZ2TRJTOL2VJ X-Message-ID-Hash: D4S7LDJBV6ZETTQTIY23GZ2TRJTOL2VJ X-MailFrom: steffen@sdaoden.eu X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.6b1 Precedence: list Subject: [TUHS] Re: Trying to date "A Supplemental Document For Awk" List-Id: The Unix Heritage Society mailing list Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Rich Salz wrote in : |A perl script to inuit likely roff options as definitely a neat Unix hack. The "problem" is that the "shebang" line used for UNIX man'uals on at least a few ("newer" <> post Y2K) systems has never been extended in plain *roff terms, for general macro things. Ie that For example, newer man(1)s read the first line of the manual and check for a syntax <^'\" >followed by concat of [egprtv]+ (and in fact *join in* $MANROFFSEQ environment [egprtv]+) while getopts 'egprtv' preproc_arg; do case "${preproc_arg}" in e) pipeline="$pipeline | $EQN" ;; g) GRAP ;; # Ignore for compatibility. p) pipeline="$pipeline | $PIC" ;; r) pipeline="$pipeline | $REFER" ;; t) pipeline="$pipeline | $TBL" ;; v) pipeline="$pipeline | $VGRIND" ;; *) usage ;; esac Of course, most roff's do not have that "super process" that groff actually is, for one, so you have to formulate pipelines anyway. And then roff is dead for the young. Generally speaking. It is only a pity in my opinion because the most widely used implementation (GNU roff) actually does "magic" already and anyway, namely in its preconv(1), which does preconv tries to find the input encoding with the following algorithm. ... 2. Otherwise, check whether the input starts with a Byte Order Mark (BOM, see below). If found, use it. 3. Otherwise, check whether there is a known coding tag (see below) in either the first or second input line. If found, use it. ... 5. If everything fails[.] And 3. is then [.]supports the coding tag convention (with some restrictions) as used by GNU Emacs and XEmacs[.] ... .\" -*- mode: troff; coding: latin-2 -*- But possibly the future brings not only integrative and truthful western white men, but also a roff which "can". The former i doubt, the latter i can still hope for. --steffen | |Der Kragenbaer, The moon bear, |der holt sich munter he cheerfully and one by one |einen nach dem anderen runter wa.ks himself off |(By Robert Gernhardt)