bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 01/42] Fix man page cross reference rewrite-defeating markup.


From: G. Branden Robinson
Subject: [PATCH 01/42] Fix man page cross reference rewrite-defeating markup.
Date: Sat, 16 Dec 2023 11:40:12 -0600

A handful of man page cross references, curs_legacy(3X), ncurses(3X),
and unctrl(3X), were not marked up, (or not marked up correctly) so they
were not getting rewritten by the install-time sed script as they
should.  Add font selection escape sequences and suppress hyphenation.

Also break lines around multi-word parentheticals and protect some
nearby literals from hyphenation as well.

* man/curs_addch.3x:
* man/curs_attr.3x: Do it.
---
 man/curs_addch.3x | 7 ++++---
 man/curs_attr.3x  | 6 ++++--
 2 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/man/curs_addch.3x b/man/curs_addch.3x
index 1df5b9d92..34128d960 100644
--- a/man/curs_addch.3x
+++ b/man/curs_addch.3x
@@ -101,7 +101,7 @@ .SS Adding characters
 .PP
 If \fIch\fP is any other nonprintable character,
 it is drawn in printable form,
-using the same convention as \fBunctrl\fR(3X):
+using the same convention as \fB\%unctrl\fP(3X):
 .bP
 Control characters are displayed in the \fB^\fIX\fR notation.
 .bP
@@ -264,8 +264,9 @@ .SS ACS Symbols
 whether the \fIlocale\fP uses UTF-8 encoding.
 .LP
 In certain cases, the terminal is unable to display line-drawing characters
-except by using UTF-8 (see the discussion of \fBNCURSES_NO_UTF8_ACS\fP in
-ncurses(3X)).
+except by using UTF-8
+(see the discussion of \fB\%NCURSES_NO_UTF8_ACS\fP in
+\fB\%ncurses\fP(3X)).
 .SS Character Set
 X/Open Curses assumes that the parameter passed to \fBwaddch\fP contains
 a single character.
diff --git a/man/curs_attr.3x b/man/curs_attr.3x
index 1fc7c505d..027185ba8 100644
--- a/man/curs_attr.3x
+++ b/man/curs_attr.3x
@@ -200,8 +200,10 @@ .SS Legacy window attributes
 \fBattr_\fP* functions, except that they take arguments of type \fBint\fP
 rather than \fBattr_t\fP.
 .PP
-There is no corresponding \fBattrget\fP function as such in X/Open Curses,
-although ncurses provides \fBgetattrs\fP (see curs_legacy(3X)).
+There is no corresponding \fB\%attrget\fP function as such
+in X/Open Curses,
+although ncurses provides \fB\%getattrs\fP
+(see \fB\%curs_legacy\fP(3X)).
 .\" ---------------------------------------------------------------------------
 .SS Change character rendition
 The routine \fBchgat\fP changes the attributes of a given number of characters
-- 
2.30.2

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]