discuss@mandoc.bsd.lv
 help / color / mirror / Atom feed
* No-arg .Nm (also .Bx?) breaks .Bd -literal?
@ 2022-06-05 16:30 наб
       [not found] ` <Ypz026hcl/USRzsr@www.stare.cz>
  0 siblings, 1 reply; 4+ messages in thread
From: наб @ 2022-06-05 16:30 UTC (permalink / raw)
  To: discuss


[-- 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 --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-06-06 15:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-05 16:30 No-arg .Nm (also .Bx?) breaks .Bd -literal? наб
     [not found] ` <Ypz026hcl/USRzsr@www.stare.cz>
2022-06-05 18:54   ` наб
2022-06-06 10:44     ` Ingo Schwarze
2022-06-06 15:39       ` наб

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).