translate troff files to xml
- XSLT 78.3%
- C 10.8%
- Roff 7.8%
- Makefile 3.1%
| demo | Use more conventional paths. | |
| .gitignore | Should be correct for most usages. | |
| LICENSE | Use the simpler ISC license. | |
| makefile | Use more conventional paths. | |
| postxml.c | Use the simpler ISC license. | |
| prexml.c | Use the simpler ISC license. | |
| README | Switch to groff -Tutf8. | |
| troffxml.man | Use manpage formatted by groff. | |
| utmac.ott | Initial revision -- binary format. | |
| utofodt.xsl | utofodt.xsl: format spanned columns in tables. | |
| utohtml.xsl | The macros to index words are now KA, KN, etc. instead of LA, LN, etc. | |
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.