emacs-pretest-bug
[Top][All Lists]
Advanced

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

Re: 'woman' can't format the ssh man page


From: James Cloos
Subject: Re: 'woman' can't format the ssh man page
Date: Mon, 18 Dec 2006 12:07:29 -0500
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/23.0.0 (gnu/linux)

>>>>> "RMS" == Richard Stallman <address@hidden> writes:

RMS> Can we make woman detect use of the doc macros
RMS> and give a meaningful error message?

Grog(1) (part of groff) uses this logic to guess -man macros:

    if:
      any line matches /^\.SH[\s\n]/
      and if any (other) line matches /^\.TH[\s\n]/
      and if no line matches /^\.([pnil]p|sh)[\s\n]/

    then:
      it uses an

It should be enough for woman to check for those (perl-style)
regexps.  At least for now.

For doc, if it is not an, e, om, s or m, and if any
line matches /^\.Dd/, then it is either doc or doc-old.

For after the 22 release, it would seem a good idea to convert the
full grog logic to elisp; I'm sure it would be useful to more than
just woman.


-JimC
-- 
James Cloos <address@hidden>         OpenPGP: 1024D/ED7DAEA6




reply via email to

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