Feb 14, 2010
thwack (formerly trhack) is a typesetting engine software. It will accept troff input and produce either ditroff output or XSL-FO output. It is in early stages of development and is missing a significant number of features; however, development is progressing rapidly.thwack has interesting internals that make programming easy. It internally uses a SAX2-like interface, including namespace support, for parsing and converting data. Because of this interface, thwack can emit valid XML, even in troff mode, which may be useful for creating macro packages that emit DocBook, for example. It can also emit limited XSL-FO.Some fairly sensible but ugly output is available using the -me and -ms macros.
thwack does not include its own versions of macro packages; instead, it uses the groff versions.Planned features include XSL-FO input, full troff typesetting, and a shared library. Features being considered are PostScript and PDF output. Basic troff to XSL-FO output is considered the first milestone. Releases are made fairly frequently; we follow the motto "Release early, release often.What's New in This Release:· New features include additional correctness fixes, -me macros for DocBook, sourcing capabilities, more implemented requests, and a more functional compatibility mode.