tmac: introduce real manual reference macro instead of overloading IR

The overloading of IR emits magic \X'...' sequences that turn into HTML manual links.
But not all such IR invocations should be manual links;
those had to be written to avoid the IR macro before.
Worse, the \X'...' ending the IR causes troff to emit only a single space after a period.

Defining a new IM macro for manual references fixes both problems.

Fixes #441.
This commit is contained in:
Russ Cox 2020-08-13 23:41:59 -04:00
parent a1c4307800
commit 977b25a76a
297 changed files with 1790 additions and 1774 deletions

View file

@ -51,7 +51,7 @@ copies to standard output exactly one line from the named
.IR file ,
default standard input.
It is useful in interactive
.IR rc (1)
.IM rc (1)
scripts.
.PP
The
@ -76,11 +76,11 @@ characters and the characters that precede them.
It is useful to use as
.B $PAGER
with the Unix version of
.IR man (1)
.IM man (1)
when run inside a
.I win
(see
.IR acme (1))
.IM acme (1) )
window.
.SH SOURCE
.B \*9/src/cmd/cat.c
@ -89,7 +89,7 @@ window.
.br
.B \*9/bin/nobs
.SH SEE ALSO
.IR cp (1)
.IM cp (1)
.SH DIAGNOSTICS
.I Read
exits with status