groff
[Top][All Lists]
Advanced

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

[Groff] Re: strange images in pic.ms


From: Gaius Mulley
Subject: [Groff] Re: strange images in pic.ms
Date: Wed, 25 Jul 2001 15:37:13 +0100

> pnmcut now cuts even worse than before in pic.ms (at least on my
> system with the current CVS).  There seems to be a systematical error
> somewhere.  Can you observe the same?  Do you know the reason for
> this?  Finally, can you fix it? :-)

Hi Werner,

I believe I've fixed this now with this patch. The problem was
to do with the paperlength in devps/DESC. If the paperlength was not
legal ie A4 then the parameters to png cut would have an incorrect
vertical offset added. Which would account for our friends across
the pond never submitting a bug report. :-)

Hope the patches meet with approval. NB I note that eqn inline equations
are failing..

Gaius


--- groff-cvs/src/preproc/html/pre-html.cc      Fri Jul 20 08:43:40 2001
+++ groff-html/src/preproc/html/pre-html.cc     Wed Jul 25 15:20:26 2001
@@ -58,7 +58,11 @@
 
 #define POSTSCRIPTRES          72000   // maybe there is a better way to find 
this? --fixme--
 #define DEFAULT_IMAGE_RES         80   // 80 pixels per inch resolution
-#define DEFAULT_VERTICAL_OFFSET   45   // DEFAULT_VERTICAL_OFFSET/72 of an inch
+#if defined(PAGEA4)
+#  define DEFAULT_VERTICAL_OFFSET  0   // DEFAULT_VERTICAL_OFFSET/72 of an inch
+#else
+#  define DEFAULT_VERTICAL_OFFSET 50   // DEFAULT_VERTICAL_OFFSET/72 of an inch
+#endif
 #define IMAGE_BOARDER_PIXELS       0
 #define MAX_WIDTH                  8   // inches
 #define INLINE_LEADER_CHAR      '\\'
--- groff-cvs/Makefile.in       Mon Jul 16 07:17:11 2001
+++ groff-html/Makefile.in      Wed Jul 25 14:39:52 2001
@@ -210,6 +210,7 @@
 # -DHAVE_STRUCT_EXCEPTION      if <math.h> defines struct exception
 # -DRETSIGTYPE=int             if signal handlers return int not void  
 # -DIS_EBCDIC_HOST             if the host's encoding is EBCDIC
+# address@hidden@                  the page size for your printer
 address@hidden@
 
 # Include fmod.o, strtol.o, getcwd.o, strerror.o, putenv.o in LIBOBJS if
--- groff-cvs/configure Mon Jul 16 03:08:51 2001
+++ groff-html/configure        Wed Jul 25 14:45:11 2001
@@ -803,6 +803,9 @@
 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
 echo >confdefs.h
 
+# put the paper description into confdefs.h
+echo '#define address@hidden@ 1' >>confdefs.h
+
 # Let the site file select an alternate cache file if it wants to.
 # Prefer explicitly selected file to automatically selected ones.
 if test -z "$CONFIG_SITE"; then

reply via email to

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