]> git.cameronkatri.com Git - mandoc.git/log
mandoc.git
14 years agoAssign layout cells to parsed data. This follows primarily from
Kristaps Dzonsons [Thu, 30 Dec 2010 10:26:00 +0000 (10:26 +0000)]
Assign layout cells to parsed data.  This follows primarily from
tbl.bsd.lv, although it has been reimplemented.

14 years agoMove clean-up of parsed tbl nodes into the tbl_clear() function, called
Kristaps Dzonsons [Thu, 30 Dec 2010 09:34:06 +0000 (09:34 +0000)]
Move clean-up of parsed tbl nodes into the tbl_clear() function, called
once per invocation.

14 years agoPlan9 has a man(7) implementation that looks extremely archaic,
Ingo Schwarze [Thu, 30 Dec 2010 00:51:32 +0000 (00:51 +0000)]
Plan9 has a man(7) implementation that looks extremely archaic,
even more archaic than Solaris/Heirloom stuff; so that is quite
interesting from a perspective of compatibility and history.

14 years agoInitial check-in of table data-row processing. For the time being, this
Kristaps Dzonsons [Wed, 29 Dec 2010 16:44:23 +0000 (16:44 +0000)]
Initial check-in of table data-row processing.  For the time being, this
parses table data then throws it away immediately.  It does not yet try
to cross-check data rows against layout or anything.  This copied more
or less completely from tbl.bsd.lv.

14 years agoUse `Dl' instead of `D1' for code examples.
Kristaps Dzonsons [Wed, 29 Dec 2010 16:18:13 +0000 (16:18 +0000)]
Use `Dl' instead of `D1' for code examples.

14 years agoIn mdoc.7, don't use `D1' in place of `Dl' for code examples.
Kristaps Dzonsons [Wed, 29 Dec 2010 16:16:50 +0000 (16:16 +0000)]
In mdoc.7, don't use `D1' in place of `Dl' for code examples.

14 years agoUpdate (still-commented) manual bits for tbl.
Kristaps Dzonsons [Wed, 29 Dec 2010 15:21:34 +0000 (15:21 +0000)]
Update (still-commented) manual bits for tbl.

Also removed lots of superfluous switch cases by using tolower() and
handling only the lowercase keys.

14 years agoAdd handling for `T&', which restarts a table except for its options.
Kristaps Dzonsons [Wed, 29 Dec 2010 14:53:31 +0000 (14:53 +0000)]
Add handling for `T&', which restarts a table except for its options.

14 years agoMerge, with considerable changes, tbl.bsd.lv's layout-handling code.
Kristaps Dzonsons [Wed, 29 Dec 2010 14:38:14 +0000 (14:38 +0000)]
Merge, with considerable changes, tbl.bsd.lv's layout-handling code.

14 years agoInitial documentation for TBL, which for the time being is commented-out.
Kristaps Dzonsons [Wed, 29 Dec 2010 10:19:55 +0000 (10:19 +0000)]
Initial documentation for TBL, which for the time being is commented-out.

14 years agoWhack removed function from libroff.
Kristaps Dzonsons [Wed, 29 Dec 2010 01:18:23 +0000 (01:18 +0000)]
Whack removed function from libroff.

14 years agoSignificant update to options handling, which now departs almost
Kristaps Dzonsons [Wed, 29 Dec 2010 01:16:57 +0000 (01:16 +0000)]
Significant update to options handling, which now departs almost
completely with the BSD.lv code due to performance issues and flat-out
errors.

Performance issues: functions called per character.  Ugly.

Flat-out errors: disallowing "reserved" tokens as arguments to those
options accepting arguments.

Also added are two mandoc.h error codes for general tbl syntax errors
and for bad options.

14 years agoFix copyright email.
Kristaps Dzonsons [Tue, 28 Dec 2010 13:47:38 +0000 (13:47 +0000)]
Fix copyright email.

14 years agoAdding initial options processing (not hooked into parse yet). This is
Kristaps Dzonsons [Tue, 28 Dec 2010 13:46:07 +0000 (13:46 +0000)]
Adding initial options processing (not hooked into parse yet).  This is
more or less copied from tbl.bsd.lv and still needs integration with the
general mandoc framework, e.g., with error messages.

