Chuck Robey wrote:
I was told this is the best place to ask grohtml questions ... I'm
having
problems, The macro set I use is mm (please don't just tell me to
use ms, I
LIKE mm), but a fairly basic thing in there doesn't seem to be
working: the use
of the list macros, like the .AL/.LI/.LE things. What comes out
seems to be
missing any line break between the last piece of text *prior* to the
introduction of the list mark (like, for ".AL A", the "A". I've
tried to force
things by adding .br nor .sp, but can't get the break to show up,
and such a
list is useless.
Nobody has gone in and made the modifications to mm to work well with
grothml. One thing you could do is to add this to the beginning of
the AL definition:
.if '\\*[.T]'html' \{\
. ds mm:html:alclass decimal
. if '\\$1'A' .ds mm:html:alclass upper-alpha
. if '\\$1'a' .ds mm:html:alclass lower-alpha
. if '\\$1'I' .ds mm:html:alclass upper-roman
. if '\\$1'i' .ds mm:html:alclass lower-roman
. nop \\X^html:<ol style="list-style-type:\\*[mm:html:alclass]">^
.\}
You'll have to do similar modifications to .LI and .LE -- actually,
for .LE you'll have to create a stack of which type of list is active
(ul, ol, dl) and insert the proper closing tag. You can look at the
ms, man, and mwww macros to see how it was done. I think in a lot of
ways, mm would be easier to make work with grothml than ms was; there
are a lot of similarities between mm markup and HTML. I suppose more
people were using ms (and man, obviously) than mm, so that's where
the effort went.
If you need something quick, you might want to hunt down mm2html or
maybe troff2html and see if you can get acceptable results (piping
through HTML Tidy often helps a lot with that).
Hope this helps,
-- Larry