1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
4 <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
5 <LINK REL="stylesheet" HREF="index.css" TYPE="text/css" MEDIA="all">
6 <TITLE>mdocml | mdoc macro compiler</TITLE>
10 <B>mdocml</B> – mdoc macro compiler
14 <A NAME="description">DESCRIPTION</A>
18 <SPAN CLASS="nm">mdocml</SPAN> is a suite of tools compiling <I><A HREF="mdoc.7.html">mdoc</A></I>, the roff macro
19 package of choice for BSD manual pages, and <I><A HREF="man.7.html">man</A></I>, the predominant historical package for
20 UNIX manuals. The mission of <SPAN CLASS="nm">mdocml</SPAN> is to deprecate <A
21 HREF="http://www.gnu.org/software/groff/" CLASS="external">groff</A>, the GNU troff implementation, for displaying <I>mdoc</I>
22 pages whilst providing token support for <I>man</I>.
26 Why? groff amounts to over 5 MB of source code, most of which is C++ and all of which is GPL. It runs slowly, produces
27 uncertain output, and varies in operation from system to system. mdocml strives to fix this (respectively small, C, <A
28 CLASS="external" HREF="http://www.isc.org/software/license">ISC</A>-licensed, fast and regular).
32 <SPAN CLASS="nm">mdocml</SPAN> consists of the <A HREF="mandoc.3.html">libmandoc</A> validating compiler and <A
33 HREF="mandoc.1.html">mandoc</A>, which interfaces with the compiler library to format output for UNIX terminals, XHTML,
34 HTML, PostScript, and PDF. It is a <A CLASS="external" HREF="http://bsd.lv/">BSD.lv</A> project.
38 <I>Disambiguation</I>: <SPAN CLASS="nm">mdocml</SPAN> is often referred to by its installed binary, <Q>mandoc</Q>.
42 <A NAME="sources">SOURCES</A>
46 <SPAN CLASS="nm">mdocml</SPAN> is in plain-old ANSI C and should build and run on any UNIX system. The most current
47 version is <SPAN CLASS="attn">@VERSION@</SPAN>, dated <SPAN class="attn">@VDATE@</SPAN>. If your system doesn't come
48 with <SPAN CLASS="nm">mdocml</SPAN> (see <Q>Downstream</Q>), run <CODE>make</CODE> to compile and <CODE>make
49 install</CODE> to install into <I>/usr/local</I>.
52 Note that <A HREF="mandoc-db.1.html">mandoc-db</A> is not yet linked to the build. You must run <CODE>make
53 mandoc-db</CODE> to build it.
60 <TABLE WIDTH="100%" SUMMARY="Current Sources">
65 <TD>Source archive</TD>
67 <A HREF="/snapshots/mdocml.tar.gz">/snapshots/mdocml.tar.gz</A>
68 (<A HREF="/snapshots/mdocml.md5">md5</A>)
72 <TD>Online source</TD>
74 <A HREF="http://mdocml.bsd.lv/cgi-bin/cvsweb/?cvsroot=mdocml">cvsweb</A>
84 <TABLE WIDTH="100%" SUMMARY="Downstream Sources">
89 <TD>DragonFly BSD</TD>
91 <A HREF="http://gitweb.dragonflybsd.org/dragonfly.git/tree/HEAD:/usr.bin/mandoc"
92 CLASS="external">usr.bin/mandoc</A>
98 <A HREF="http://www.freebsd.org/cgi/cvsweb.cgi/ports/textproc/mdocml/"
99 CLASS="external">ports/textproc/mdocml</A>
105 <A HREF="http://cvsweb.netbsd.org/bsdweb.cgi/src/external/bsd/mdocml/"
106 CLASS="external">src/external/bsd/mdocml</A>
112 <A HREF="http://www.openbsd.org/cgi-bin/cvsweb/src/usr.bin/mandoc/"
113 CLASS="external">src/usr.bin/mandoc</A>
123 <TABLE WIDTH="100%" SUMMARY="Archived Sources">
128 <TD>Source archive</TD>
130 <A HREF="/snapshots/">/snapshots/</A>
137 <A NAME="documentation">DOCUMENTATION</A>
141 These manuals are generated automatically and refer to the current snapshot.
144 <TABLE WIDTH="100%" SUMMARY="Documentation">
149 <TD VALIGN="top"><A HREF="mandoc.1.html">mandoc(1)</A></TD>
151 format and display UNIX manuals
153 (<A HREF="mandoc.1.txt">text</A> |
154 <A HREF="mandoc.1.xhtml">xhtml</A> |
155 <A HREF="mandoc.1.pdf">pdf</A> |
156 <A HREF="mandoc.1.ps">postscript</A>)
161 <TD VALIGN="top"><A HREF="mandoc.1.html">mandoc-db(1)</A></TD>
165 (<A HREF="mandoc-db.1.txt">text</A> |
166 <A HREF="mandoc-db.1.xhtml">xhtml</A> |
167 <A HREF="mandoc-db.1.pdf">pdf</A> |
168 <A HREF="mandoc-db.1.ps">postscript</A>)
173 <TD VALIGN="top"><A HREF="mandoc.3.html">mandoc(3)</A></TD>
175 mandoc macro compiler library
177 (<A HREF="mandoc.3.txt">text</A> |
178 <A HREF="mandoc.3.xhtml">xhtml</A> |
179 <A HREF="mandoc.3.pdf">pdf</A> |
180 <A HREF="mandoc.3.ps">postscript</A>)
185 <TD VALIGN="top"><A HREF="man.7.html">man(7)</A></TD>
187 man language reference
189 (<A HREF="man.7.txt">text</A> |
190 <A HREF="man.7.xhtml">xhtml</A> |
191 <A HREF="man.7.pdf">pdf</A> |
192 <A HREF="man.7.ps">postscript</A>)
197 <TD VALIGN="top"><A HREF="eqn.7.html">eqn(7)</A></TD>
199 eqn-mandoc language reference
201 (<A HREF="eqn.7.txt">text</A> |
202 <A HREF="eqn.7.xhtml">xhtml</A> |
203 <A HREF="eqn.7.pdf">pdf</A> |
204 <A HREF="eqn.7.ps">postscript</A>)
209 <TD VALIGN="top"><A HREF="mandoc_char.7.html">mandoc_char(7)</A></TD>
211 mandoc special characters
213 (<A HREF="mandoc_char.7.txt">text</A> |
214 <A HREF="mandoc_char.7.xhtml">xhtml</A> |
215 <A HREF="mandoc_char.7.pdf">pdf</A> |
216 <A HREF="mandoc_char.7.ps">postscript</A>)
221 <TD VALIGN="top"><A HREF="mdoc.7.html">mdoc(7)</A></TD>
223 mdoc language reference
225 (<A HREF="mdoc.7.txt">text</A> |
226 <A HREF="mdoc.7.xhtml">xhtml</A> |
227 <A HREF="mdoc.7.pdf">pdf</A> |
228 <A HREF="mdoc.7.ps">postscript</A>)
233 <TD VALIGN="top"><A HREF="roff.7.html">roff(7)</A></TD>
235 roff-mandoc language reference
237 (<A HREF="roff.7.txt">text</A> |
238 <A HREF="roff.7.xhtml">xhtml</A> |
239 <A HREF="roff.7.pdf">pdf</A> |
240 <A HREF="roff.7.ps">postscript</A>)
245 <TD VALIGN="top"><A HREF="tbl.7.html">tbl(7)</A></TD>
247 tbl-mandoc language reference
249 (<A HREF="tbl.7.txt">text</A> |
250 <A HREF="tbl.7.xhtml">xhtml</A> |
251 <A HREF="tbl.7.pdf">pdf</A> |
252 <A HREF="tbl.7.ps">postscript</A>)
260 <A NAME="contact">CONTACT</A>
264 Use the mailing lists for bug-reports, patches, questions, etc. (these require subscription). Please check the
265 <A HREF="http://mdocml.bsd.lv/cgi-bin/cvsweb/TODO?cvsroot=mdocml">TODO</A> for known issues
266 before posting. Beyond that, contact Kristaps at <A
267 HREF="http://mailhide.recaptcha.net/d?k=01M6h_w7twDp58ZgH57eWC_w==&c=Q2DBUt401ePlSeupJFrq_Q==" TITLE="Reveal
268 this e-mail address">kris...</A>@bsd.lv.
271 <TABLE WIDTH="100%" SUMMARY="Mailing Lists">
277 disc<A CLASS="external" TITLE="Reveal this e-mail address"
278 HREF="http://www.google.com/recaptcha/mailhide/d?k=01KQ80PFH5n3BBNpF5Gs4sRg==&c=EV1QytpQqTHSItc2IXvZyocgYLPnG5K0JKw_gwMC9yc=">...</A>@mdocml.bsd.lv
281 bug-reports, general questions, and announcements
282 <SMALL>(<A HREF="/archives/discuss/summary.html">archive</A>)</SMALL>
287 tec<A CLASS="external" TITLE="Reveal this e-mail address"
288 HREF="http://www.google.com/recaptcha/mailhide/d?k=01qDX_iV0RlUOarEvb6mR28g==&c=gRXsTjza0NNCFPaYu-Taj2tF0pmYZSc90EZkFkhkxgo=">...</A>@mdocml.bsd.lv
291 patches and system discussions
292 <SMALL>(<A HREF="/archives/tech/summary.html">archive</A>)</SMALL>
297 sou<A CLASS="external" TITLE="Reveal this e-mail address"
298 HREF="http://www.google.com/recaptcha/mailhide/d?k=01prQrAZhhl2EbIwVcRfABsQ==&c=KtTW4Yic9xk-8g40KzJoca4fR3MYXv28g8NC6OQV-T8=">...</A>@mdocml.bsd.lv
301 source commit messages
302 <SMALL>(<A HREF="/archives/source/summary.html">archive</A>)</SMALL>
309 <A NAME="news">NEWS</A>
313 04-04-2011: version 1.11.1
316 The earlier <I>libroff</I>, <I>libmdoc</I>, and <I>libman</I> soup have been merged into
317 a single library, <A HREF="mandoc.3.html">libmandoc</A>, which manages all aspects of
318 parsing real manuals (from line-handling to <A HREF="tbl.7.html">tbl</A> parsing).
321 Beyond this structural change, initial <A HREF="eqn.7.html">eqn</A> functionality is in
322 place. For the time being, this is limited to the recognition of equation blocks;
323 future version of <SPAN CLASS="nm">mdocml</SPAN> will expand upon this framework.
326 As usual, many general fixes and improvements have also occurred. In particular, a great
327 deal of redundancy and superfluous code has been removed with the merging of the backend
332 07-01-2011: version 1.10.9
335 Many back-end fixes have been implemented: argument handling (quoting), <A
336 HREF="man.7.html">man</A> improvements, error/warning classes, and many more.
339 Initial <A HREF="tbl.7.html">tbl</A> functionality (see the <Q>TS</Q>, <Q>TE</Q>, and
340 <Q>T&</Q> macros in the <A HREF="roff.7.html#x5c265453">roff</A> manual) has been
341 merged from <A CLASS="external" HREF="http://tbl.bsd.lv">tbl.bsd.lv</A>. Output is
342 still minimal, especially for <SPAN CLASS="flag">-Thtml</SPAN> and <SPAN
343 CLASS="flag">-Txhtml</SPAN>, but manages to at least display data. This means that <A
344 HREF="mandoc.1.html">mandoc</A> now has built-in support for two troff preprocessors via
345 <DEL>libroff</DEL>: soelim and tbl.
349 24-12-2010: version 1.10.8
352 Significant improvements merged from <A CLASS="external"
353 HREF="http://www.openbsd.org">OpenBSD</A> downstream, including
356 <LI>many new <A HREF="roff.7.html">roff</A> components,</LI>
357 <LI>in-line implementation of troff's soelim,</LI>
358 <LI>broken-block handling,</LI>
359 <LI>overhauled error classifications, and</LI>
360 <LI>cleaned up handling of error conditions.</LI>
363 Also overhauled the <SPAN CLASS="flag">-Thtml</SPAN> and <SPAN
364 CLASS="flag">-Txhtml</SPAN> output modes. They now display readable output in arbitrary
365 browsers, including text-based ones like <A CLASS="external"
366 HREF="http://lynx.isc.org">lynx</A>. See HTML and XHTML manuals in the <A
367 HREF="#documentation">DOCUMENTATION</A> section for examples. <SPAN
368 CLASS="attn">Attention: available style-sheet classes have been considerably
369 changed!</SPAN> See the <SPAN CLASS="file">example.style.css</SPAN> file for details.
370 Lastly, <DEL>libmdoc</DEL> and <DEL>libman</DEL> have been
371 cleaned up and reduced in size and complexity.
375 See <A HREF="http://mdocml.bsd.lv/cgi-bin/cvsweb/index.sgml?cvsroot=mdocml">cvsweb</A> for
380 Copyright © 2008–2011
381 <A CLASS="external" HREF="http://kristaps.bsd.lv">Kristaps Dzonsons</A>,
382 $Date: 2011/05/04 08:21:17 $