groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: <OK> Re: [Groff] gro html problem


From: Mike Bianchi
Subject: Re: <OK> Re: [Groff] gro html problem
Date: Thu, 10 Dec 2009 09:15:37 -0500
User-agent: Mutt/1.5.17+20080114 (2008-01-14)

Chuck Robey:

Please send a specific example, including the commmand lines you use.

I'll take a look.
                                                        Mike Bianchi

On Wed, Dec 09, 2009 at 11:05:35PM -0500, Larry Kollar wrote:
> 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

-- 
 Mike Bianchi
 Foveal Systems

 973 822-2085   call to arrange Fax

 address@hidden
 http://www.AutoAuditorium.com
 http://www.FovealMounts.com




reply via email to

[Prev in Thread] Current Thread [Next in Thread]