14 years agoTemporarily remove check for r->tbl at end of parse since we need the
Kristaps Dzonsons [Tue, 28 Dec 2010 10:59:07 +0000 (10:59 +0000)]
Temporarily remove check for r->tbl at end of parse since we need the
original parse point to generate a useful error message.

14 years agoFixed enum rofferr return value in tbl_read() (oops).
Kristaps Dzonsons [Tue, 28 Dec 2010 10:55:24 +0000 (10:55 +0000)]
Fixed enum rofferr return value in tbl_read() (oops).

14 years agoInitial tbl framework. Parse point is in libroff, which keeps a
Kristaps Dzonsons [Tue, 28 Dec 2010 10:51:03 +0000 (10:51 +0000)]
Initial tbl framework.  Parse point is in libroff, which keeps a
reference to a current tbl parse and routes ALL text into the tbl parse
after stripping reserved words and making block-level pre-processing
(e.g., `ig').  This is consistent with an analysis of embedded `TS/TE'
in manuals with sprinkled -mdoc, roff, and -man macros.

Fact of a parse is exposed to main.c by a return value (ROFF_TBL), which
will trigger main.c to add a foreign parsed body to the -mdoc or -man
parse stream.  This interface isn't in yet, but will follow the
parse-text functions in both libraries.  I put this login in main.c
because I don't want libroff calling directly into libmdoc or libman.

As a consequence, a parsed row can be pushed directly into any -mdoc or
-man context (put a `Bd -literal -offset indent' into a `TE/TS' block to
see why this is necessary).  It will then absorb formatting cues in the
front-ends.

A note on naming.  I decided on libroff.h instead of tbl.h because this
is purely within the roff layer.  Separate tbl implementations will
need, then, to interface with libroff.  This is "how it should be"
because tbl is tightly linked with roff in terms of `ds' and other
formatting macros, as well as, of course, special characters and other
roffisms.

14 years agoIn case an ID attribute is written in pieces, only protect the first
Ingo Schwarze [Mon, 27 Dec 2010 21:41:05 +0000 (21:41 +0000)]
In case an ID attribute is written in pieces, only protect the first
piece with a prepended 'x', not each piece, such that quoted and
unquoted .Sh, .Ss, and .Sx arguments are compatible with each other.
Fixing a bug reported by Nicolas Joly <njoly at NetBSD dot org>,
avoiding a regression in my first patch as pointed out by njoly as well.
"feel free to do so" kristaps@

14 years agoNote `Sx's connection to `Sh' and `Ss'.
Kristaps Dzonsons [Mon, 27 Dec 2010 20:39:46 +0000 (20:39 +0000)]
Note `Sx's connection to `Sh' and `Ss'.

14 years agoWhack MDOC_ACTED and MAN_ACTED (these no longer exist).
Kristaps Dzonsons [Sun, 26 Dec 2010 14:44:13 +0000 (14:44 +0000)]
Whack MDOC_ACTED and MAN_ACTED (these no longer exist).

14 years agopod2man re-writes this and that using `tr', which we don't implement. Noted
Kristaps Dzonsons [Sun, 26 Dec 2010 14:38:10 +0000 (14:38 +0000)]
pod2man re-writes this and that using `tr', which we don't implement.  Noted
by Andreas Vogele.

14 years agoAs pointed out by schwarze@, %T/%J renders with a normal double-quote, not
Kristaps Dzonsons [Sat, 25 Dec 2010 23:27:50 +0000 (23:27 +0000)]
As pointed out by schwarze@, %T/%J renders with a normal double-quote, not
the fancy double-quote.

14 years agoImplement schwarze@'s much more elegant version of my %T/%J fix.
Kristaps Dzonsons [Sat, 25 Dec 2010 23:25:53 +0000 (23:25 +0000)]
Implement schwarze@'s much more elegant version of my %T/%J fix.

14 years agoSpecifying both %T and %J in an `Rs' block causes the title to be quoted
Kristaps Dzonsons [Sat, 25 Dec 2010 13:50:37 +0000 (13:50 +0000)]
Specifying both %T and %J in an `Rs' block causes the title to be quoted
instead of underlined.  This only happens in -Tascii, as -T[x]html both
underlines and italicises.

14 years agoWhack superfluous font-family in mdocml's www style.css. Noted by
Kristaps Dzonsons [Fri, 24 Dec 2010 22:51:13 +0000 (22:51 +0000)]
Whack superfluous font-family in mdocml's www style.css.  Noted by
Anthony J. Bentley.  Thanks!

14 years agoMake `Fo' use a B instead of SPAN (left-over).
Kristaps Dzonsons [Fri, 24 Dec 2010 22:47:37 +0000 (22:47 +0000)]
Make `Fo' use a B instead of SPAN (left-over).

14 years agoHave Makefile build XHTML files too. VERSION_1_10_8
Kristaps Dzonsons [Fri, 24 Dec 2010 14:20:08 +0000 (14:20 +0000)]
Have Makefile build XHTML files too.

14 years agoApparently the U tag is deprecated, so use a SPAN instead (blah). Bump
Kristaps Dzonsons [Fri, 24 Dec 2010 14:14:00 +0000 (14:14 +0000)]
Apparently the U tag is deprecated, so use a SPAN instead (blah).  Bump
version date for release.

14 years agoAs per schwarze@'s suggestions, roll back the refcount structure in
Kristaps Dzonsons [Fri, 24 Dec 2010 14:00:40 +0000 (14:00 +0000)]
As per schwarze@'s suggestions, roll back the refcount structure in
favour of a simpler shim for normalised data in the node allocation and
free routines.  This removes the need to bump and copy references within
validator handlers, removes a pointer redirect, and also kills the
refcount structure itself.  Data is assumed to "live" either in a
MDOC_BLOCK or MDOC_ELEM and is copied accordingly.

14 years agoDrastically fix -T[x]html's handling of font-escape mode changes (i.e.,
Kristaps Dzonsons [Fri, 24 Dec 2010 00:46:49 +0000 (00:46 +0000)]
Drastically fix -T[x]html's handling of font-escape mode changes (i.e.,
using \fI or \fP).  Now, using these modes will cause a font to be
rendered for each word; furthermore, setting mode within a word will do
the correct thing.

Second, make -man use real font tags (B, I, SMALL) to set its font
instead of using font modes and fix up the pre-macro unsetting of the
current mode.

This fixes how roff.7 wasn't validating (<P> closing out a font mode)
and has been checked against gcc.1 (more will come).  I considered
failure to validate OUR manual to be a show-stopper for the up-coming
release.

14 years agoEnsure -Thtml has DIV as child of BLOCKQUOTE.
Kristaps Dzonsons [Thu, 23 Dec 2010 00:45:03 +0000 (00:45 +0000)]
Ensure -Thtml has DIV as child of BLOCKQUOTE.

14 years agoAdded last version notes and bumped version number and date.
Kristaps Dzonsons [Thu, 23 Dec 2010 00:30:20 +0000 (00:30 +0000)]
Added last version notes and bumped version number and date.

14 years agominor tweaks:
Ingo Schwarze [Wed, 22 Dec 2010 23:53:55 +0000 (23:53 +0000)]
minor tweaks:
1. improve .Bl wording (from jmc@)
2. jmc@ noted that the .Mt default (the same as in groff) makes no sense,
and there is no better default we could use; thus, regard it as
implementation dependent and do not document it
3. fix formatting of one COMPATIBILITY note: move "and" out of .Sx
ok kristaps@, jmc@

14 years agoAt the beginning of .Bl, .Sm is allowed,
Ingo Schwarze [Wed, 22 Dec 2010 22:05:38 +0000 (22:05 +0000)]
At the beginning of .Bl, .Sm is allowed,
and .Lp should cause a warning, not an error.
"I don't suppose I mind this." kristaps@

14 years agoBuild xhtml files for www site exemplaria.
Kristaps Dzonsons [Wed, 22 Dec 2010 11:58:02 +0000 (11:58 +0000)]
Build xhtml files for www site exemplaria.

14 years agoRevert IGNPAR to a warning after clue-stick applied by schwarze@:
Kristaps Dzonsons [Wed, 22 Dec 2010 11:38:17 +0000 (11:38 +0000)]
Revert IGNPAR to a warning after clue-stick applied by schwarze@:
although technically-speaking a lost macro is an error (e.g.,
MANDOCERR_MACRO), casting out some extra whitespace (note, IGNPAR only
happens in conditions where whitespace already exists!) is hardly an
error matter.

14 years agoImplement reference-counted version of original union mdoc_data. This
Kristaps Dzonsons [Wed, 22 Dec 2010 11:15:16 +0000 (11:15 +0000)]
Implement reference-counted version of original union mdoc_data.  This
simplifies clean-up and allows for more types without extra hassle.

Also made in-line literal types in -T[x]html use CODE instead of SPAN to
match how literal blocks use PRE.

14 years agoThrow out negative margin garbage in -man -T[x]html in favour of using
Kristaps Dzonsons [Wed, 22 Dec 2010 09:51:27 +0000 (09:51 +0000)]
Throw out negative margin garbage in -man -T[x]html in favour of using
TABLE and P and so on.  Now renders in text-based browsers.

14 years agoSync to OpenBSD:
Ingo Schwarze [Tue, 21 Dec 2010 01:46:44 +0000 (01:46 +0000)]
Sync to OpenBSD:
1) Now that growing buffers in main.c is safe, bring back the bugfix
distinguishing empty and undefined macros that was backed out in
the previous roff.c commit:  `de' initializes to "", not to NULL.
2) Roff only interpolates \* strings when the leading backslash is
not escaped; using optimizations suggested by joerg@ and kristaps@.
ok kristaps@

