Commit Graph

221 Commits

Author SHA1 Message Date
ross
eebe0f5595 * Make Qq callable.
* Dump hyphenation type in the register dump macro.
1999-04-28 00:23:39 +00:00
mycroft
050bfa0d91 Ross points out that removing the .ne inside .It can cause widows in troff
mode.  So, put it back -- in troff mode only -- but preceded by an explicit
break to prevent the widows previously mentioned.
1999-03-24 08:06:26 +00:00
mycroft
b88d12625c Fix the `missing footer' problem. See the comment for details. 1999-03-23 11:50:09 +00:00
mycroft
8b0c29593a Make Qo and Qc callable again. 1999-03-23 09:29:11 +00:00
mycroft
0d83fb3bab Fix the `mysterious blank lines' problem (in 98% of cases, anyway). This was
due to unconditional use of .ne.  groff apparently inserts some virtual trap
at the end of each page, and this was causing the .ne commands to output extra
lines.  Solution is to only use them in troff.

Also fix a related bug in .It, where it would insert a page break in the middle
of a sentence.

Remove the end of page trap in nroff mode, as this causes .sp to sometimes eat
the space due to the nearby trap.

Lastly, undue a previous change that broke the formatting of the SYNOPSIS
section, until we determine the right way to fix that.
1999-03-23 06:44:38 +00:00
mycroft
286b628b2a Remove blank line. 1999-03-23 03:53:26 +00:00
ross
cb405ed6fc Kill Nm-save warning. 1999-03-18 18:57:42 +00:00
mycroft
8b2054fafc Use \n(dn to test whether the quoting diversion is empty, rather than
comparing the input line number.  The latter fails with things like:
.Oc Oc
because there is nothing in the diversion when the second Oc is executed,
which caused the command that adds \*(b2 to the output to be eaten.
1999-03-16 01:19:56 +00:00
ross
1c24ee5ca4 We didn't get the .Bl / .El match fix done tonight.. go back to a warning so the
tree will build.
1999-03-09 12:05:35 +00:00
ross
69d3eeb52c Kill groffisms that crept in with delta 1.8. 1999-03-09 10:38:19 +00:00
ross
bdc8307365 Call Popwarn only if groff 1999-03-09 08:32:52 +00:00
ross
e749d6fa7e Viciously cleanup the .St (Standards) macro. 1999-03-09 06:36:30 +00:00
ross
438ee91423 .warn-harden 1999-03-09 06:33:46 +00:00
ross
e1135b6c55 Predefine the dD string. (.warn-harden)
Detect a net deficit of .El requests (and abort)
1999-03-09 06:33:21 +00:00
ross
9bb81e3d52 Partial .warn cleanup .. if mdoc didn't generate warnings all by
itself, we could do a .warn-enabled sweep of the man pages.
 * Mainly, kill strings by redefining them as null instead of using .rm
 * Push and pop the warning level around unavoidable trouble spots
 * Do all of this only if in groff
 * Fix a really obscure bug in .Nm
 * Make the .em warning an abort.
1999-03-09 06:31:00 +00:00
ross
a5cb41e7a0 Improve appearance, tone down the .Sh size, define a <style> for color
headings, etc. Please feel free to fiddle with this stuff, people...
1999-03-09 06:25:58 +00:00
mycroft
471c3c1228 Make Pq, Po, Pc, Oo, Oc callable. 1999-03-07 08:48:48 +00:00
mycroft
a982881d5d Escape some punctuation, and make Oo and Oc aliases for Bo and Bc. 1999-03-07 08:37:03 +00:00
mycroft
7559ea6c00 Oops; previous was wrong. 1999-03-07 03:34:37 +00:00
mycroft
44bbef9a61 Fix an old type that doesn't appear to matter. 1999-03-07 03:26:37 +00:00
mycroft
e3ad734bcc Sort of add .Oo and .Oc. Needs more work. 1999-03-07 02:17:36 +00:00
mycroft
7bb943b0ae Oops; fix pasto. 1999-03-06 16:51:36 +00:00
mycroft
2310a13c6b Fix the space-after-period problem. 1999-03-06 16:39:02 +00:00
mycroft
91ca52e5cb Minor cleanup. 1999-03-06 16:21:53 +00:00
mycroft
87dcf585f2 Minor cleanup. 1999-03-06 15:59:22 +00:00
mycroft
bb46ac40fa Minor cleanup. 1999-03-06 15:43:59 +00:00
mycroft
736c11026a Minor cleanup. 1999-03-06 15:37:07 +00:00
mycroft
0a17d56476 Fix problem with extra spaces after a .Xr, because .aZ was being called twice. 1999-03-06 10:12:08 +00:00
ross
2f4fede2c2 Back out last rev. "Nice try". 1999-02-10 23:16:07 +00:00
ross
87e810db61 Fix the bug that was inserting blank lines between `pages' in tty
mdoc(7) man(1) output. (There aren't supposed to be any `pages'.)
1999-02-09 18:11:36 +00:00
kleink
ca03c2d3ef Add a macro for our friend, the System V Interface Definition. 1999-02-06 15:01:13 +00:00
ross
1ece689dfe Define mode-null-{on,off} for turning off special modes.
Turn off any special modes when Ns is called.
1999-01-28 00:11:07 +00:00
ross
f46336fd65 Make .Ux be callable. 1999-01-25 23:27:46 +00:00
ross
fa592fc423 Fix bug with html < and > chars found by Alan Barrett. 1999-01-17 12:17:11 +00:00
ross
1e1ba724e3 * Add number registers for Lk, Mt, Nx, and Me; mainly so these can be
callable by parsed macros.

* Improve the .Ss orphan-protection.
1999-01-13 07:19:16 +00:00
ross
b06a2e73d0 New symbolic characters for HTML integration: <, >, &, _
\*<, \*>, \*& : safely output <>& in both -mdoc or -mdoc2html
	\*_ : hard space for both -mdoc and -mdoc2html
1999-01-13 07:08:39 +00:00
ross
ce15988287 Call .e@ instead of .em, second half of .em protection. 1999-01-13 07:06:35 +00:00
ross
466c9bd705 * Add a debug-mode message when beginning an eB diversion. This is to help
find the actual source of the common "automatically ending `eb' diversion
on exit" error. This generally means you tried something like `.Em Do not'
which accidently calls the `Do' request, which _must_ be followed by Dc.
* Add a .Me request for marking up menu entries.
* Print the source line number on the "Extraneous .Ed" error. (Duhh.)
* New requests for HTML integration: .Mt (mailto) and .Lk (link).
* Rename the .em built-in to e@ and print an error if .em is ever
accidently invoked.
1999-01-13 07:05:09 +00:00
ross
a8a689fff2 New module: doc2html. 1999-01-13 05:21:46 +00:00
ross
a2793c002b New macro package for automatically converting -mdoc input to HTML.
Use: nroff -mdoc2html input_file...
Or, for the completely general case,
   Use: groff -P-b -P-u -P-o -Tascii -ww -mdoc2html input_file ...
This was originally intended for just the new distrib/notes and other
non-man-page project documentation, but in fact it can get almost all of
the man pages right at this point.

In many cases, I would suggest that original documentation not be written
in HTML or ASCII any more. A good example would be "supported devices".
It's presently duplicated, in the install notes, the web pages, and the
man pages. If written in -mdoc, it can automatically be a man page, a www
page feature, and a printable, downloadable file.  We can generate PostScript
and the "unix enhanced text" format used by more(1), as well as plain old
ascii, and all using in-tree tools.

TNF Copyright.
1999-01-13 05:00:28 +00:00
garbled
3813b46baf Add additional AT&T UNIX macros for versions 1-5. Change default for
.Os to NetBSD 1.4 instead of "4.4 BSD"

Note.. many of the undocumented macros in here are broken, like the .Px,
and .As macros.  Someone with more clue should fix them.
1999-01-11 19:09:30 +00:00
ross
fbff13e33e Fix bug in .D1 macro.
D1 (dee-one) has two bogus-looking lines that are not in Dl (dee-ell); and
what they do is delete the first parameter unless it is a callable macro.
This may have something to do with the reason why dee-ell is used 418 times
in /usr/share/man vs only 6 times for the crippled dee-one.
1998-12-26 09:40:45 +00:00
ross
c614b69974 Don't hardwire point size 10 (and 9 for .Tn); use the .s value (and for
the .Tn macro, .s - 1) in effect when mdoc is initially read.
1998-11-10 04:27:43 +00:00
ross
9a5c6e6324 Changes to .Nx macro.
* Don't print the `et' in an itty bitty point size just because we want
  small caps for the rest of `NetBSD'.
* Define an Nx number register so the macro becomes sort-of callable. It
  does punctuation wrong, looking at argument count rather than argument
  type, so this will need fixing before it is truly `parsed and callable'.
1998-11-08 04:10:38 +00:00
kleink
d9699db484 Add a macro for 1003.1-1996. 1998-09-29 18:47:46 +00:00
mycroft
3fd5504ed3 Change .Bsx output slightly. 1998-09-11 07:19:07 +00:00
thorpej
7b3e0ec137 Add a "Bsx" macro, BSDI BSD/OS. 1998-08-09 00:26:36 +00:00
kleink
53801bc7aa Posix -> POSIX 1998-05-08 19:43:41 +00:00
fair
c9eddcd89c add .SH to the list of non-mdoc macros that mdoc will complain about 1998-04-28 07:53:29 +00:00
fair
8cdd8944c1 correct HISTORY section of ls(1) to note that Ls(1) exited in 5th Edition UNIX from Bell Labs; add that version to At macro in mdoc, all per PR#4790 1998-03-20 02:36:09 +00:00
thorpej
0149d8b5a8 Make this work as if we were using suffix rules. 1998-02-15 02:54:17 +00:00
thorpej
c7c858669b Make a note that if additional troff macro definitions are added, the
dependency list in bsd.man.mk should be updated.
1998-02-15 01:08:50 +00:00
thorpej
9452ea8c0b Put RCS IDs in the right place. 1998-02-15 00:40:07 +00:00
perry
328255f336 add -Lite and -Lite2 handling to .Bx 1998-02-06 05:17:24 +00:00
perry
e6b98c1152 add OSS library 1998-02-05 19:43:08 +00:00
perry
09d3729694 add .Lb directive for use in LIBRARY sections. Ought to document this. 1998-02-05 18:35:18 +00:00
perry
55d2da9a0b remove da30 and Tahoe gunk; make I386 into i386 even if it isn't conventional 1998-02-05 05:48:46 +00:00
perry
4f31be853e Replace the old .Nx macro (which was not parsed and callable, in spite
of what the documentation claimed) with a new one that is parsed and
callable, and far simplyer -- it turns ".Nx FOO ." into "NetBSD FOO."
without needing to have version numbers hard coded in.
Add a .Fx macro that is a copy of the .Nx macro except that it prints
"FreeBSD" instead of "NetBSD" -- this should make any future "HISTORY"
sections which credit FreeBSD easier, and will not require that we
constantly track their macro versions.
1998-02-05 04:31:21 +00:00
kleink
1e97337b98 Add entries for 1.3A and 1.4. 1997-12-20 20:37:35 +00:00
kleink
2701d4ce7b Change the -xpg4.2 abbreviation to ``XPG4.2''. 1997-12-20 20:33:52 +00:00
lukem
e831e87cda fix support for .Nx 1.4 1997-11-24 05:01:09 +00:00
lukem
325c6eafd0 s/1.3a/1.4/ 1997-11-24 01:32:00 +00:00
lukem
db57574c5d add -column, -dash, -hyphen to .Bl usage string 1997-11-24 00:49:36 +00:00
lukem
a8e9fc4a05 support ".Nx 1.3a" 1997-11-23 01:42:21 +00:00
mycroft
288a555e0e Fix y2k problem. 1997-11-17 01:37:56 +00:00
lukem
0a9b471efa Support first argument of .Nm being "", so that the following works:
===
.Nm foo
 ...
The following options are supported by
.Nm "" :
===
It could be smarter, but it works :)

Thanks to Christoph Badura <bad@ora.de> for providing this!
1997-09-15 00:32:34 +00:00
kleink
337622d4c1 Remove extraneous trailing space from ``ANSI C'' invented in lite2 import. 1997-07-17 19:42:45 +00:00
kleink
e3dd136ed5 Added an entry for POSIX.1c. 1997-07-15 00:36:48 +00:00
phil
861ed7d465 Remove unneeded files, merge back in NetBSD local changes. 1997-07-02 02:55:38 +00:00
phil
572210ca96 Update to Lite-2 1997-07-02 02:40:16 +00:00
cgd
7781a356bb fix a long-standing (since 1993) problem with the invocations of the 'real'
.Dd and .TH macros (after loading the right sets of macros).  Both were
being called with a different number of macros than they were actually
called with, and that was screwing up Dd's processing of its arguments.
This fix is groff-specific.  It's apparently possible to do this is a
non-groff-specific way, but relatively hard, and my roff skills just aren't
up to it (and I have no intention of changing that 8-).  I've marked the
lines that are groff-specific, at least.
1997-05-28 19:55:09 +00:00
cgd
594ba5d1c8 add missing entries for ".Os NetBSD <version>" versions. also, fix
a few that were there but incorrect (e.g. s/0.9a/0.9A/ in output text).
When updating .Nx, don't forget to update this, too!
1997-05-28 19:49:48 +00:00
mycroft
cc4a1553a1 Eliminate bogus redefinitions of standard targets. 1997-05-09 07:50:03 +00:00
jtc
3e31b96702 Add entry for POSIX.1b 1997-04-17 18:02:10 +00:00
mycroft
557dd62340 No need to override BINDIR here. 1997-03-27 08:50:26 +00:00
mycroft
70ab3781a1 If we're going to run things through strip.sed, let's be consistent about it. 1997-03-27 03:12:32 +00:00
christos
3917c3179d - Makefile cleanups 1997-03-24 21:57:01 +00:00
is
fb5a155058 Support NetBSD-1.2C, -1.2D, and -1.2E just in case. 1997-03-16 19:59:02 +00:00
cgd
96fba1833b add definitions for "1.2a" and "1.2b" arguments to the .Nx macros (For
1.2A and 1.2B, respectively).  clean up the strings resulting from
other Nx uses slightly.  (previously, 1.0A would be printed as 1.0a, etc.
Now it's printed correctly.)
1997-01-20 22:22:30 +00:00
explorer
1eb25edb23 Fix the Nx macro yet again... If someone else knows nroff better than I do,
please make this .Nx thing generic
1996-10-18 19:11:25 +00:00
thorpej
150c33e60b Use ${INSTALL}. 1996-10-18 05:55:26 +00:00
explorer
61f46be511 ooops, killed a 1.3 -- readded... 1996-10-16 04:29:23 +00:00
explorer
35e3931fad Fix Perry's .Nx macro:
.Nx		-> NetBSD
.Nx 1.2		-> NetBSD 1.2
.Nx 1.2 .	-> NetBSD 1.2.
.Nx .		-> NetBSD.
1996-10-16 04:24:30 +00:00
perry
f91b25a157 RCSid Police 1996-10-15 20:04:22 +00:00
perry
28e6bf86e4 Added support for in Nx macro for NetBSD 1.3 1996-10-15 19:57:23 +00:00
thorpej
b10e5afe20 Fix two typos in the System V.3 macros. 1996-09-17 04:38:08 +00:00
mycroft
d1a410667f Add .At V.3. 1996-09-07 18:59:55 +00:00
mycroft
016196e6c3 Add architecture-specific macros that were missing (alpha, arm32, mvme68k,
an pica).
1996-09-07 18:58:11 +00:00
leo
3bb1747d99 Add the atari. 1996-07-06 21:29:51 +00:00
oki
fd1d25c174 added header string for x68k architecture 1996-06-16 13:27:00 +00:00
jtc
8ef05b37de Add -xpg4.2 1996-04-26 00:54:05 +00:00
mycroft
d6e1e31a26 Add suport for `.Nx 1.2'. 1996-04-23 10:37:14 +00:00
perry
5b6f34a9a4 Added macros to make section 9 man pages default to "NetBSD Kernel Manual".
I would have prefered the "Kernel Internals Manual", but some man pages
in the kernel section have names too long to make that possible without
messing up the title lines. (Sigh.) Also designated "KM" to indicate
"NetBSD Kernel Manual" for completeness.
1995-12-19 19:14:45 +00:00
pk
0a8364e468 Add `1.1' to Nx macro. 1995-11-13 14:33:08 +00:00
mycroft
a1e0e43227 Remove read-only files before trying to rewrite them. From Greg Hudson. 1995-04-20 02:04:51 +00:00
mycroft
c6cf67ee10 Recognize version 1.1. 1995-01-03 05:57:18 +00:00
jtc
56f3c5d8ba Added -xpg3 and -xpg4. 1994-11-20 08:35:06 +00:00
chopps
e905d504dd add our architechures to .Dt 1994-08-31 05:55:57 +00:00
jtc
ab01da01c5 Change BINOWN -> BINGRP where appropriate. 1994-06-02 23:40:06 +00:00
jtc
c41ae16181 Add .St -ieee754.
Needed for some upcoming math library manpages.
1994-02-24 01:48:26 +00:00
cgd
64b3a3e372 add a Nx (NetBSD) macro 1994-02-20 10:04:19 +00:00
cgd
c440ffb67d kill bogus install -d's, and clean slightly 1994-02-10 01:54:10 +00:00
jtc
3bc75390e6 Need ".At V.2" macro for describing things that came from ATT SysV.2. 1993-11-25 00:12:19 +00:00
jtc
561a918504 New -p1003.1 macro (no -88 or -90 suffixes), to be used when we are
describing features that will be added to a future POSIX draft.
1993-11-09 00:23:40 +00:00
jtc
3e3f2eab1b Always use `install -d' to make sure directory exists & has correct
ownership and permissions.

Use `:', rather than `.' to separate user and group in chown commands
in case we ever decide to remove the support for the (obsolete) `.'
separator.
1993-09-30 23:01:03 +00:00
mycroft
edf530b5b7 Clean up deleted files. 1993-09-30 22:16:53 +00:00
jtc
fe7763b4fb Removed tmac.an.old, the GNU man macros since we want all GPL'd source
in /usr/src/gnu.  In fact, the macros are allready being installed from
the groff distribution.
1993-09-30 22:16:52 +00:00
jtc
29222c415a Added -p1003.1-90 and -p1003.2-92 to list of known standards. 1993-08-19 17:01:08 +00:00
cgd
ac314ea078 change 'ANSI C3.159-1989' to 'ANSI X3.159-1989', as is appropriate 1993-08-13 11:54:34 +00:00
mycroft
690cae8181 Add RCS indentifiers. 1993-07-31 15:17:49 +00:00
jtc
6e9cf0213d Now that all of the manual pages that used the "old" mandoc macros
have been upgraded to use the "new" mandoc macros, we can safely
remove support for tmac.doc.old
1993-07-22 17:06:53 +00:00
cgd
8627f24dba add OS defn's for 0.9a and 1.0. also change 0.8a and 0.9 to be
non-experimental
1993-07-17 14:35:59 +00:00
deraadt
c2ea97f40f fixed an annoying typo in the headers of 90% of manuals: NetBSDd -> NetBSD 1993-06-06 08:34:16 +00:00
cgd
69d1a121b3 from J.T. Conklin <conklin@kaleida.com>:
When the -mandoc macros encounter a .TH, it loads the old -man macros,
slices up a new .TH, and hands off.

But the .TH arguments are not quoted in the new .TH invokation.
Dates, section names, etc., are split up and scattered across the
headers and footers of the manpage.

Very ugly.

Fix:
The following patch to /usr/share/tmac/tmac.andoc quotes the arguments
before they are (re)interpreted by .TH.
1993-05-13 06:08:36 +00:00
cgd
8dbaf99aba change UNIX to NetBSD (EEK!), and add NetBSD OS names 1993-05-03 00:56:32 +00:00
cgd
6d11765675 386BSD -> NetBSD 1993-04-28 05:08:19 +00:00
cgd
39fb9671d3 make sure directories to install stuff exist before installing 1993-04-09 09:43:43 +00:00
cgd
2c31ebb1a6 moved tmac.doc.old in from the distribution /usr/share tree, and fixed
the makefile...  another place where the original source tree
was insonsistent w/the binary dist.
1993-03-30 04:16:18 +00:00
cgd
786a7a8364 fixed so that "tmac.an.old" is installed, so old man pages can be made,
on a fresh distribution.
1993-03-30 01:57:00 +00:00
cgd
93ab21b4dc fixed strip.sed symlink problem, and moved "tmac.doc.old" into list of
things to not install
1993-03-28 03:27:09 +00:00
cgd
61f282557f initial import of 386bsd-0.1 sources 1993-03-21 09:45:37 +00:00