Commit Graph

197 Commits

Author SHA1 Message Date
ru
c809c96955 Merge in latest CSRG revisions:
- .Fn and .Fc now print a final semicolon (`;') after a
  function declaration in the SYNOPSIS
- .%I implemented
- .At outputs ``AT&T UNIX'' if called without arguments
- minor cleanup

Obtained from:	CSRG archives
2001-04-09 13:02:20 +00:00
ru
0c3a8e26a5 Record -lposix1e death. 2001-04-05 07:59:19 +00:00
ru
34101a084a .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
3e8d7346e8 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
64cf383c36 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
b23f132373 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
9a56ee4b10 Synch with NetBSD and OpenBSD: replace -iso9945-1 with -p1003.1-96. 2001-02-26 14:41:05 +00:00
ru
63e3613963 Revert part of rev 1.2: make -ansiC equivalent to -ansiC-89. 2001-02-26 13:29:46 +00:00
ru
0b712aa9ab Do not output extra space after .Ef call.
Ported from:	mdocNG
2001-02-26 09:24:14 +00:00
ru
c6eb25402d 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
805aa03c9a 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
11972fadba 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
0ac7eb3717 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
c6476ac6e9 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
83a0acf134 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
2001e1a6ee 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
4923ae6c3f Make the exclamation mark (`!') a recognizable punctuation character.
Obtained from:	mdocNG
2001-02-01 16:17:06 +00:00
ben
2a8230a593 Add entry for libcipher. 2001-01-24 14:26:06 +00:00
ru
c67fcdf02b -pthread -> -lc_r 2001-01-24 13:55:37 +00:00
ru
295d5f80dc Add librpcsvc. 2001-01-17 18:19:06 +00:00
ru
3c313aa466 Reduce diffs (mostly whitespace) to mdocNG.
Obtained from:	mdocNG through NetBSD
2001-01-12 15:20:26 +00:00
ru
31260b45bc 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
9213771385 Fixed the ``undesirable hyphenation'' problem, most noticeable with Xr.
Obtained from:	mdocNG
2001-01-11 09:18:31 +00:00
ru
4bf1a1503a 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
0f35e87fbb 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
ace23c11af Prepare for FreeBSD 4.3, we already have the manpage that refers to it. 2000-12-14 11:50:42 +00:00
ru
8580ef5e63 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
c0cf985516 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
71372a316a 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
47c6557f62 Reduce the diffs with the stock (FSF) version. 2000-12-06 09:32:10 +00:00
ru
35ab1437f2 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
e6ea0adab9 Use stock (FSF) version of this file. 2000-12-06 08:49:05 +00:00
ru
1f010d72ed Resolve conflicts after v1.16.1 import. 2000-12-05 19:06:41 +00:00
ru
074a14ffb2 Removed yacc(1) output files. 2000-12-05 18:53:29 +00:00
ru
c7f016832b Removed files not present in v1.16.1 import. 2000-12-05 18:52:33 +00:00
ru
a812d8b090 Virgin import of FSF groff v1.16.1 2000-12-05 18:49:44 +00:00
ru
7c20aabe3d 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
ben
37d6545c06 Add the appropriate magic to make .Fx 4.1.1 work. 2000-11-23 11:17:33 +00:00
ru
2a74c26618 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
3483a9794b Add libcompat record for .Lb macro. 2000-11-20 15:07:14 +00:00
ru
2a8ac69f53 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
da58922cd5 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
b5506d5eef 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
404bc1af74 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
190004c5eb Fixed the last-minute bug I have made in previous revision (.ie -> .if). 2000-11-13 16:23:00 +00:00
ru
1b51e0fa03 Really make the Fx macro parsed and callable. 2000-11-13 15:22:57 +00:00
ru
7296620078 Cleaned up the .St macro.
Obtained from:	NetBSD
2000-10-11 09:51:27 +00:00
obrien
4e884e6d1c Add a macro for ISO C99 ("isoC-99"). 2000-10-10 23:14:55 +00:00
ru
b9105dcb0a Fix the `missing footer' problem. See the comment for details.
Obtained from:	NetBSD
2000-10-06 13:22:24 +00:00
ru
927fdf4283 Removed files not present in v1_15 import. 2000-09-22 10:05:18 +00:00
ru
9632ecc853 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
fabc2a69f0 Teach .Fx and .Os about FreeBSD 4.2. 2000-09-01 10:30:40 +00:00
phantom
6624e24cd3 Add libusb record for .Lb macro 2000-08-29 15:15:48 +00:00
green
6c8b8b93ff s/Diggest/Digest/ 2000-07-28 01:54:17 +00:00
ache
ef8c625797 Remove stale file - moved to new location 2000-05-07 13:34:40 +00:00
phantom
c624567b87 Update my copyright. Add license. 2000-05-04 18:21:11 +00:00
phantom
78d8c5f45b Set `Er' default value to 17n (length("EPROTONOSUPPORT") + 1)
Discussed long time ago at -committers
2000-05-04 12:56:53 +00:00
phantom
748235692e Add libipsec to the list of known libraries for .Lb macro 2000-05-01 14:32:43 +00:00
phantom
7d9c02b334 Fix typo
Noticed by:	jasone
2000-04-28 09:30:57 +00:00
phantom
131ff305b1 Suggest to use -pthreads instead of -lc_r
Noticed by:	John-Mark Gurney <gurney_j@efn.org>
2000-04-27 08:54:09 +00:00
phantom
d78753fd1e Add note about synchronization of .Lb macro code and its section
in mdoc.samples(7)
2000-04-23 14:53:57 +00:00
phantom
2655c98305 Teach .Lb macro about other libraries. 2000-04-22 15:48:32 +00:00
phantom
b36bce1735 Introduce new mdoc macro -- Lb. It will be used to define library ownership
for function. For example: for stat(2) syscall (owned by libc)  we will add
following code:

.Sh LIBRARY
.Lb libc

and it will be rendered to:

LIBRARY
     Standard C Library (libc, -lc)

Suggested by:		mpp
Idea obtained from:	NetBSD
2000-04-21 09:35:43 +00:00
ru
663ca6d81a Teach Fx and Os about FreeBSD 4.1 and FreeBSD 5.0. 2000-03-13 19:44:24 +00:00
joerg
6ed1daf7e1 Fix a problem that caused the generation of an (almost) empty first
page of -mdoc manual pages in troff mode.  The problem has been
introduced in rev 1.12; apparently ending a line inside a macro
definition with \c doesn't behave as Bill expected, and troff was
fooled to believe previous output was already pending thus a new page
needed to be emitted.  Using a troff comment .\" instead of \c seems
to solve this, alas the brain^Wnice sed(1) magic needs to be taught to
_not_ strip those comments now.

I think -stable is not affected by this.
2000-01-27 17:56:41 +00:00
asmodai
6ff8279593 The groff package is not maintained by jjc@jclark.com anymore.
Reflect this change in the upgrade file.
2000-01-12 10:35:57 +00:00
asmodai
eabb065743 Fix conflicts which arose during import, also add $FreeBSD$. 2000-01-12 10:26:36 +00:00
asmodai
2e2c9047c3 Virgin import of FSF groff v1.15 2000-01-12 09:51:43 +00:00
asmodai
a7003a9d6e This commit was generated by cvs2svn to compensate for changes in r55839,
which included commits to RCS files with non-trunk default branches.
2000-01-12 09:51:43 +00:00
phantom
3f4abe0d33 Teach .Os macro about 3.4-RELEASE and 3.5-RELEASE.
Allow to specify major version number only (like ``.Os FreeBSD 3''.
2000-01-07 12:54:00 +00:00
phantom
c07a4a5a76 Teach .Fx macro about 3.4-RELEASE and 3.5-RELEASE 2000-01-07 12:51:34 +00:00
ache
06a3f76fce Oops, fix typo in prev commit 2000-01-06 12:48:48 +00:00
ache
097686da47 Don't set \(hy to char173 for koi8-r 2000-01-06 12:47:21 +00:00
phantom
ab4110c3bc Mention -p and -t options. 1999-09-24 11:37:06 +00:00
phantom
472736db15 Learn nroff about -p and -t options. It allows to preprocess
file with pic(1) and tbl(1).

Not objected to:	mpp
1999-09-23 13:40:28 +00:00
ache
9e89242d36 moved to tmac/locale 1999-09-23 02:56:00 +00:00
phantom
8559cd0134 Allow .Rv macro to be used in 7th section also. This patch
will fix  "Usage: .Rv ..." error at mdoc.samples.7

Ok'ed by:	mpp
1999-09-22 22:36:16 +00:00
phantom
5b41a05a1a Allow "Alpha" as 2nd argument for .Dt macro. So, we can go
with "Alpha architecture" manpages.
1999-09-22 21:38:40 +00:00
ache
68d776c14a pick up locales from locale subdir
Submitted by:  "Alexey Zelkin" <phantom@crimea.edu>
1999-09-11 20:01:41 +00:00
ache
1097230631 koi8-r mandoc tweaks
Submitted by: "Alexey Zelkin" <phantom@crimea.edu>
1999-09-11 19:49:21 +00:00
ache
8936d8635f source hyphen.us-ru from locale subdir 1999-09-11 19:32:14 +00:00
ru
bdb110f5a2 Add FreeBSD 3.3 to the Fx and Os macros. 1999-09-07 10:33:34 +00:00
ache
2e30179cc4 Tune table since 0200-0206 is not available, add more chars 1999-07-31 15:51:57 +00:00
ache
8dc7ae60a2 bad news: chars 0200-0206 used internally in troff, make them back illegal 1999-07-31 15:15:15 +00:00
ache
eea917b87e make all chars above 127 legal 1999-07-31 14:57:13 +00:00
ache
0515b9ac0b change prev. commit: emulate latin1 on ascii if latin1 chars are
in the text as groff authors suppose
1999-07-31 14:16:04 +00:00
ache
deba43bd2e Add more koi8-r chars 1999-07-31 13:17:47 +00:00
ache
c215087713 Pick hardcoded latin1 chars definitions only if -Tlatin1 1999-07-31 12:00:58 +00:00
ache
e72fd6b32f Sense $LANG only if $LC_CTYPE is not set 1999-07-30 16:34:06 +00:00
mpp
0b514b0abf Teach the .At macro about releases v2, v3, v4, and v5 of AT&T UNIX. 1999-07-30 12:33:26 +00:00
imp
937ff682c0 Force safer mode of operation for man's use of *roff.
Obtained from: OpenBSD's nroff.sh 1.2 by aaron@openbsd.org
1999-07-30 05:20:17 +00:00
ache
8723c1b046 Fix -T doubling 1999-06-07 19:28:47 +00:00
fenner
81b5e45922 Add 3.2 to the list of legal FreeBSD versions for the .Os FreeBSD macro. 1999-05-14 17:35:17 +00:00
fenner
c78425b3f4 Add 3.2 to the list of legal FreeBSD versions for the .Fx macro. 1999-05-14 17:32:21 +00:00
jkoshy
842cae7fdc Complete the list of FreeBSD version numbers accepted by the .Fx macro.
PR:		docs/11705
Submitted by:	Stephen J. Roznowski <sjr@home.net>
1999-05-14 07:03:18 +00:00
obrien
ff0a2d0776 Fix conflicts. 1999-03-15 09:18:28 +00:00
obrien
35cdaa022a Virgin import of FSF groff v1.11 1999-03-15 08:36:16 +00:00
obrien
33e6c8215e This commit was generated by cvs2svn to compensate for changes in r44777,
which included commits to RCS files with non-trunk default branches.
1999-03-15 08:36:16 +00:00
fenner
bb619ee8f3 Make .Os behave as defined (unrecognized arguments displayed as given).
Add a warning for unknown BSD versions.
Make ".Os FreeBSD" work without a warning (fix bug in previous commit).
1999-02-18 16:54:24 +00:00
fenner
467c470f5a Change .Fx macro to always display "FreeBSD" and its argument, whether
the argument is a known FreeBSD version or not.
Output an nroff error if .Fx is used with an unknown FreeBSD version.
Change .Nx and .Ox macros to always display the argument, whether
 the argument is a known version or not.  This eliminates much of the
 need to syncrhonize .Nx and .Ox with their source OS's -- only the
 exceptions (like ".Nx 1.2a" -> "NetBSD 1.2A") where the argument is
 not directly copied to the output need to be added.
1999-02-15 07:27:18 +00:00