Search code examples
file-formathp-ux

A old text file with special format


I am working on HP-UX project, there are a old document. Can open it with vim, but there are some special character among text. For example:

.P
   "xxxxx"
.AL 1 10
.LI  "xxx"
.H 3 "xxxx"

It looks like html but not be html. Is it possible convert it to modern document?


Solution

  • Looks like troff. Install GNU troff (Groff) and try:

    groff -Thtml -pet -mm input.mm > output.html