Google SoC, mandoc, and PostScript
Kristaps Dzonsons <kristaps <at> bsd.lv>
2010-05-03 20:26:07 GMT
This mail introduces another GSoC project: adding postscript output to
mandoc ("mandoc -Tps"), http://mdocml.bsd.lv/. My mentors are T Klauser
(wiz <at> ), J Sonnenberger (joerg <at> ), and D Baron (dillo <at> ). A copy of the
proposal, edited for brevity, is included below. It has details. The
"mandoc -Tps is missing. While mandoc is fast becoming
byte-compatible with GNU troff for terminal output (-Tascii)
and has advanced X/HTML output (-Thtml, -Txhtml), there does
not yet exist PostScript output (-Tps). I propose implementing
-Tps, initially as a shim over terminal output, then, with this
milestone complete, bringing in more typographic awareness
(variable-font, justification, etc.)."
The project will involve an initial implementation of the driver
(1,5/2,0 months), then focus on typography (1,5/1,0 months). In my
experience, most of the first part will be spent hair-pulling regarding
lists (cf. mdoc_term.c, mdoc_html.c in mandoc).
If I finish ahead of time, I plan on adding -Tpdf, although this is
beyond the scope of GSoC. I'll be calling upon Dieter's expertise to
pull this part off.
Prior to SoC, I'll add initial typographic cues, such as for sentential
spacing, which must occur before AST serialisation This will relieve
front-ends of considerable complexity (see, e.g., the OpenBSD local
patches for EOS spacing).