tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

PostScript in mandoc now available.



Hi,

I notice that joerg@ just checked in the build glue for mdocml-1.10.2 in NetBSD. This is good news.

First, background.  When mandoc (nà mdocml) was first mentioned here,

http://mail-index.netbsd.org/tech-userlevel/2009/03/thread1.html#001766

one of the issues raised with missing PostScript functionality.

Under the auspices of Google's SoC, this is no longer the case: the checked-in version has support for PostScript output via -Tps. This stands alongside the existing outputs of the terminal (-Tascii), HTML (-Thtml), XHTML (-Txhtml), and linting (-Tlint).

At the moment, -Tps produces monospaced, font-styled output. Variable fonts are currently in development (as I work on parsing glyph widths and doing the unicode dance), along with a -Tpdf option to keep pace with -Tps. PDF support isn't technically part of the GSoC project, but it's related in terms of implementation space.

Anyway, invoking the PostScript driver is easy:

http://netbsd.gw.com/cgi-bin/man-cgi?mandoc++NetBSD-current

Please let me know, those of you who make heavy use of the current -Tps option to troff, whether there are any neat functions you'd like used, e.g., the option to output A4 instead of US-letter.

Kristaps "Mischka"

PS, mandoc was also discussed recently on undeadly, which may be of interest:

http://undeadly.org/cgi?action=article&sid=20100604082319&mode=expanded&count=19


Home | Main Index | Thread Index | Old Index