[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Groff-commit] groff ChangeLog contrib/eqn2graph/eqn2graph.man...
From: |
Eric S. Raymond |
Subject: |
[Groff-commit] groff ChangeLog contrib/eqn2graph/eqn2graph.man... |
Date: |
Mon, 29 Sep 2008 00:53:29 +0000 |
CVSROOT: /sources/groff
Module name: groff
Changes by: Eric S. Raymond <esr> 08/09/29 00:53:29
Modified files:
. : ChangeLog
contrib/eqn2graph: eqn2graph.man eqn2graph.sh
contrib/pic2graph: pic2graph.man pic2graph.sh
Log message:
Cope withnsaty convert(1) changes.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/groff/ChangeLog?cvsroot=groff&r1=1.1142&r2=1.1143
http://cvs.savannah.gnu.org/viewcvs/groff/contrib/eqn2graph/eqn2graph.man?cvsroot=groff&r1=1.4&r2=1.5
http://cvs.savannah.gnu.org/viewcvs/groff/contrib/eqn2graph/eqn2graph.sh?cvsroot=groff&r1=1.5&r2=1.6
http://cvs.savannah.gnu.org/viewcvs/groff/contrib/pic2graph/pic2graph.man?cvsroot=groff&r1=1.5&r2=1.6
http://cvs.savannah.gnu.org/viewcvs/groff/contrib/pic2graph/pic2graph.sh?cvsroot=groff&r1=1.7&r2=1.8
Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/groff/groff/ChangeLog,v
retrieving revision 1.1142
retrieving revision 1.1143
diff -u -b -r1.1142 -r1.1143
--- ChangeLog 28 Sep 2008 14:39:43 -0000 1.1142
+++ ChangeLog 29 Sep 2008 00:53:28 -0000 1.1143
@@ -1,3 +1,9 @@
+2008-09-28 Eric S. Raymond <address@hidden>
+
+ * contrib/pic2graph, contrib/pic2graph.man, contrib/eqn2graph,
+ contrib/eqn2graph.man: Tweak scripts to cope with incompatible
+ changes in ImageMagick crop options. Document the bugs.
+
2008-09-28 Werner LEMBERG <address@hidden>
If a macro is called as a string, inherit value of \n[.br] from the
Index: contrib/eqn2graph/eqn2graph.man
===================================================================
RCS file: /sources/groff/groff/contrib/eqn2graph/eqn2graph.man,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- contrib/eqn2graph/eqn2graph.man 28 Oct 2003 07:46:23 -0000 1.4
+++ contrib/eqn2graph/eqn2graph.man 29 Sep 2008 00:53:29 -0000 1.5
@@ -1,4 +1,4 @@
-.\" $Id: eqn2graph.man,v 1.4 2003/10/28 07:46:23 wlemb Exp $
+.\" $Id: eqn2graph.man,v 1.5 2008/09/29 00:53:29 esr Exp $
.\" This documentation is released to the public domain.
.
.
@@ -37,11 +37,14 @@
macros; nor do you need to have dollar-sign or other delimiters
around the equation.
.P
-The output image will be a black-on-white graphic clipped to the
-smallest possible bounding box that contains all the black pixels.
+The output image will be clipped to the smallest possible bounding box
+that contains all the black pixels. Older versions of
+.BR convert (1)
+will produce a black-on-white graphic; newer ones may produce a
+black-on-transparent graphic.
By specifying command-line options to be passed to
.BR convert (1)
-you can give it a border, set the background transparent, set the
+you can give it a border, force the background transparent, set the
image's pixel density, or perform other useful transformations.
.P
This program uses
@@ -98,6 +101,24 @@
.BR /tmp .
.
.
+.SH BUGS
+Due to changes in the behavior of ImageMagick
+.BR convert (1)
+that are both forward and backward-incompatible,
+mismatches between your
+.B eqn2graph
+and
+.BR convert (1)
+versions may produce zero-sized or untrimmed output images.
+For this version of
+.B eqn2graph
+you will need a version of
+.BR convert (1)
+that supports the \fB-trim\fR option; older versions of
+.B eqn2graph
+used \fB-crop 0x0\fR, which no longer has trimming behavior.
+.
+.
.SH "SEE ALSO"
.BR pic2graph (@MAN1EXT@),
.BR grap2graph (@MAN1EXT@),
Index: contrib/eqn2graph/eqn2graph.sh
===================================================================
RCS file: /sources/groff/groff/contrib/eqn2graph/eqn2graph.sh,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -b -r1.5 -r1.6
--- contrib/eqn2graph/eqn2graph.sh 18 May 2005 07:03:06 -0000 1.5
+++ contrib/eqn2graph/eqn2graph.sh 29 Sep 2008 00:53:29 -0000 1.6
@@ -32,7 +32,7 @@
#
# Thus, we pass -U to groff(1), and everything else to convert(1).
#
-# $Id: eqn2graph.sh,v 1.5 2005/05/18 07:03:06 wl Exp $
+# $Id: eqn2graph.sh,v 1.6 2008/09/29 00:53:29 esr Exp $
#
groff_opts=""
convert_opts=""
@@ -85,7 +85,7 @@
read equation
(echo ".EQ"; echo 'delim $$'; echo ".EN"; echo '$'"$equation"'$') | \
groff -e $groff_opts -Tps -P-pletter > $tmp/eqn2graph.ps \
- && convert -trim -crop 0x0 $convert_opts $tmp/eqn2graph.ps
$tmp/eqn2graph.$format \
+ && convert -trim $convert_opts $tmp/eqn2graph.ps $tmp/eqn2graph.$format
\
&& cat $tmp/eqn2graph.$format
# End
Index: contrib/pic2graph/pic2graph.man
===================================================================
RCS file: /sources/groff/groff/contrib/pic2graph/pic2graph.man,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -b -r1.5 -r1.6
--- contrib/pic2graph/pic2graph.man 28 Oct 2003 07:46:24 -0000 1.5
+++ contrib/pic2graph/pic2graph.man 29 Sep 2008 00:53:29 -0000 1.6
@@ -1,4 +1,4 @@
-.\" $Id: pic2graph.man,v 1.5 2003/10/28 07:46:24 wlemb Exp $
+.\" $Id: pic2graph.man,v 1.6 2008/09/29 00:53:29 esr Exp $
.\" This documentation is released to the public domain.
.TH PIC2GRAPH @MAN1EXT@ "@MDATE@" "Groff Version @VERSION@"
.IX pic2graph
@@ -46,11 +46,14 @@
.BR groff (@MAN1EXT@)
macros.
.P
-The output image will be a black-on-white graphic clipped to the
-smallest possible bounding box that contains all the black pixels.
+The output image will be clipped to the smallest possible bounding box
+that contains all the black pixels. Older versions of
+.BR convert (1)
+will produce a black-on-white graphic; newer ones may produce a
+black-on-transparent graphic.
By specifying command-line options to be passed to
.BR convert (1)
-you can give it a border, set the background transparent, set the
+you can give it a border, force the background transparent, set the
image's pixel density, or perform other useful transformations.
.P
This program uses
@@ -122,6 +125,24 @@
.BR /tmp .
.
.
+.SH BUGS
+Due to changes in the behavior of ImageMagick
+.BR convert (1)
+that are both forward and backward-incompatible,
+mismatches between your
+.B pic2graph
+and
+.BR convert (1)
+versions may produce zero-sized or untrimmed output images.
+For this version of
+.B pic2graph
+you will need a version of
+.BR convert (1)
+that supports the \fB-trim\fR option; older versions of
+.B pic2graph
+used \fB-crop 0x0\fR, which no longer has trimming behavior.
+.
+.
.SH "SEE ALSO"
.BR eqn2graph (@MAN1EXT@),
.BR grap2graph (@MAN1EXT@),
Index: contrib/pic2graph/pic2graph.sh
===================================================================
RCS file: /sources/groff/groff/contrib/pic2graph/pic2graph.sh,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -b -r1.7 -r1.8
--- contrib/pic2graph/pic2graph.sh 18 May 2005 07:03:07 -0000 1.7
+++ contrib/pic2graph/pic2graph.sh 29 Sep 2008 00:53:29 -0000 1.8
@@ -32,7 +32,7 @@
# We don't have complete option coverage on eqn because this is primarily
# intended as a pic translator; we can live with eqn defaults.
#
-# $Id: pic2graph.sh,v 1.7 2005/05/18 07:03:07 wl Exp $
+# $Id: pic2graph.sh,v 1.8 2008/09/29 00:53:29 esr Exp $
#
groffpic_opts=""
gs_opts=""
@@ -95,7 +95,7 @@
# 4. Use convert(1) to crop the PostScript and turn it into a bitmap.
(echo ".EQ"; echo $eqndelim; echo ".EN"; echo ".PS"; cat; echo ".PE") | \
groff -e -p $groffpic_opts -Tps -P-pletter > $tmp/pic2graph.ps \
- && convert -trim -crop 0x0 $convert_opts $tmp/pic2graph.ps
$tmp/pic2graph.$format \
+ && convert -trim $convert_opts $tmp/pic2graph.ps $tmp/pic2graph.$format \
&& cat $tmp/pic2graph.$format
# End
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Groff-commit] groff ChangeLog contrib/eqn2graph/eqn2graph.man...,
Eric S. Raymond <=