"troff is a very sophisticated system so doing this right would
be a lot of work. But, writing something to get rid of 90% of the
grunt work of conversion is pretty easy. Paul Dunne did one for the
ms macro set which you can find here but mm is different. As awk
was (and maybe still is) my favorite choice for one-shot "fix the
data" programs, it got called to duty to do the task. Here is what
I decided was worth it."