\" $NetBSD: doc2html,v 1.71 2020/01/23 23:52:13 uwe Exp $
\"
\" Copyright (c) 1998, 1999, 2008 The NetBSD Foundation, Inc.
\" All rights reserved.
\"
\" This code is derived from software contributed to The NetBSD Foundation
\" by Ross Harvey.
\"
\" Redistribution and use in source and binary forms, with or without
\" modification, are permitted provided that the following conditions
\" are met:
\" 1. Redistributions of source code must retain the above copyright
\"    notice, this list of conditions and the following disclaimer.
\" 2. Redistributions in binary form must reproduce the above copyright
\"    notice, this list of conditions and the following disclaimer in the
\"    documentation and/or other materials provided with the distribution.
\"
\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
\" PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
\" POSSIBILITY OF SUCH DAMAGE.
\"
ig

The first section of this package processes a large subset of the -mdoc macro
functions into HTML. All of the commonly used requests are implemented.

The second section implements -man (-man.old) macros. These are trivial
compared to -mdoc.

NOTES:
       The initial purpose of these macros is to support distrib/notes.
       It's very close, but not quite ready to do all of the man pages.

       See src/distrib/notes/Makefile.inc for important groff command
       examples. For HTML generation it is important to turn off overstrike
       modes with -P-b -P-u -P-o.


TODO:
       There are a few internal macros and other symbols that don't contain
       an embedded `-'.

       Need a tbl(1) command that generates html tables from tbl(1)
       input. (Partially written.) For now, we just switch into <pre>
       mode on .TS or .PS. Tbl input is very uncommon these days, anyway.
       (-mdoc has the .Bl -column list, which eliminates most requirements
       for tbl)

       We should probably end all the html pages with an upward
       pointing "contents" link, except right now there is nothing
       to point to.

       We need "intro" or "contents" pages for each man/man? (man/html?)
       section.

       WARNING! If you add a callable macro (or define an old one that
       was missing) it MUST have a doc2html@@ alias. (Scan for @@ to see.)
.