1
0
Fork
You've already forked troffxml
0
translate troff files to xml
  • XSLT 78.3%
  • C 10.8%
  • Roff 7.8%
  • Makefile 3.1%
Find a file
2025年07月18日 11:35:20 +02:00
demo Use more conventional paths. 2019年07月12日 23:22:56 +02:00
.gitignore Should be correct for most usages. 2012年07月17日 21:26:06 +02:00
LICENSE Use the simpler ISC license. 2018年04月10日 15:16:28 +02:00
makefile Use more conventional paths. 2019年07月12日 23:22:56 +02:00
postxml.c Use the simpler ISC license. 2018年04月10日 15:16:28 +02:00
prexml.c Use the simpler ISC license. 2018年04月10日 15:16:28 +02:00
README Switch to groff -Tutf8. 2018年04月14日 23:14:35 +02:00
troffxml.man Use manpage formatted by groff. 2018年04月14日 23:04:05 +02:00
utmac.ott Initial revision -- binary format. 2013年03月15日 21:57:21 +01:00
utofodt.xsl utofodt.xsl: format spanned columns in tables. 2025年07月18日 11:35:20 +02:00
utohtml.xsl The macros to index words are now KA, KN, etc. instead of LA, LN, etc. 2018年04月10日 11:18:10 +02:00

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.