Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 13 Feb 1999 15:50:41 PST
From:      Bill Fenner <fenner@parc.xerox.com>
To:        Mike Pritchard <mpp@FreeBSD.ORG>
Cc:        fenner@parc.xerox.com (Bill Fenner), yokota@zodiac.mech.utsunomiya-u.ac.jp, wosch@cs.tu-berlin.de, pst@FreeBSD.ORG, bugs@FreeBSD.ORG
Subject:   Re: Fx and Os macros (was: Re: [yokota@zodiac.mech.utsunomiya-u.ac.jp: .Fx and .Os macros in groff, FreeBSD]) 
Message-ID:  <199902132350.PAA18544@mango.parc.xerox.com>
In-Reply-To: Your message of "Sat, 13 Feb 1999 13:52:25 PST." <199902132152.NAA22280@hub.freebsd.org> 

next in thread | previous in thread | raw e-mail | index | archive | help
In message <199902132152.NAA22280@hub.freebsd.org>you write:
>It doesn't have to be a fatal error.  You should be able to issue 
>a warning message and still have the manual page format correctly.  

You're right.  Here's what I'm playing with right now:

.de Fx
.nr cF \\n(.f
.nr cZ \\n(.s
.ds aa \&\f\\n(cF\s\\n(cZ
.    ie "\\$1"1.0"      \c
.el .ie "\\$1"1.1"      \c
.el .ie "\\$1"1.1.5"    \c
.el .ie "\\$1"1.1.5.1"  \c
.el .ie "\\$1"2.0"      \c
.el .ie "\\$1"2.0.5"    \c
.el .ie "\\$1"2.1"      \c
.el .ie "\\$1"2.1.5"    \c
.el .ie "\\$1"2.1.6"    \c
.el .ie "\\$1"2.1.7"    \c
.el .ie "\\$1"2.2"      \c
.el .ie "\\$1"2.2.1"    \c
.el .ie "\\$1"2.2.2"    \c
.el .ie "\\$1"2.2.5"    \c
.el .ie "\\$1"2.2.6"    \c
.el .ie "\\$1"3.0"      \c
.el .ie "\\$1"3.1"      \c
.el .ie "\\$1"4.0"      \c
.el .ie "\\$1","        \c\" Allow ".Fx ," 
.el .ie "\\$1"."        \c\" Allow ".Fx ." 
.el .tm Unknown FreeBSD version ``\\$1'' at line \\n(c.
.    ie "\\$1"," \\&\\*(tNFreeBSD\\*(aa,\\$2
.el .ie "\\$1"." \\&\\*(tNFreeBSD\\*(aa.\\$2
.el              \\&\\*(tNFreeBSD\\*(aa \\$1\\$2 
..

It'll do the following:

% man mcd
Formatting page, please wait...Unknown FreeBSD version ``1.0.'' at line 155
Done.

MCD(4)       FreeBSD Kernel Interfaces Manual (i386 Architecture)       MCD(4)

...

     An mcd driver appeared in FreeBSD 1.0.

FreeBSD 2.0                    December 8, 1994                              2



I do think that we should change .Nx and .Ox to just print their argument
and not print any errors, since it's not likely that we'll write man
pages with those macros (just import them).

  Bill

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199902132350.PAA18544>