Update of bug #67881 (group groff):
Status: None => Invalid
Assigned to: None => gbranden
_______________________________________________________
Follow-up Comment #1:
Going by the mdoc(7) source you quote:
.It Fl A , -askpass
...I don't see a _groff_ bug here. If the page author wants two
hyphen-minuses (since `Fl` supplies its non-punctuation arguments with one
hyphen-minus already) before "askpass", they need to key in the `\-` escape
sequence. This is well known. And extensively argued about on the Internet,
popularly cited by people as a major reason that all the technical writing
that they won't ever get around to in the future will be in Markdown, damn
it.
_groff_man_style_(7):
Portability
...
[...] Some
escape sequences are however required for correct typesetting even
in man pages and usually do not cause portability problems.
Several of these render glyphs corresponding to punctuation code
points in the Unicode basic Latin range (U+0020–U+007F) that are
handled specially in roff input; the escape sequences below must be
used to render them correctly and portably when documenting
material that uses them as literals——namely, any of the set ' - \ ^
` ~ (apostrophe, dash or hyphen‐minus, backslash, caret, grave
accent, tilde).
...
\- Minus sign. \- produces the basic Latin hyphen‐minus
(U+002D) specifying Unix command‐line options and frequently
used in file names. “-” is a hyphen in roff; some output
devices format it as U+2010 (hyphen).
Also see _groff_char_(7), "Fundamental character set".
Observe:
$ printf '.Dd 2026-01-02\n.Dt foo 1\n.Os\n.Bl -tag -width Fl\n.It Fl A ,
-askpass\n.El\n' | ~/groff-1.23.0/bin/groff -mdoc -Tutf8 -P -cbou | od -c
0000000 f o o ( 1 )
0000020 G e n e
0000040 r a l C o m m a n d s M a n
0000060 u a l
0000100 f o o ( 1 ) \n \n
0000120 - A , - 342 200 220 a s k p a s s \n
0000140 \n G N U
0000160
0000200 2 0 2 6 342 200 220 0 1 342 200 220 0
0000220 2
0000240 f o o
0000260 ( 1 ) \n
0000264
$ printf '.Dd 2026-01-02\n.Dt foo 1\n.Os\n.Bl -tag -width Fl\n.It Fl A ,
\-askpass\n.El\n' | ~/groff-1.23.0/bin/groff -mdoc -Tutf8 -P -cbou | od -c
0000000 f o o ( 1 )
0000020 G e n e
0000040 r a l C o m m a n d s M a n
0000060 u a l
0000100 f o o ( 1 ) \n \n
0000120 - A , - - a s k p a s s \n \n G
0000140 N U
0000160
0000200 2 0 2 6 342 200 220 0 1 342 200 220 0 2
0000220
0000240 f o o ( 1
0000260 ) \n
0000262
[comment #0 original submission:]
> Subject: [mdoc] "HYPHEN-MINUS" is rendered as a hyphen when used with an
> option string in troff-mode
>
> An example is in the manual "sudo.8" (version 1.9.17p2-1 (Debian
> testing)).
>
> .It Fl A , -askpass
>
> The code produced is:
>
> C\-
> h5700
> tA
> f5
> t,
> wf38
> h4166
> C\-
> h5700
> t-askpass
This looks correct to me, given the quoted input.
> The mandoc (Debian 1.14.6-4) program outputs only hyphens with the
> '-Tps' and '-Tpdf' option (Debian bug #1124512).
If by "hyphens" you mean U+2010, I don't see the relevance. It sounds like a
_mandoc_ bug.
I'm not seeing anything for _groff_ to fix here. Closing as invalid.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?67881>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/