Commit Graph

145 Commits

Author SHA1 Message Date
ru
57207947d9 .St macro cleanup:
- spell the abbreviation of 1003.1 as ``POSIX.1''
- fixed the description of -p1003.1-90; it was sold as ISO/IEC 9945-1:1990
- removed -p1003.1b; it only existed as 1003.1b-1993 (-p1003.1b-93), and
  is part of 1003.1 since 1003.1-1996.
- replaced -p1003.1g (project) with -p1003.1g-2000 (approved draft)
- changed abbreviation of -isoC from ``ISO C'' to ``ISO C89''
- removed -iso9899 alias for -isoC
- IEC was missing from some names
- added abbreviation for -susv2 (``SUSv2'')
2001-03-12 17:19:38 +00:00
ru
b5a960e3c7 setlocale(3) has been fixed to match POSIX standard:
LC_ALL takes precedence over other LC_* envariables.
2001-03-02 16:52:14 +00:00
ru
0b9ea94895 Fixed undesirable hyphenation on the dash of a flag argument.
Example:

.Sh SYNOPSIS
.Nm natd
.Fl unregistered-only
.Fl proxy-only
.Fl deny-incoming
.Fl use-sockets
.Fl same-ports

Ported from:	mdocNG
2001-03-01 12:46:29 +00:00
ru
d8525af758 Fixed two bugs with -tag lists.
If the -tag list definition didn't have a -width modifier,
the first .It call was supposed to set the width depending
on the first argument type; if it is a macro name, use the
macro's width value; otherwise, use width value of `No'.

The following two lists should produce identical output:

.Bl -tag -width Er -compact
.It Er EINVAL
invalid argument
.El
.Bl -tag -compact
.It Er EINVAL
invalid argument
.El

