Hacker News new | past | comments | ask | show | jobs | submit login

Keep in mind, groff can itself generate HTML. I think it may need some pre- and post-processing to do it, though too, because (I think) what are links in the HTML version end up being footnotes in the pdf/ps version. Could be wrong about that, though.



The HTML from groff's HTML back-end is pretty much useless garbage.


Well, get into that code, and improve it! :-)


No thanks; that is broken by design. HTML is treated as a typesetter device, more or less, when what is needed is a semantic translation of the high level document structure.

As an analogy to another software system, you wouldn't want to generate HTML from LaTeX by processing the DVI file.

What is needed is the high level macros of a specific package being recognized and translated to HTML at a high level.

However hacky, the man2html program does that (and I made it work better: it has better support for handling more sophisticated macros, and is less buggy. I likely won't invest any more time into it, however, and I'm not going anywhere near groff).




Consider applying for YC's W25 batch! Applications are open till Nov 12.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: