discuss@mandoc.bsd.lv
 help / color / mirror / Atom feed
From: наб <nabijaczleweli@nabijaczleweli.xyz>
To: discuss@mandoc.bsd.lv
Subject: No-arg .Nm (also .Bx?) breaks .Bd -literal?
Date: Sun, 5 Jun 2022 18:30:09 +0200	[thread overview]
Message-ID: <20220605163009.6q2rxkbky6bxcx3t@tarta.nabijaczleweli.xyz> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 634 bytes --]

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 --
.Sh EXAMPLES
.Bd -literal -compact -offset 4n
.Li $ Nm Ar form
.Ed
-- >8 --
which produces
-- >8 --
<section class="Sh">
<h1 class="Sh" id="EXAMPLES"><a class="permalink" href="#EXAMPLES">EXAMPLES</a></h1>
<div class="Bd Bd-indent Li">
<pre><code class="Li">$</code> <code class="Nm"></code></pre>
tr <var class="Ar">form</var></div>
</section>
-- >8 --

Same fresh CVS checkout as my last post;
1.14.5-1 off Debian makes an even worse hash of this.

Best,
наб

[-- Attachment #1.2: rep.2 --]
[-- Type: text/plain, Size: 885 bytes --]

.\" 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

[-- Attachment #1.3: rep.3 --]
[-- Type: text/plain, Size: 320 bytes --]

.\" 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

[-- Attachment #1.4: rep.2.html --]
[-- Type: text/html, Size: 1923 bytes --]

[-- Attachment #1.5: rep.3.html --]
[-- Type: text/html, Size: 1230 bytes --]

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

             reply	other threads:[~2022-06-05 16:30 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-05 16:30 наб [this message]
     [not found] ` <Ypz026hcl/USRzsr@www.stare.cz>
2022-06-05 18:54   ` наб
2022-06-06 10:44     ` Ingo Schwarze
2022-06-06 15:39       ` наб

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220605163009.6q2rxkbky6bxcx3t@tarta.nabijaczleweli.xyz \
    --to=nabijaczleweli@nabijaczleweli.xyz \
    --cc=discuss@mandoc.bsd.lv \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).