From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <7359f0490601042345p5a4e1abdj1bb77f81cd87aa2f@mail.gmail.com> Date: Wed, 4 Jan 2006 23:45:07 -0800 From: Rob Pike To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu> Subject: Re: [9fans] htmlroff In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: Topicbox-Message-UUID: d20469be-ead0-11e9-9d60-3106f5b1d025 If I remember right - and I might not - I looked into an html driver or terminal type for troff, but gave up and did man2html instead, which took a radically smpler tack than ms2html and scored a little better overall but much worse in some cases. Don't you think a better long-term plan would be to abandon troff? -rob On 1/4/06, Russ Cox wrote: > Is anyone interested in hacking on a simple version > of troff that generates html? The idea is to implement > most of the troff base language and add primitives for > putting in raw html and watching to make sure tags get > matched properly. It's considerably simpler than troff > since one doesn't have to deal with the low-level details > of text layout, character widths, and so on. > > The idea is that then htmlroff could use the existing > macro packages more or less directly, perhaps with a > few small changes. It would replace both ms2html, > which works at a higher level, and troff2html, which > works at a lower level. It could format the manual > pages as well as the papers, and the resulting html > would actually look good and be easy to change > (just edit the macros). > > Completing the picture would be versions of pic, eqn, > and tbl that emit SVG, MathML, and HTML tables. > > I've started to cannibalize ms2html to build htmlroff, > but I really don't have much time to spend on it. > > Russ >