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=4.7 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, FROM_SUSPICIOUS_NTLD,FROM_SUSPICIOUS_NTLD_FP,HTML_MESSAGE, PDS_OTHER_BAD_TLD,T_HTML_ATTACH,T_SCC_BODY_TEXT_LINE,T_TVD_MIME_EPI autolearn=no autolearn_force=no version=3.4.4 Received: (qmail 7618 invoked from network); 5 Jun 2022 16:30:19 -0000 Received: from bsd.lv (HELO mandoc.bsd.lv) (66.111.2.12) by inbox.vuxu.org with ESMTPUTF8; 5 Jun 2022 16:30:19 -0000 Received: from fantadrom.bsd.lv (localhost [127.0.0.1]) by mandoc.bsd.lv (OpenSMTPD) with ESMTP id c5cfed77 for ; Sun, 5 Jun 2022 11:30:17 -0500 (EST) Received: from tarta.nabijaczleweli.xyz (139-28-40-42.artus.net.pl [139.28.40.42]) by mandoc.bsd.lv (OpenSMTPD) with ESMTP id afd90ff8 for ; Sun, 5 Jun 2022 11:30:12 -0500 (EST) Received: from tarta.nabijaczleweli.xyz (unknown [192.168.1.250]) by tarta.nabijaczleweli.xyz (Postfix) with ESMTPSA id BF5091BD4 for ; Sun, 5 Jun 2022 18:30:10 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=nabijaczleweli.xyz; s=202205; t=1654446610; bh=F6LwNsTL7oETK2d9R3m8Fa2ihKPWw9cDDjOCoyP9MZc=; h=Date:From:To:Subject:From; b=R7OaCgo1SajUWMhCy3vCxKHpqaC+mLZIwIJiHMrh7V4aLf/gX9f6Pevj5T/2oiS8H Ja4Vnst2krdmxgjU2paifbKF/Szde1Tw7eNg6UgaIQU6N4O40HC/6rIu/sfSuPkEDH 6gACSz0ok6bY/IkKtO8u31wV1afakfXP/YV0KsnGNf7cGQNARJQxt3q+1SBthzBQEz gD8Pnzu+SVyddFY/pznsoSfhlq42/ZJ1OaOA22hrvF/rLkoTyD5jHjYz0S6BbSL7ZO ct1ynJf8PaHf+4XRIKQRl0XAqt2Ebm+NykM2zM3N2b1X5+3oWSQbC+KGxbJpu0sP/2 VyUmjyaI7crKIZt0yM0sHMwnRy23u+NjtBN081Mv7WXE78T/WdhuXhQ/Z3LInoPWZN MyWXNvo5xfdAv++pxf2RjPYUIhgECGxUFti8T5UJyIGWIgi3WkzulhAriwDghQiiAL 6qTl6KjIrOJLZDFx7INq55whzTi3LIsa+EaevxF79hsqixveUSZluUDkoMFeL86ulg PuAr8TzzDNOOktfg9bNazMiOwQfcyonWqRhqKHd/NOdYWOR1f4tN5CazBJiHXB1H9q gDjVvBlJT6GxWha7rs+DwuuqcvnMIXBLVETQRgdsg4raGMdtwplLDN6K6WvWqmGmey rEiPMkd8Ex58hW2pGR4zxYI8= Date: Sun, 5 Jun 2022 18:30:09 +0200 From: =?utf-8?B?0L3QsNCx?= To: discuss@mandoc.bsd.lv Subject: No-arg .Nm (also .Bx?) breaks .Bd -literal? Message-ID: <20220605163009.6q2rxkbky6bxcx3t@tarta.nabijaczleweli.xyz> X-Mailinglist: mandoc-discuss Reply-To: discuss@mandoc.bsd.lv MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="3djyypbhvhhhxg5w" Content-Disposition: inline User-Agent: NeoMutt/20220429 --3djyypbhvhhhxg5w Content-Type: multipart/mixed; boundary="2262cqwyvt72umri" Content-Disposition: inline --2262cqwyvt72umri Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! Attaching two offending manuals (the first breaks on the no-arg .Nm, the second on .Bx) w/fragment outputs. The minimal example is -- >8 -- =2ESh EXAMPLES =2EBd -literal -compact -offset 4n =2ELi $ Nm Ar form =2EEd -- >8 -- which produces -- >8 --

= EXAMPLES