14 years agoSane behaviour for the growing of very small buffers:
Ingo Schwarze [Tue, 21 Dec 2010 01:22:03 +0000 (01:22 +0000)]
Sane behaviour for the growing of very small buffers:
Always grow at least to the minimum requested size.
Before this, a buffer of 1 byte was grown to 2 bytes,
which was too small and sometimes caused segfaults.
ok kristaps@

14 years agoClarify style inclusions and update release information.
Kristaps Dzonsons [Mon, 20 Dec 2010 13:57:49 +0000 (13:57 +0000)]
Clarify style inclusions and update release information.

14 years agoFix list-type being clobbered by margins. Last default styles in place.
Kristaps Dzonsons [Mon, 20 Dec 2010 13:39:24 +0000 (13:39 +0000)]
Fix list-type being clobbered by margins.  Last default styles in place.
Added `Sx' to be default-italic (as in OpenBSD's cvsweb).  Added `diag'
formatting, which had been lost.

14 years agoMore use default tags, this time I and U. Also fix a stack overflow
Kristaps Dzonsons [Mon, 20 Dec 2010 13:07:55 +0000 (13:07 +0000)]
More use default tags, this time I and U.  Also fix a stack overflow
segfault in the last commit.

14 years agoGive header and footer table cells default widths (using WIDTH and ALIGN
Kristaps Dzonsons [Mon, 20 Dec 2010 10:40:11 +0000 (10:40 +0000)]
Give header and footer table cells default widths (using WIDTH and ALIGN
atttributes) if no style is specified.

Give the default-bold elements a B tag instead of a SPAN tag, as this
can be overriden in the stylesheet.

Prune some unused attributes from html.h.

14 years agoMigrate schwarze@'s `Bk' argument patch to -T[x]html.
Kristaps Dzonsons [Sun, 19 Dec 2010 12:14:36 +0000 (12:14 +0000)]
Migrate schwarze@'s `Bk' argument patch to -T[x]html.

14 years agoHandle .Bk the same way as groff 1.20.1:
Ingo Schwarze [Sun, 19 Dec 2010 12:11:42 +0000 (12:11 +0000)]
Handle .Bk the same way as groff 1.20.1:
.Bk without arguments defaults to -words.
.Bk with invalid arguments (including -lines) has no effect.
ok kristaps@

14 years agoSync to the installed version in OpenBSD, excluding .ft documentation:
Ingo Schwarze [Sat, 18 Dec 2010 19:32:08 +0000 (19:32 +0000)]
Sync to the installed version in OpenBSD, excluding .ft documentation:
Be more careful to not confuse requests, macros and escape sequences.
Add more info at various places, including new SEE ALSO and HISTORY sections.
OK jmc@ kristaps@

14 years agoSync to OpenBSD: More precise description of .Xo, and don't talk
Ingo Schwarze [Sat, 18 Dec 2010 19:12:00 +0000 (19:12 +0000)]
Sync to OpenBSD: More precise description of .Xo, and don't talk
about deprecation, because there are cases were choosing .Xo or
backslash line continuation is merely a matter of taste, not a
difference in readability, and well-used .Xo is even slightly
more portable.
OK jmc@

14 years agoTweak default styles.
Kristaps Dzonsons [Fri, 17 Dec 2010 13:03:32 +0000 (13:03 +0000)]
Tweak default styles.

14 years agoDon't use EM for default widths; use BU instead.
Kristaps Dzonsons [Fri, 17 Dec 2010 12:57:49 +0000 (12:57 +0000)]
Don't use EM for default widths; use BU instead.

14 years agoMerged example.style.css into style.css. Adding version stuff.
Kristaps Dzonsons [Fri, 17 Dec 2010 11:42:14 +0000 (11:42 +0000)]
Merged example.style.css into style.css.  Adding version stuff.

14 years agoCorrectly labelled command-line as `Dl'.
Kristaps Dzonsons [Fri, 17 Dec 2010 11:41:45 +0000 (11:41 +0000)]
Correctly labelled command-line as `Dl'.

14 years agoPrevent double-printing of `D1' or `Dl' DIV.
Kristaps Dzonsons [Fri, 17 Dec 2010 11:19:42 +0000 (11:19 +0000)]
Prevent double-printing of `D1' or `Dl' DIV.

14 years agoCorrectly mark the examples as `Dl', not `D1'.
Kristaps Dzonsons [Fri, 17 Dec 2010 11:18:57 +0000 (11:18 +0000)]
Correctly mark the examples as `Dl', not `D1'.

14 years agoAdd a "list" top-level tag, too.
Kristaps Dzonsons [Fri, 17 Dec 2010 11:01:24 +0000 (11:01 +0000)]
Add a "list" top-level tag, too.

14 years agoRemove useless DIVs in favour of BRs. Fix `Ex' by having it print a prior
Kristaps Dzonsons [Fri, 17 Dec 2010 10:43:51 +0000 (10:43 +0000)]
Remove useless DIVs in favour of BRs.  Fix `Ex' by having it print a prior
BR.  Fix `Rv' by only having it print a BR if there's a prior.

14 years agoMake literal `Bd' use a PRE in -Thtml. Make `Bd' output in general use
Kristaps Dzonsons [Fri, 17 Dec 2010 10:37:26 +0000 (10:37 +0000)]
Make literal `Bd' use a PRE in -Thtml.  Make `Bd' output in general use
only a single DIV or PRE.  Tag all displays with display class.

14 years agoBanished -man -Thtml header and footer to example.style.css as well.
Kristaps Dzonsons [Fri, 17 Dec 2010 08:26:42 +0000 (08:26 +0000)]
Banished -man -Thtml header and footer to example.style.css as well.

14 years agoHave synopsis_pre() in -Thtml emit P or BR, not DIVs.
Kristaps Dzonsons [Fri, 17 Dec 2010 08:17:40 +0000 (08:17 +0000)]
Have synopsis_pre() in -Thtml emit P or BR, not DIVs.

Banish header and footer TABLE styling to example.style.css.

14 years agoMake SYNOPSIS `Nm' use a TABLE in -T[x]html mode. Also fix `Nd' using
Kristaps Dzonsons [Fri, 17 Dec 2010 01:02:00 +0000 (01:02 +0000)]
Make SYNOPSIS `Nm' use a TABLE in -T[x]html mode.  Also fix `Nd' using
desc-body instead of desc as its CSS key.

14 years agoSignificantly clean up Sh, Ss, SH, and SS handling in -Thtml. Now a
Kristaps Dzonsons [Fri, 17 Dec 2010 00:18:29 +0000 (00:18 +0000)]
Significantly clean up Sh, Ss, SH, and SS handling in -Thtml.  Now a
top-level DIV is used with only an H1 or H2 as the section header.  This
makes manuals much more readable in lynx, less complicated, and
relegates left-margin widths to example.style.css.

14 years agoSome default styles for lists. Needs more testing, but seems safe
Kristaps Dzonsons [Thu, 16 Dec 2010 23:23:34 +0000 (23:23 +0000)]
Some default styles for lists.  Needs more testing, but seems safe
enough.

14 years agoNote that we use CSS1, not CSS2.
Kristaps Dzonsons [Thu, 16 Dec 2010 23:07:01 +0000 (23:07 +0000)]
Note that we use CSS1, not CSS2.

Remove superfluous language in output-mode short description.

14 years agoGet widths to be propertly represented in -T[x]html.
Kristaps Dzonsons [Thu, 16 Dec 2010 22:57:20 +0000 (22:57 +0000)]
Get widths to be propertly represented in -T[x]html.

14 years agoMigrate `An' to use a pointer in its data, like everybody else. This is
Kristaps Dzonsons [Thu, 16 Dec 2010 17:14:48 +0000 (17:14 +0000)]
Migrate `An' to use a pointer in its data, like everybody else.  This is
the first step to having a simpler ref-counted system for "data"
associated with a node.

14 years agoRemove stray note on `i', which we no longer support.
Kristaps Dzonsons [Thu, 16 Dec 2010 11:23:08 +0000 (11:23 +0000)]
Remove stray note on `i', which we no longer support.

14 years agoNote that `Sh' and `Ss' are now rigorously checked for paragraph macros.
Kristaps Dzonsons [Thu, 16 Dec 2010 01:00:29 +0000 (01:00 +0000)]
Note that `Sh' and `Ss' are now rigorously checked for paragraph macros.
Merge other TODO regarding `It' and paragraphs.

14 years agoBack out last: apparently `Bl', `It', and `Pp' need a little bit more
Kristaps Dzonsons [Thu, 16 Dec 2010 00:57:50 +0000 (00:57 +0000)]
Back out last: apparently `Bl', `It', and `Pp' need a little bit more
study to see exactly what's legal and what's not.

14 years agoAllow `It' to have a trailing paragraph if the surrounding list is in
Kristaps Dzonsons [Thu, 16 Dec 2010 00:53:04 +0000 (00:53 +0000)]
Allow `It' to have a trailing paragraph if the surrounding list is in
compact mode.

14 years agoFirst, make `Pp' (next to `Sm') be allowed as the first element of a
Kristaps Dzonsons [Thu, 16 Dec 2010 00:25:35 +0000 (00:25 +0000)]
First, make `Pp' (next to `Sm') be allowed as the first element of a
`Bl' (before any `It' have been invoked).  Next, have the existence of
either macro raise a warning, as it's technically not legal according to
mdoc.7.