If the outermost -tag list definition did't have a -width
modifier, the .It elements of inner lists might not work
(producing a list where each successive element `walks' to
the right).

Example:

.Bl -tag -compact
.It outer
.It outer
.Bl -tag -compact
.It inner
.It inner
.El
.It outer
.It outer
.El

Ported from:	mdocNG
2001-03-01 12:13:04 +00:00
ru
b1b47f3b7a Synch with NetBSD and OpenBSD: replace -iso9945-1 with -p1003.1-96. 2001-02-26 14:41:05 +00:00
ru
fd9efaae8e Revert part of rev 1.2: make -ansiC equivalent to -ansiC-89. 2001-02-26 13:29:46 +00:00
ru
93578fe83b Do not output extra space after .Ef call.
Ported from:	mdocNG
2001-02-26 09:24:14 +00:00
ru
8bfd7eb10b Make ``groff -man'' work again for both man(7) and mdoc(7) manpages.
The new Groff release will support this feature.

Requested by:	peter
2001-02-23 09:35:33 +00:00
ru
a001107dee Do not output extra comma before "and" for references with two authors.
Example:
	.Rs
	.%A Author1
	.%A Author2
	.%B Book
	.Re

Produced:
	Author1, and Author2, Book.

Now produces:
	Author1 and Author2, Book.

Ported from:	mdocNG
2001-02-19 11:58:15 +00:00
ru
4941dada28 1. Disable the recognition of the last dot character in the
default .Ar argument as an end-of-sentence character.

Example:
    .Ar
    foo
Produced:
    file ...  foo
Now produces:
    file ... foo

2.  Fixed an off-by-one bug in the .It macro for the -hang lists.

Example:
    .Bl -hang -width 8n -compact
    .It 1234
    OK
    .It 1234567
    OK
    .It 12345678
    BUG
    .El
Produced:
     1234      OK
     1234567   OK
     12345678 BUG
Now produces:
     1234      OK
     1234567   OK
     12345678  BUG

Ported from:	mdocNG
2001-02-14 11:03:06 +00:00
ru
bd202708d1 Fixed the .St strings so that no single-character component of
the name could be wrapped, e.g. ``ISO C'' is always printed on
the same line.

Ported from:	mdocNG
2001-02-08 12:00:18 +00:00
ru
e1dc256339 Fixed the .Xr macro so that it produces the right spacing
and no hyphenation is possible on a dash (`-') character.

Ported from:	mdocNG
2001-02-08 11:22:34 +00:00
ru
9a8eefac4e 1. Disable hyphenation on a dash (`-') character in macro arguments.
2.  Disable recognition of end-of-sentence characters in text-type
    macro arguments.
3.  Fix the missing space bug when an end-of-sentence character was
    followed by another punctuation character.
4.  Fix the bug where hyphenation was left disabled after .Re.

Obtained from:	mdocNG
2001-02-07 17:45:22 +00:00
ru
02c6bbd122 Add a missing line-break request so that -ragged
-compact lists always start from the new line.

Example:

	foo
	.Bd -ragged -compact
	bar
	.Ed

Produced:

	foo bar

Now produces:

	foo
	bar
2001-02-07 11:26:57 +00:00
ru
4a866047a5 Make the exclamation mark (`!') a recognizable punctuation character.
Obtained from:	mdocNG
2001-02-01 16:17:06 +00:00
ben
8b81a8de4a Add entry for libcipher. 2001-01-24 14:26:06 +00:00
ru
ea8b4c8afa -pthread -> -lc_r 2001-01-24 13:55:37 +00:00
ru
22fd305a11 Add librpcsvc. 2001-01-17 18:19:06 +00:00
ru
b1e00d918d Reduce diffs (mostly whitespace) to mdocNG.
Obtained from:	mdocNG through NetBSD
2001-01-12 15:20:26 +00:00
ru
1d8c111bbc Make .Ft and .Vt macros accept punctuation characters as
arguments, make .Vt usable outside the SYNOPSIS section.

Obtained from:	mdocNG (not yet submitted for inclusion)
2001-01-12 15:14:28 +00:00
ru
76593715be Fixed the ``undesirable hyphenation'' problem, most noticeable with Xr.
Obtained from:	mdocNG
2001-01-11 09:18:31 +00:00
ru
69bbe898a0 Fixed the bug in D1 macro where it would eat its first (text) argument.
Obtained from:	mdocNG
2001-01-11 09:16:28 +00:00
ru
da27cfab4f Fixed the ``no space after a .Fl'' problem.
Example:

.Fl flag .
The space is missing.

Obtained from:	mdocNG
2000-12-15 14:57:11 +00:00
ru
480ddbdd9f Prepare for FreeBSD 4.3, we already have the manpage that refers to it. 2000-12-14 11:50:42 +00:00
ru
bf36ab6066 Do not duplicate our efforts checking FreeBSD version. For a new version,
simply define the empty string before the .Fx macro definition, like this:

.ds Fx*4.3
2000-12-06 18:31:21 +00:00
ru
861bdefd54 Install the stock (as supplied by groff(1) distribution) tmac.an
and tmac.andoc files.  The man(1), catman(1) and bsd.man.mk have
been modified to call groff(1) with -mandoc argument.
2000-12-06 17:02:33 +00:00
ru
7a8878e3df Backout rev 1.2 (emulate :o' and /o' letters using 'o'),
since they are already emulated in tmac.tty-char.
2000-12-06 12:45:10 +00:00
ru
0f5edd4324 Reduce the diffs with the stock (FSF) version. 2000-12-06 09:32:10 +00:00
ru
69a69f8e5a Backout rev 1.2 (workaround for gcc 2.60 expression evaluation
bug) as later versions of gcc have apparently this bug fixed.
2000-12-06 09:21:36 +00:00
ru
c128982804 Use stock (FSF) version of this file. 2000-12-06 08:49:05 +00:00
ru
7bd64836cd Resolve conflicts after v1.16.1 import. 2000-12-05 19:06:41 +00:00
ru
ce4977d623 Removed yacc(1) output files. 2000-12-05 18:53:29 +00:00
ru
be5c6f0eb6 Removed files not present in v1.16.1 import. 2000-12-05 18:52:33 +00:00
ru
b5937f9dc7 This commit was generated by cvs2svn to compensate for changes in r69626,
which included commits to RCS files with non-trunk default branches.
2000-12-05 18:49:44 +00:00
ru
a812d8b090 Virgin import of FSF groff v1.16.1 2000-12-05 18:49:44 +00:00
ben
9cf8c936c9 Add the appropriate magic to make .Fx 4.1.1 work. 2000-11-23 11:17:33 +00:00
ru
43d7fa9fa7 Make An macro understand two special arguments, -nosplit
and -split.  See the mdoc.samples(7) manpage for details.

Reviewed by:	sheldonh
2000-11-22 08:39:17 +00:00
sheldonh
3a3c0d7c05 Add libcompat record for .Lb macro. 2000-11-20 15:07:14 +00:00
ru
a925d55d3f While in the SYNOPSIS section, Nm macro always required an
argument to setup indentation for the rest of the synopsis
line and to automatically emit a line break for a non-first
synopsis line.  It does not require it anymore.

The following now works as expected:

.Sh NAME
.Nm utility
.Sh SYNOPSIS
.Nm
.Cm start
.Nm
.Cm stop
2000-11-18 17:34:55 +00:00
ru
8ab24fd9fe Fixed Nm macro so that it accepts punctuation characters as argument.
For example, neither of the following worked before:

     .Nm ,       name,
     .Nm .       name.
     .Nm :       name:
     .Dq Nm      ``name''
     .Op Nm .    [name].
2000-11-17 15:30:41 +00:00
ru
93d2b0a39d Make the question mark (`?') a valid punctuation character.
One can now, for example, write:

.Sh EXAMPLES
Have you read the
.Xr mdoc 7 ?
.Pp
Do you like
.Fx ?

The mdoc.samples(7) page has been automatically updated to
record this change.
2000-11-16 17:04:14 +00:00
ru
8191850393 Fix problem with extra space after an Xr, because aZ was being called twice.
Fix the no-space-after-a-period-in-macro problem.

Obtained from:	NetBSD
2000-11-16 16:05:13 +00:00
ru
7e72be32e5 Fixed the last-minute bug I have made in previous revision (.ie -> .if). 2000-11-13 16:23:00 +00:00
ru
1a3575ca98 Really make the Fx macro parsed and callable. 2000-11-13 15:22:57 +00:00
ru
41c6dbf096 Cleaned up the .St macro.
Obtained from:	NetBSD
2000-10-11 09:51:27 +00:00
obrien
4ab81c50cc Add a macro for ISO C99 ("isoC-99"). 2000-10-10 23:14:55 +00:00
ru
30dd3153d9 Fix the `missing footer' problem. See the comment for details.
Obtained from:	NetBSD
2000-10-06 13:22:24 +00:00
ru
07c4662d72 Removed files not present in v1_15 import. 2000-09-22 10:05:18 +00:00
ru
b5cc215b97 Fixed the `mysterious blank lines' problem. This was due to unconditional
use of the .ne requests.  groff(1) apparently inserts some virtual trap at
the end of each page, and this was causing the .ne request to output extra
lines.  Solution is to only use them in troff mode.

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

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

Removed blank line that appeared as the first line on each nroff-formatted
manual page.

Obtained from:	NetBSD
2000-09-21 17:02:15 +00:00
ru
cc73a8a8c8 Teach .Fx and .Os about FreeBSD 4.2. 2000-09-01 10:30:40 +00:00