The translation from LATEX towards others file formats is really needed when one write articles, and wish to spread them as widely as possible. HEVEA does these translations. This software has been programmed by M. Luc Maranget, and initially translate in HTML.
The goal of my stage was to improve and continue the developement of HEVEA. I had essentially added the output for text, info and mathML formats.
HEVEA does its job in one pass over the LATEX file, and writes the result with hardly no delay to the output. That makes it very fast, compared with its concurents, but also gives programmation constraints.
First, a common interface for all the output modules had to be set. The existing interface was fot HTML and was very dependant of that file format.
Then, the others formats could be implemented. The text format gives an all-formatted view of the text. Here we must take every format information and render them immediately in the output, from the paragraph management to the drawing of mathematical formulas, that uses array formatting.
The production of info files gives the possibility to write manuals. The whole formatting is done by the text mode, and we just have to add links and references.
Then I translated mathematics into mathML. This new standard, born with XML, will makes it easy to put formulas on the web, with their logical structure and an optimal rendering.