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 28565 invoked from network); 4 Aug 2021 08:17:38 -0000 Received: from minnie.tuhs.org (45.79.103.53) by inbox.vuxu.org with ESMTPUTF8; 4 Aug 2021 08:17:38 -0000 Received: by minnie.tuhs.org (Postfix, from userid 112) id 6000F9CAD9; Wed, 4 Aug 2021 18:17:35 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id EB9129CAA5; Wed, 4 Aug 2021 18:17:01 +1000 (AEST) Authentication-Results: minnie.tuhs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="er3xyy7M"; dkim-atps=neutral Received: by minnie.tuhs.org (Postfix, from userid 112) id B62299CAA5; Wed, 4 Aug 2021 18:16:58 +1000 (AEST) Received: from mail-pl1-f171.google.com (mail-pl1-f171.google.com [209.85.214.171]) by minnie.tuhs.org (Postfix) with ESMTPS id D065A9CAA4 for ; Wed, 4 Aug 2021 18:16:57 +1000 (AEST) Received: by mail-pl1-f171.google.com with SMTP id a20so2251938plm.0 for ; Wed, 04 Aug 2021 01:16:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=uPpqwZKYIJnWYGam/r7MjKEf/6Z2rRgfNZ5veALzVS8=; b=er3xyy7M3JdcHKFyXa3pd/9l2sADOyZrnW24UMfWOKISqI6vv9hOui/f1yyOckwLHm tCUObVDY/2uQsLFcznCCWbQRfzoXN4yW+MQvJSpqV8UPCsXRrNyTEEQojCLEZRdnnfK5 lfvKTyYi5h1FrpW5pnxlhKagEpbM5B/9TVxhU2OxIscdCGjPgMAosJSNOIxCwBFC6Ef+ 6C41SqLroOsIQRWK0XrKRczFm/oJRgelxJtdoKF/biXFtXK77IT6ooOfv3Dmj13bRQmN e0tEv4IXEoIGnT3/BE20ChGz3zP1Qpgy+mQ7xsuAv0XC4MhMgufCJViMJmEQfC+7G4O9 83PA== 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:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=uPpqwZKYIJnWYGam/r7MjKEf/6Z2rRgfNZ5veALzVS8=; b=eFcqpLt4vxsFQL8B+QpJexXwsLwESTCJWCUI9Uwb7TO0fn77yuNJorwkrrq3GfGGLq RuYifjD1Z4Ma/Yf++NUwOZvBtDuEKIYUPEVjOWCP6PlEYWP9NcVxa/Bwh0N6rXrxIZPD BUp4Y53VnI3Z6to3kI+NoDc7F6fn3eskZprTPNnrZNzbeViVDQB6I7WwdqBoWDeUA3kk 63oz+5l2oro+VHqqbNww5poxL3QoRDWlF4cmNIrtutS8GveTqnLiRsyz5+jfQ1ra7EH1 FfoAs8R+S5i+oBgTBkkcdohSA5Dq+lz8efijWQscWI+WbvVvKqPh4lzT+Y9Ns4AdhK/2 3Kmg== X-Gm-Message-State: AOAM530o34R5/72Pc/EkCao3pPkumi0ltuaD28t25XcYMKF2vxi/KQsa fuAX7tiXajCWGtKQL4hxjTQ= X-Google-Smtp-Source: ABdhPJzYbQ4Dg2mHPw1izDsLk5y1nzk3oECnvc+7kGsZVBlQvK1iFCUDX78Tblfz4rpwY0iZRMHCPw== X-Received: by 2002:a63:1962:: with SMTP id 34mr1051153pgz.14.1628065017136; Wed, 04 Aug 2021 01:16:57 -0700 (PDT) Received: from localhost.localdomain ([1.145.37.91]) by smtp.gmail.com with ESMTPSA id 17sm4601440pjd.3.2021.08.04.01.16.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Aug 2021 01:16:56 -0700 (PDT) Date: Wed, 4 Aug 2021 18:16:53 +1000 From: "G. Branden Robinson" To: groff@gnu.org Message-ID: <20210804081652.pr27a53zc7tnpkva@localhost.localdomain> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="wgmxqyhou7m4msp6" Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716 Subject: Re: [TUHS] Why does refer(1) have no database field for "edition"?. 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: The Eunuchs Hysterical Society Errors-To: tuhs-bounces@minnie.tuhs.org Sender: "TUHS" --wgmxqyhou7m4msp6 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable So many groff discussions get re-routed to TUHS thanks to Doug's MUA. :) At 2021-08-02T19:38:42-0400, Douglas McIlroy wrote: > Another issue I have run into is recursion, when a reference includes > another reference. This comes up in various forms: > Also published as ... > Errata available at ... > Summarized [or reviewed] in ... > Preprint available at ... > Often such a reference takes the form of a URL or a page in a journal > or in a proceedings. This can be most succinctly placed in situ -- > formatted consistently with other references. If the reference > identifies an alternate mode of publication, it may lack %A or %T > fields. >=20 > Partial proposal. a %O field may contain a reference, with no further > recursion, The contained reference will be formatted in line in the %O > text unless references are accumulated and the contained reference is > not unique. This would tighten the existing semantics of %O, would it not? Maybe that's not a problem, since it's already defined as a dumping ground[1]. So if I understand you and the GNU refer(1) manual correctly, %O would be parsed for a pair of brackets[2] containing keywords only (no fields), and if that resolved to a single reference, the label for that reference would be interpolated. That of itself would be sufficient to halt the recursion. Here's an example of what this sort of thing looks like today, _without_ adding this feature to %O[3]. $ cat EXPERIMENTS/my-db-file-for-doug %A Daniel P.\& Friedman %A Matthias Felleisen %C Cambridge, Massachusetts %D 1996 %I The MIT Press %T The Little Schemer, Fourth Edition %O Reviewed in [posterior analytics 36] $ REFER=3DEXPERIMENTS/my-db-file-for-doug ./build/test-groff -R -Tutf8 \ -ms EXPERIMENTS/scheme.ms | cat -s Read the book[1] on your summer vacation. Commentary is available.* =E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2= =94=80=E2=94=80=E2=94=80 [1] Daniel P. Friedman and Matthias Felleisen, The Little Schemer, Fourth Edition, The MIT Press, Cam=E2=80=90 bridge, Massachusetts (1996). Reviewed in [posterior analytics 36]. * Space reserved for penetrating insight. Regards, Branden [1] "Other information. This is usually printed at the end of the reference." [2] could be anything non-keywordy, but brackets seem like a good choice [3] ...and a nickel goes into the "cat -v swear jar". --wgmxqyhou7m4msp6 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEh3PWHWjjDgcrENwa0Z6cfXEmbc4FAmEKTNcACgkQ0Z6cfXEm bc5Vsg//VNwRGLevQs24S5IZD4O59tH3urqPdF+dU7N+bE3XnNQrIJ9vP1uIKYBZ tND4K7TlrlZhvVpqmjBND2YBwUOwAn4+HaQ+OukCZP9uK/Zi29HAb6iR6v/zg+5E vOTPxy++oxIuo1wwi0hv0/ZTx8VXVJDGy7kH593uUAcecbWaqsEVupBOeOkpdTEI DkIND148uYCZiG0bCZwxWw+u6uV9Q9FLsl+ikaC1cnpb2xQVvMIP8ZXwqw0C0Y0z ExO7mXtxcQjjQzWv5ge2abO0zN+OqiQPG73Xp3XKrdiDx+ATKqSaewPEY4dv0NHR rm6NBe4slTEY3/KZvnKjVChYuXf+uGMOoHzMVTYi549AyJS+XeKcNdhgPEYSHNmJ YF0h3yR0k7zRMzdC3VmOt7/GGHJZpv6wEh9mEhWetpu0FXezYdwxThnmP4JtLKB0 uKM6aOw2QzHqNponwgNTrLNJJV2JQOVD9EtK8U+efnmeZCJ/0oUKJR6s9iKEzqdA rIKNNBgwXMx1rhFKWztpFbsVQkUOI2ylvCEtGq8ZMZRv7Em/lRuGg0igqehCovYB tjXWgo93X85/1K0p5UW0zKUevnUriJsDJHKAb60QuXXwHnTQ71nRTIVnTE7Zj2qG u8HhEAmjitCDOI8szX8tF5HHAbrxxeUk4xGiFyWkpFp+aNrSYUg= =hrEY -----END PGP SIGNATURE----- --wgmxqyhou7m4msp6--