$ 
tr form
-- >8 -- Same fresh CVS checkout as my last post; 1.14.5-1 off Debian makes an even worse hash of this. Best, =D0=BD=D0=B0=D0=B1 --2262cqwyvt72umri Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="rep.2" .\" SPDX-License-Identifier: 0BSD .\" .Dd .Dt TR 1 .Os . .Sh NAME .Nm tr .Nd transliterate bytes . .Sh EXAMPLES Extract all words (maximal runs of letters) from .Ar form : .Bd -literal -compact -offset 4n .Li $ Nm cat Ar form Groceries for February: Bananas 3.5kg $4.51 Kiwis 2kg $3.19 Call Siegfried to explain short! Bread $20.21 .Li $ Nm Fl cs Li \&"[:alpha:]" \&"\en" < Ar form Li " #" Only compatible with the Bx ! .Li $ Nm Fl cs Li \&"[:alpha:]" \&"[\en*]" < Ar form Groceries for February Bananas kg Kiwis kg Call Siegfried to explain short Bread .Ed . .Pp Capitalise that same form: .Bd -literal -compact -offset 4n .Li $ Nm Li \&"[:lower:]" \&"[:upper:]" < Ar form GROCERIES FOR FEBRUARY: BANANAS 3.5KG $4.51 KIWIS 2KG $3.19 CALL SIEGFRIED TO EXPLAIN SHORT! BREAD $20.21 .Ed --2262cqwyvt72umri Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="rep.3" .\" SPDX-License-Identifier: 0BSD .\" .Dd .Dt TR 1 .Os . .Sh NAME .Nm tr .Nd transliterate bytes . .Sh EXAMPLES .Bd -literal -compact -offset 4n .Li $ Nm cat Ar form .Li $ Nm tr Fl cs Li \&"[:alpha:]" \&"\en" < Ar form Li " #" Only compatible with the Bx ! .Li $ Nm tr Fl cs Li \&"[:alpha:]" \&"[\en*]" < Ar form .Ed --2262cqwyvt72umri Content-Type: text/html; charset=us-ascii Content-Disposition: attachment; filename="rep.2.html"
TR(1) General Commands Manual TR(1)

trtransliterate bytes

Extract all words (maximal runs of letters) from form:

$ cat form
Groceries for February:
    Bananas    3.5kg     $4.51
    Kiwis      2kg       $3.19     Call Siegfried to explain short!
    Bread                $20.21
$ 
tr -cs "[:alpha:]" "\n" < form # Only compatible with the BSD! $ tr -cs "[:alpha:]" "[\n*]" < form Groceries for February Bananas kg Kiwis kg Call Siegfried to explain short Bread

Capitalise that same form:

$ 
tr "[:lower:]" "[:upper:]" < form GROCERIES FOR FEBRUARY: BANANAS 3.5KG $4.51 KIWIS 2KG $3.19 CALL SIEGFRIED TO EXPLAIN SHORT! BREAD $20.21
Linux 5.10.0-14-amd64
--2262cqwyvt72umri Content-Type: text/html; charset=us-ascii Content-Disposition: attachment; filename="rep.3.html"
TR(1) General Commands Manual TR(1)

trtransliterate bytes

$ cat form
$ tr -cs "[:alpha:]" "\n" < form     # Only compatible with the 
BSD! $ tr -cs "[:alpha:]" "[\n*]" < form
Linux 5.10.0-14-amd64
--2262cqwyvt72umri-- --3djyypbhvhhhxg5w Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEfWlHToQCjFzAxEFjvP0LAY0mWPEFAmKc2g8ACgkQvP0LAY0m WPEbVg//bilxsngW1l4pXAadsn7eW7mnT9yGWhsWg+IX9piDYwPgzcljBIIW4+2k O2YQKM9JBqrhp10ezANBlD3iRVYmOW6FCjfN+PiGdv+fPQZbCxbAULD51a3zNDEd bkbmNM3OcfasnG9p+SRz1T+Gyjbl/4673oh9uFXdD6RtbWjXDnhR05ydUH8FFVbT I0hgByrPMq3AgzgS9coV3Lx+2e99iMNpQHTbLI2qXWPJXPhEFXTL1BqrFCRzhhp2 u8t1Fh/9+6K2MalFlrMe3vdGx3f2nvbw9YYEVbEJwe7rql/5xXMVNN/p81rEwKrc 0VDdIj3IsRKuC7dWcn3oghuRc2qovlwDwXXQ30xK+0/eVSE/tdD1JnXGIQfsVOfI cb3di0V4g7v7K1vMH4r+pJckQlVjM8vM68uyHvJcDYfqtnIPOSixQ/mKfIoXoUVc wEGy2sKgughwyV0U5QWw8893ghxeeGRljn9fYXs1kjLdwg+aEqhQIDts37C8Sn96 2nZgtFiQ87gB/QmermtsqAaSnb8FxtHI+QF1RXyWzu8c9mwg8o34bFegEt/oxyd6 PyiIiDjlhMbAwZ18Xbz/KmsPv87Vconlc0U0rvd8odSNmN7t+GntGVXB3d/2hIE5 VSPEpcvLcv1f3L1DKpAeMq8TMKovXXYNO3JnG7bnZGKU0Nu0ing= =jdXC -----END PGP SIGNATURE----- --3djyypbhvhhhxg5w-- -- To unsubscribe send an email to discuss+unsubscribe@mandoc.bsd.lv