Second, delete any `Pp' as the first element of a `Bl' (i.e., before an
`It') ONLY when -compact has not been specified.  This matches with the
latest version of groff.  This deletion happens prior to the above
check, so double-warnings will not be issued.

14 years agoRemove `Pp' and `Lp' checks in front-ends to make sure we're not
Kristaps Dzonsons [Wed, 15 Dec 2010 23:44:02 +0000 (23:44 +0000)]
Remove `Pp' and `Lp' checks in front-ends to make sure we're not
printing as the first or last child of an `Ss' or `Sh': this is now
ensured within the validator.

14 years agoAdd a "last child" member of struct mdoc_node.
Kristaps Dzonsons [Wed, 15 Dec 2010 23:39:40 +0000 (23:39 +0000)]
Add a "last child" member of struct mdoc_node.

Remove `Pp' or `Lp' if it is the FIRST or LAST child of an `Sh' or `Sh' body.

Make "skipping paragraph" be an error, not a warning, as information (an
invoked macro) is ignored.

14 years agoAdd some more bits to CSS example.
Kristaps Dzonsons [Wed, 15 Dec 2010 17:21:24 +0000 (17:21 +0000)]
Add some more bits to CSS example.

14 years agoUse a single P tag for paragraph breaks (which can be configured for
Kristaps Dzonsons [Wed, 15 Dec 2010 17:19:41 +0000 (17:19 +0000)]
Use a single P tag for paragraph breaks (which can be configured for
paragraph breaking in CSS).

Use -man's handling of `sp' and `br', which accomodates for scaling
widths (-mdoc wasn't).

14 years agoMake sure that new list types don't emit whitespace before or after (we
Kristaps Dzonsons [Wed, 15 Dec 2010 16:35:21 +0000 (16:35 +0000)]
Make sure that new list types don't emit whitespace before or after (we
have to do this manually).

