Skip to content

pjfichet/troffxml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Translate a troff document to xml using nroff.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published