reassign 495713 groff-base 1.18.1.1-20
tags 495713 pending
thanks

On Fri, Aug 22, 2008 at 07:32:49AM +0200, Frank Lichtenheld wrote:
> On Wed, Aug 20, 2008 at 12:37:56AM +0100, Roger Leigh wrote:
> > <standard input>:55: warning: `PS' not defined
> > <standard input>:83: warning: `PE' not defined
> > <standard input>:119: warning: `.changes' not defined
> > 
> > It works fine for a tbl-using manual page, so perhaps it is a man-db
> > bug for pic.  I'm afraid I don't know enough about the man internals to
> > verify this, but it would probably be most appropriate to reassign to 
> > man-db.
> 
> Doing so.

It's actually a groff bug. tbl defines .TS and .TE to the empty string
in its output to avoid this problem, but pic doesn't do the same for .PS
and .PE, nor does eqn for .EQ and .EN. (I haven't checked the other
preprocessors yet since I should really be leaving for Steve's Debian
barbecue shortly ...)

The following patch fixes this for pic and eqn; I'll include it in my
next upload.

Index: src/preproc/eqn/main.cc
===================================================================
--- src/preproc/eqn/main.cc     (revision 2736)
+++ src/preproc/eqn/main.cc     (working copy)
@@ -352,6 +352,8 @@
     }
   init_table(device);
   init_char_table();
+  printf(".if !dEQ .ds EQ\n"
+        ".if !dEN .ds EN\n");
   printf(".if !'\\*(.T'%s' "
         ".if !'\\*(.T'html' "  // the html device uses `-Tps' to render
                                // equations as images
Index: src/preproc/pic/main.cc
===================================================================
--- src/preproc/pic/main.cc     (revision 2736)
+++ src/preproc/pic/main.cc     (working copy)
@@ -606,7 +606,11 @@
     out = make_fig_output();
   else
 #endif
+  {
     out = make_troff_output();
+    printf(".if !dPS .ds PS\n"
+          ".if !dPE .ds PE\n");
+  }
 #ifdef FIG_SUPPORT
   if (whole_file_flag) {
     if (optind >= argc)

Thanks,

-- 
Colin Watson                                       [EMAIL PROTECTED]



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to