14 years agoClarifying styles.
Kristaps Dzonsons [Wed, 15 Dec 2010 16:22:22 +0000 (16:22 +0000)]
Clarifying styles.

14 years agoClarify purpose of "lit".
Kristaps Dzonsons [Wed, 15 Dec 2010 16:08:18 +0000 (16:08 +0000)]
Clarify purpose of "lit".

Make `Dl' and `D1' both use BLOCKQUOTE instead of DIVs.

14 years agoRemove stupid outer DIV tag in favour of regular BODY and HTML that can
Kristaps Dzonsons [Wed, 15 Dec 2010 15:59:23 +0000 (15:59 +0000)]
Remove stupid outer DIV tag in favour of regular BODY and HTML that can
be handled in CSS.

Clarified "lit" tag (will be the subject of future clarification).

Removed CSS2 note in mandoc.1, which is no longer the case.

14 years agoAdded list-type style tips.
Kristaps Dzonsons [Wed, 15 Dec 2010 15:32:01 +0000 (15:32 +0000)]
Added list-type style tips.

14 years agoIn-progress move from -T[x]html using DIVs for its lists to using DL,
Kristaps Dzonsons [Wed, 15 Dec 2010 14:52:16 +0000 (14:52 +0000)]
In-progress move from -T[x]html using DIVs for its lists to using DL,
OL, and UL.  Issue raised by Will Backman, solution proposed by
schwarze@.

