Translate a troff document to xml using nroff.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
demo
.gitignore
LICENSE
README
makefile
postxml.c
prexml.c
troffxml.man
utmac.ott
utofodt.xsl
utohtml.xsl

README

Troffxml - nroff processors to build xml files.
===============================================

Presentation
------------

Troffxml provides a solution to build an xml file from a troff
document that rely on nroff. A nroff macro (for example ux, from
utmac) is used to build a flat text of the document which contains
tags that a post-processor (postxml) will convert to xml. A
pre-processor (prexml) escapes these tags if they are present in the
source document.  A final xslt processor will translate the xml file
to a famous xml format.

	prexml < file.tr | groff -k -Tutf8 ‐mux | postxml > file.xml
	xsltproc utohtml.xsl file.xml > file.html
	xsltproc utofodt.xsl file.xml > file.fodt

Build and install
-----------------

To build and install run:

    make
    make install

To uninstall and clean, run:

    make uninstall
    make clean

License
-------

Prexml, postxml and their manual page are distributed under the ISC
license.