M2H - me to html translator

M2h version 2.0 is a conversion tool for creating HTML3.2 documents from documents written using troff and the me macro package.

m2h.tar.gz contains the source code, a simple test program and the me version of the manual along with other needed stuff.

Most standard me macros and many troff requests are handled including (but not limited to): paragraphs, sections, displays, indices, delayed text, footnotes and font specification. Support is also provided for user and predefined strings, equations and tables, but not for user defined macros. The special HTML characters '<', '>', and '&' are escaped and can be used in the me document without problems. A local RIT extension to me (.FI) allows inclusion of xfig figures that m2h converts to inline gifs.

The HTML version of this document was produced from a troff/me version using m2h without any editing. The resulting HTML documents contains some minor HTML illegalities, but displayed to my satisfaction on a Netscape3.01 browser.

M2h is written in C and uses a scanner produced using lex. All source code is included, including the C version of the scanner (lex.c) for folk who don't have lex or don't want to mess with it. System dependencies and user configurable elements are defined in one file (defs.h) for ease of modification.