14 years agoMake SYNOPSIS sections and code having .nr nS enabled
Ingo Schwarze [Sat, 11 Dec 2010 14:40:51 +0000 (14:40 +0000)]
Make SYNOPSIS sections and code having .nr nS enabled
behave as if the whole code were wrapped in .Bk/.Ek,
i.e. keeping input lines together on output lines.
This is compatible with new groff behaviour and deviates
from historical groff.
Tweaked version of a patch sent by kristaps@ on July 16, 2010.
ok kristaps@ jmc@ sobrado@ millert@

14 years agoAbort endless loops during roff macro and string expansion.
Ingo Schwarze [Fri, 10 Dec 2010 20:58:56 +0000 (20:58 +0000)]
Abort endless loops during roff macro and string expansion.
For now, use the simplest conceivable approach, like groff does:
Just a fixed, ugly input stack limit.
"check it in" kristaps@

14 years agodone: .de; todo: """"; loops in macro and string expansion
Ingo Schwarze [Thu, 9 Dec 2010 23:44:39 +0000 (23:44 +0000)]
done: .de; todo: """"; loops in macro and string expansion

14 years agoAllow quote macros (`Op', `Aq', `Bq', `Dq', `Pq', `Ql', `Qq', `Sq', and
Kristaps Dzonsons [Thu, 9 Dec 2010 10:32:22 +0000 (10:32 +0000)]
Allow quote macros (`Op', `Aq', `Bq', `Dq', `Pq', `Ql', `Qq', `Sq', and
`Brq') to have zero arguments without warning.  This makes sense because
the multi-line quote macros (`Oo/Oc' etc.) allow zero children anyway.
Furthermore, the documentation doesn't state that they're required to
have children.

Originally reported by Alex Kozlov, thanks!

14 years agoRemove `i' and `r' macro handlers. These macros, originally part of the
Kristaps Dzonsons [Wed, 8 Dec 2010 10:58:22 +0000 (10:58 +0000)]
Remove `i' and `r' macro handlers.  These macros, originally part of the
me package, aren't recognised by "groff -mandoc" so we don't need to do
so either.  Discussed on tech@ with schwarze@.

While at it, remove references to `b' in man.7.  As far as I know, this
was never supported anyway.

14 years agoTag an internal release, 1.10.7, that marks being in sync with OpenBSD's VERSION_1_10_7
Kristaps Dzonsons [Mon, 6 Dec 2010 17:07:28 +0000 (17:07 +0000)]
Tag an internal release, 1.10.7, that marks being in sync with OpenBSD's
changes these last months (less tbl).  There are still some issues that
require thought, but this extends beyond synchronisation.

This WILL NOT be pushed to the main site; it's merely a logical tag so
that there's a common fall-back in future changes.

Note that the TODO file is NOT up to date.  This is ok since the tag is
purely internal.

14 years agoBring schwarze@'s mandoc.h and main.c errors and warnings entirely in sync,
Kristaps Dzonsons [Mon, 6 Dec 2010 16:55:35 +0000 (16:55 +0000)]
Bring schwarze@'s mandoc.h and main.c errors and warnings entirely in sync,
except for the tbl one which will be the focus of later study.

14 years agoImport changes by schwarze@ and Jason McIntyre into manuals. These are
Kristaps Dzonsons [Mon, 6 Dec 2010 16:37:32 +0000 (16:37 +0000)]
Import changes by schwarze@ and Jason McIntyre into manuals.  These are
for the new libroff macros, the new libman macros, and for the sake of
general clarity.

Note that `ft' documentation is NOT included, as I've kept it in -man:
it's highly confusing to have it in roff.7 when it's not implemented for
both -man and -mdoc, as at least in theory, roff.7 should include only
macros recognised by BOTH formats.

14 years agoTypo: man_in_pre -> man_ign_pre for `ft'.
Kristaps Dzonsons [Mon, 6 Dec 2010 15:31:44 +0000 (15:31 +0000)]
Typo: man_in_pre -> man_ign_pre for `ft'.

14 years agoAdd support for `ft' macro found in groff(7). Based on a patch by
Kristaps Dzonsons [Mon, 6 Dec 2010 15:31:19 +0000 (15:31 +0000)]
Add support for `ft' macro found in groff(7).  Based on a patch by
schwarze@, but without the -T[x]html handling, which structurally does
not work.  Also add man.7 documentation (not in original patch).

14 years agoSmall merges from schwarze@'s man_html.c edits.
Kristaps Dzonsons [Mon, 6 Dec 2010 14:12:48 +0000 (14:12 +0000)]
Small merges from schwarze@'s man_html.c edits.

14 years agoLet some man_term.c cleanups bleed into man_html.c.
Kristaps Dzonsons [Mon, 6 Dec 2010 14:07:01 +0000 (14:07 +0000)]
Let some man_term.c cleanups bleed into man_html.c.

14 years agoMy favourite: removing lots of code in favour of smaller, tighter code.
Kristaps Dzonsons [Mon, 6 Dec 2010 14:04:11 +0000 (14:04 +0000)]
My favourite: removing lots of code in favour of smaller, tighter code.
Merge patch by schwarze@ consolidating RB, BR, etc. into one function.
man_html.c already does this.

14 years agoMake return(man_nmsg(...)) by a simple declaration.
Kristaps Dzonsons [Mon, 6 Dec 2010 13:56:56 +0000 (13:56 +0000)]
Make return(man_nmsg(...)) by a simple declaration.

Make non-uppercase warning only occur once.

Make scope-open-on-error warning only occur once.

14 years agoHeader for `PP', `P', and `LP' should never be printed.
Kristaps Dzonsons [Mon, 6 Dec 2010 13:53:07 +0000 (13:53 +0000)]
Header for `PP', `P', and `LP' should never be printed.

14 years agoAllow HP/IP/etc. to have no arguments, as they're optional. From a field-
Kristaps Dzonsons [Mon, 6 Dec 2010 13:50:41 +0000 (13:50 +0000)]
Allow HP/IP/etc. to have no arguments, as they're optional.  From a field-
tested patch by schwarze@.

14 years agoAllow multiple ELINE macros without raising a fatal error. From a field-
Kristaps Dzonsons [Mon, 6 Dec 2010 13:49:02 +0000 (13:49 +0000)]
Allow multiple ELINE macros without raising a fatal error.  From a field-
tested patch by schwarze@.

14 years agoTrack down a bug of empty `de XX' macros causing uncertain behaviour by
Kristaps Dzonsons [Mon, 6 Dec 2010 13:25:25 +0000 (13:25 +0000)]
Track down a bug of empty `de XX' macros causing uncertain behaviour by
returning empty strings in roff_getstrn() instead of NULL.  This caused
maddeningly irregular segfaults in the pod2man preamble for `de IX'.
But only on DEC alpha.

Also integrate the kinda-probably-safe assertion relaxation in term.c,
field-tested by schwarze@.  This allows ALL [unpreprocessed] base and
xenocara manuals for all BSD systems to run without segfault.

14 years agoMerge schwarze@'s relaxation of scope-breaking rules: allow implicit
Kristaps Dzonsons [Mon, 6 Dec 2010 11:01:19 +0000 (11:01 +0000)]
Merge schwarze@'s relaxation of scope-breaking rules: allow implicit
ending of scopes and drop stray scope-endings.

14 years agoRemove `Sp', `Vb', and `Ve' (as per schwarze@'s changes in OpenBSD),
Kristaps Dzonsons [Sun, 5 Dec 2010 16:14:16 +0000 (16:14 +0000)]
Remove `Sp', `Vb', and `Ve' (as per schwarze@'s changes in OpenBSD),
which are now accomodated for the new libroff modifications.