discuss@mandoc.bsd.lv
 help / color / mirror / Atom feed
* Punctuation after bare .%B still italic, contrary to groff
@ 2022-09-13 11:44 наб
  0 siblings, 0 replies; only message in thread
From: наб @ 2022-09-13 11:44 UTC (permalink / raw)
  To: discuss

[-- Attachment #1: Type: text/plain, Size: 1654 bytes --]

Hi!

Reproducer:
-- >8 --
.Dd
.Dt STTY 1
.Os
.
.Sh DESCRIPTION
.Xr intr II
(\c
.%B "UNIX Programmer's Manual" ,
p. 122)
-- >8 --

groff yields:
-- >8 --
D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN
     intr(II) (_\bU_\bN_\bI_\bX _\bP_\br_\bo_\bg_\br_\ba_\bm_\bm_\be_\br_\b'_\bs _\bM_\ba_\bn_\bu_\ba_\bl, p. 122)
-- >8 --

mandoc (current CVS, end-of-May CVS, Debian 1.14.5-1) yields:
-- >8 --
D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN
     intr(II) (_\bU_\bN_\bI_\bX _\bP_\br_\bo_\bg_\br_\ba_\bm_\bm_\be_\br_\b'_\bs _\bM_\ba_\bn_\bu_\ba_\bl_\b, p. 122)
-- >8 --
and the same happens in -Thtml:
-- >8 --
<h2 class="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h2>
<p class="Pp"><a class="Xr" aria-label="intr, section II">intr(II)</a>
    (<i class="RsB">UNIX Programmer's Manual,</i> p. 122)</p>
-- >8 --

The same happens if the ""s wrapping the title are removed.

Oddly, the punctuation is correctly welded to the text,
but the font sticks?

A perusal of the TODO shows this item:
-- >8 --
- .%T can have trailing punctuation.  Currently, it puts the trailing
  punctuation into a trailing MDOC_TEXT element inside its own scope.
  That element should rather be outside its scope, such that the
  punctuation does not get underlines.  This is not trivial to
  implement because .%T then needs some features of in_line_eoln() -
  slurp all arguments into one single text element - and one feature
  of in_line() - put trailing punctuation out of scope.
  Found in mount_nfs(8) and exports(5), search for "Appendix".
  loc **  exist **  algo ***  size *  imp **
-- >8 --
which appears related, but for %T, not %B.

Best,
наб

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-09-13 11:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-13 11:44 Punctuation after bare .%B still italic, contrary to groff наб

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