OBS User unknown 2007-07-27 00:12:53 +00:00 committed by Git OBS Bridge
parent f2da2c0808
commit 702a5826d9
5 changed files with 409 additions and 105 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:912c31e0df9c0f26a6ee545e7cb9bccdf9d36183f86718ed2df9c93f61eaf05c
size 268312

View File

@ -17,28 +17,36 @@
SUBDIRS = fig2dev transfig
MakeSubdirs($(SUBDIRS))
--- doc/manual/Makefile
+++ doc/manual/Makefile 2006-07-31 18:26:56.000000000 +0200
+++ doc/manual/Makefile 2007-07-24 17:30:26.607457923 +0200
@@ -2,7 +2,7 @@
# TransFig makefile
#
-all: trans.tex
+all: trans.tex manual.ps
+all: trans.tex manual.pdf
# translation into latex
@@ -11,3 +11,8 @@ trans.tex: trans.fig Makefile
clean::
@@ -12,3 +12,16 @@ clean::
rm -f trans.tex
cleandir::
+
+manual.ps: manual.dvi
+ dvips -o $@ $^
+
+manual.dvi: manual.tex trans.tex
+ latex manual.tex; latex manual.tex; latex manual.tex
+ latex manual.tex
+ latex manual.tex
+ latex manual.tex
+
+manual.pdf: manual.tex trans.tex
+ pdflatex manual.tex
+ pdflatex manual.tex
+ pdflatex manual.tex
--- fig2dev/Imakefile
+++ fig2dev/Imakefile 2006-07-31 19:08:56.000000000 +0200
@@ -20,13 +20,13 @@ XCOMM ******
+++ fig2dev/Imakefile 2007-07-24 17:04:29.213266602 +0200
@@ -34,7 +34,7 @@ XCOMM ******
XCOMM You should point XFIGLIBDIR to the same directory you did when you compiled
XCOMM and installed xfig.
@ -46,15 +54,8 @@
+XFIGLIBDIR = $(LIBDIR)/xfig
XCOMM ******
XCOMM If your system has the strerror() function (doesn't have sys_errlist) then
XCOMM comment out NEED_STRERROR with an XCOMM comment.
-NEED_STRERROR = -DNEED_STRERROR
+XCOMM NEED_STRERROR = -DNEED_STRERROR
XCOMM The following probably only applies to Windows 9x/NT:
XCOMM If your system can open files in text and binary modes and has the
@@ -39,7 +39,7 @@ XCOMM Uncomment the following line if yo
XCOMM If your system doesn't have the strerror() function (has sys_errlist) then
@@ -53,7 +53,7 @@ XCOMM Uncomment the following line if yo
XCOMM inline functions. With the "INLINE" keyword, you should notice that
XCOMM the display will be a bit faster in complex figures
@ -63,16 +64,7 @@
XCOMM ****************
XCOMM Change RGB if necessary, to point to your rgb.txt color database
@@ -73,7 +73,7 @@ XCOMM Change XPMLIBDIR if necessary to p
XCOMM Change XPMINC if necessary to point to the include file for xpm (xpm.h)
XCOMM
-XCOMM #define USEXPM
+#define USEXPM
#ifdef USEXPM
XPMLIBDIR = $(USRLIBDIR)
@@ -82,11 +82,11 @@ XPMINC = -I/usr/include/X11
@@ -97,11 +97,11 @@ XPMINC = -I/usr/include/X11
XCOMM ****************
XCOMM Uncomment the following to set default paper size to A4
@ -86,7 +78,7 @@
XCOMM ****************
XCOMM Comment out the DDNFSS = ... line if you don't want NFSS2 font selection
@@ -102,6 +102,7 @@ XCOMM probably want to include neither.
@@ -117,6 +117,7 @@ XCOMM probably want to include neither.
DDNFSS = -DNFSS
DDLATEX2E_GRAPHICS = -DLATEX2E_GRAPHICS
@ -94,35 +86,16 @@
XCOMM DDEPSFIG = -DEPSFIG
XCOMM ****************
@@ -126,23 +127,23 @@ XCOMM Comment out the next line if you h
@@ -141,7 +142,7 @@ XCOMM Comment out the next line if you h
#ifdef I18N
I18N_DEFS = -DI18N
-FIG2DEV_LIBDIR = /usr/local/lib/fig2dev
+FIG2DEV_LIBDIR = $(XFIGLIBDIR)/fig2dev
I18N_DEV_DEFS = $(I18N_DEFS) -DFIG2DEV_LIBDIR=\\\"$(FIG2DEV_LIBDIR)\\\"
I18N_DEV_DEFS = $(I18N_DEFS) -DFIG2DEV_LIBDIR=$(FIG2DEV_LIBDIR) -DFIG2DEV_LIBDIR_STR=\\\"$(FIG2DEV_LIBDIR)\\\"
install::
[ -d $(DESTDIR)$(FIG2DEV_LIBDIR) ] || mkdir $(DESTDIR)$(FIG2DEV_LIBDIR)
- $(INSTALL) -c dev/japanese.ps $(DESTDIR)$(FIG2DEV_LIBDIR)
+ $(INSTALL) -m644 dev/japanese.ps $(DESTDIR)$(FIG2DEV_LIBDIR)
( cd $(DESTDIR)$(FIG2DEV_LIBDIR); \
rm -f ja.ps ja_JP.ps ja_JP.ujis.ps ja_JP.eucJP.ps ja_JP.EUC.ps; \
$(LN) japanese.ps ja.ps; $(LN) japanese.ps ja_JP.ps; \
$(LN) japanese.ps ja_JP.ujis.ps; $(LN) japanese.ps ja_JP.eucJP.ps; \
$(LN) japanese.ps ja_JP.EUC.ps )
- $(INSTALL) -c dev/korean.ps $(DESTDIR)$(FIG2DEV_LIBDIR)
+ $(INSTALL) -m644 dev/korean.ps $(DESTDIR)$(FIG2DEV_LIBDIR)
( cd $(DESTDIR)$(FIG2DEV_LIBDIR); \
rm -f ko.ps ko_KR.ps ko_KR.eucKR.ps ko_KR.EUC.ps; \
$(LN) korean.ps ko.ps; $(LN) korean.ps ko_KR.ps; \
$(LN) korean.ps ko_KR.eucKR.ps; $(LN) korean.ps ko_KR.EUC.ps )
- $(INSTALL) -c dev/cs_CZ.ps $(DESTDIR)$(FIG2DEV_LIBDIR)
+ $(INSTALL) -m644 dev/cs_CZ.ps $(DESTDIR)$(FIG2DEV_LIBDIR)
( cd $(DESTDIR)$(FIG2DEV_LIBDIR); \
rm -f hr_HR.ps hu_HU.ps pl_PL.ps ro_RO.ps sk_SK.ps sl_SI.ps; \
$(LN) cs_CZ.ps hr_HR.ps; $(LN) cs_CZ.ps hu_HU.ps; \
@@ -154,7 +155,7 @@ XCOMM **********************************
#endif /* I18N */
@@ -150,7 +151,7 @@ XCOMM **********************************
XCOMM *** You shouldn't have to change anything below this point ***
XCOMM **************************************************************
@ -131,7 +104,7 @@
#ifdef USEPNG
DUSEPNG = -DUSE_PNG
@@ -233,7 +234,7 @@ install::
@@ -229,7 +230,7 @@ install::
else (set -x; $(MKDIRHIER) $(DESTDIR)$(XFIGLIBDIR)/bitmaps ); fi ; \
echo Copying bitmap files for tk to $(DESTDIR)$(XFIGLIBDIR)/bitmaps ; \
for f in * ; do \
@ -141,8 +114,8 @@
install.all::
--- fig2dev/fig2dev.c
+++ fig2dev/fig2dev.c 2006-07-31 18:26:56.000000000 +0200
@@ -24,14 +24,20 @@
+++ fig2dev/fig2dev.c 2007-07-24 17:08:44.764538926 +0200
@@ -24,6 +24,7 @@
#include <sys/types.h>
#endif
#include <sys/file.h>
@ -150,7 +123,9 @@
#include "fig2dev.h"
#include "alloc.h"
#include "object.h"
#include "drivers.h"
@@ -31,9 +32,14 @@
#include "bound.h"
#include "read.h"
+#ifndef __GLIBC__
extern int fig_getopt();
@ -162,8 +137,8 @@
+#endif
char lang[40];
int parse_gridspec();
@@ -345,6 +351,7 @@ char *argv[];
static void grid_usage();
@@ -378,6 +384,7 @@ char *argv[];
F_compound objects;
int status;
@ -172,17 +147,16 @@
setmode(1,O_BINARY); /* stdout is binary */
#endif
--- fig2dev/fig2dev.h
+++ fig2dev/fig2dev.h 2006-07-31 18:26:56.000000000 +0200
@@ -22,7 +22,7 @@
+++ fig2dev/fig2dev.h 2007-07-24 17:09:55.464084114 +0200
@@ -22,6 +22,7 @@
#include <sys/file.h>
#include <signal.h>
#include <string.h>
-#include <varargs.h>
+#include <stdarg.h>
#include <pwd.h>
#include <errno.h>
#include <time.h>
@@ -57,7 +57,7 @@ typedef char Boolean;
@@ -56,7 +57,7 @@ typedef char Boolean;
#ifndef X_NOT_STDC_ENV
# include <string.h>
#else
@ -221,7 +195,7 @@
/*
* get option letter from argument vector
*/
@@ -94,4 +97,10 @@ fig_getopt(nargc,nargv,ostr)
@@ -95,4 +98,10 @@ fig_getopt(nargc,nargv,ostr)
}
return(optopt); /* dump back option letter */
}
@ -234,7 +208,7 @@
+}
+#endif
--- fig2dev/dev/genps.c
+++ fig2dev/dev/genps.c 2006-07-31 18:26:56.000000000 +0200
+++ fig2dev/dev/genps.c 2007-07-24 17:15:35.828409372 +0200
@@ -37,6 +37,8 @@
*/
@ -242,20 +216,22 @@
+#include <locale.h>
+#include <langinfo.h>
#include "fig2dev.h"
#include "figure.h"
#include "object.h"
@@ -803,23 +805,45 @@ F_compound *objects;
#include "bound.h"
@@ -809,25 +811,46 @@ F_compound *objects;
fprintf(tfp, "%s\n", SPLINE_PS);
#ifdef I18N
if (support_i18n && iso_text_exist(objects)) {
- char *libdir, *locale;
+ char *libdir, *locale, *codeset;
char localefile[512], str[512];
FILE *fp;
+ size_t llen;
FILE *fp;
libdir = getenv("FIG2DEV_LIBDIR");
#ifdef FIG2DEV_LIBDIR_STR
if (libdir == NULL)
libdir = FIG2DEV_LIBDIR;
libdir = FIG2DEV_LIBDIR_STR;
#endif
- locale = getenv("LANG");
+ locale = setlocale(LC_CTYPE, NULL);
+ llen = strcspn(locale, ".@");
@ -265,15 +241,13 @@
locale = "C";
}
- sprintf(localefile, "%s/%s.ps", libdir, locale);
+
+ snprintf(localefile, sizeof(localefile)-1, "%s/%s.ps", libdir, locale);
/* get filename like ``/usr/local/lib/fig2dev/japanese.ps'' */
fp = fopen(localefile, "rb");
- if (fp == NULL) {
- fprintf(stderr, "fig2dev: can't open file: %s\n", localefile);
- } else {
+ if (fp == NULL)
+ fprintf(stderr, "fig2dev: A can't open file: %s\n", localefile);
fprintf(stderr, "fig2dev: can't open file: %s\n", localefile);
- } else {
+
+ if (fp == NULL && strlen(locale) != llen) {
+ locale[llen] = '\0';
@ -292,13 +266,13 @@
+ fprintf(stderr, "fig2dev: C can't open file: %s\n", localefile);
+ }
+
+ if (fp) {
+ if (fp) {
while (fgets(str, sizeof(str), fp)) {
if (strstr(str, "CompositeRoman")) enable_composite_font = True;
fputs(str, tfp);
--- fig2dev/dev/genpstex.c
+++ fig2dev/dev/genpstex.c 2006-07-31 18:26:56.000000000 +0200
@@ -62,10 +62,13 @@ extern void
@@ -64,10 +64,13 @@ extern void
genps_spline (),
genlatex_option (),
genlatex_text (),
@ -315,42 +289,32 @@
static char pstex_file[1000] = "";
--- fig2dev/dev/gensvg.c
+++ fig2dev/dev/gensvg.c 2006-07-31 18:26:56.000000000 +0200
@@ -692,18 +692,18 @@ gensvg_text (t)
if (t->angle != 0) {
fprintf (tfp, "<g transform=\"translate(%d,%d) rotate(%d)\" >\n",
(int) (t->base_x * mag), (int) (t->base_y * mag), degrees (t->angle));
- fprintf (tfp, "<text x=\"0\" y=\"0\" fill=\"#%6.6x\" font-family=\"%s\"
- font-style=\"%s\" font-weight=\"%s\" font-size=\"%d\" text-anchor=\"%s\" >\n",
- rgbColorVal (t->color), family[(int) ceil ((t->font + 1) / 4)],
+ fprintf (tfp, "<text x=\"0\" y=\"0\" fill=\"#%6.6x\" font-family=\"%s\" ",
+ rgbColorVal (t->color), family[(int) ceil ((t->font + 1) / 4)]);
+ fprintf (tfp, "font-style=\"%s\" font-weight=\"%s\" font-size=\"%d\" text-anchor=\"%s\" >\n",
(t->font % 2 == 0 ? "normal" : "italic"),
(t->font % 4 < 2 ? "normal" : "bold"), (int) (ceil (t->size * 12 * mag)),
anchor[t->type]);
+++ fig2dev/dev/gensvg.c 2007-07-24 17:21:49.508282277 +0200
@@ -802,9 +802,11 @@ gensvg_text (t)
x, y, degrees (t->angle));
x = y = 0;
}
else
- fprintf (tfp, "<text x=\"%d\" y=\"%d\" fill=\"#%6.6x\" font-family=\"%s\"
- font-style=\"%s\" font-weight=\"%s\" font-size=\"%d\" text-anchor=\"%s\" >\n",
+ fprintf (tfp, "<text x=\"%d\" y=\"%d\" fill=\"#%6.6x\" font-family=\"%s\" ",
(int) (t->base_x * mag), (int) (t->base_y * mag), rgbColorVal (t->color),
- family[(int) ceil ((t->font + 1) / 4)],
+ family[(int) ceil ((t->font + 1) / 4)]);
+ fprintf (tfp, "font-style=\"%s\" font-weight=\"%s\" font-size=\"%d\" text-anchor=\"%s\" >\n",
(t->font % 2 == 0 ? "normal" : "italic"),
(t->font % 4 < 2 ? "normal" : "bold"), (int) (ceil (t->size * 12 * mag)),
anchor[t->type]);
- fprintf (tfp, "<text xml:space=\"preserve\" x=\"%d\" y=\"%d\" stroke=\"#%6.6x\" fill=\"#%6.6x\" font-family=\"%s\" "\
- "font-style=\"%s\" font-weight=\"%s\" font-size=\"%d\" text-anchor=\"%s\">",
- x, y, rgbColorVal (t->color), rgbColorVal (t->color), family[t->font / 4],
+ fprintf (tfp,
+ "<text xml:space=\"preserve\" x=\"%d\" y=\"%d\" stroke=\"#%6.6x\" fill=\"#%6.6x\" font-family=\"%s\"",
+ x, y, rgbColorVal (t->color), rgbColorVal (t->color), family[t->font / 4]);
+ fprintf (tfp,
+ "font-style=\"%s\" font-weight=\"%s\" font-size=\"%d\" text-anchor=\"%s\">",
( (t->font % 2 == 0 || t->font >31) ? "normal" : "italic"),
( (t->font % 4 < 2 || t->font >31) ? "normal" : "bold"), (int) (ceil (t->size * 12 * mag)),
anchor[t->type]);
--- transfig/Imakefile
+++ transfig/Imakefile 2006-07-31 18:26:56.000000000 +0200
@@ -18,7 +18,7 @@ XCOMM Uncomment the USELATEX2E flag in t
@@ -32,7 +32,7 @@ XCOMM Uncomment the USELATEX2E flag to u
XCOMM \\usepackage{} command for LaTeX2e.
XCOMM The default is to use \\documentstyle{} for LaTeX209.
-XCOMM USELATEX2E = -DLATEX2E
+USELATEX2E = -DLATEX2E
XCOMM ******* DON'T CHANGE ANYTHIN BELOW THIS POINT *******
XCOMM ******* DON'T CHANGE ANYTHING BELOW THIS POINT *******
--- transfig/sys.c
+++ transfig/sys.c 2006-07-31 18:26:56.000000000 +0200

3
transfig.3.2.5.tar.bz2 Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:91473facbbae71f27facb68da6f23f0caae887ecae525e5dcf7e72c23c90c613
size 313498

View File

@ -1,3 +1,172 @@
-------------------------------------------------------------------
Tue Jul 24 17:49:48 CEST 2007 - werner@suse.de
- Update to transfig version 3.2.5 (bug ##267840)
* SVG driver adds color and pattern filling to arcs
from Martin Kroeker
* bug which made arrowheads too short fixed
* SVG driver corrects the ugly arrowheads on stick arrows
from Martin Kroeker
* EMF driver would crash when fed stdin
from Martin Kroeker
* Unhandled case for linetypes in latex driver
* CUPS didn't like the order of some of the Postscript header
from Ian Dall
* Updated SVG driver from Martin Kroeker was missing from alpha6
* Another SVG update: Use a font-family list of "Times,Symbol" for symbol
characters - the Times fontface does not contain all elements of the
Symbol font on all platforms
* Typo in font name (was cmit10, should be cmti10) in MetaPost driver
This bug fix was omitted from alpha6
* Added -dPDFSETTINGS=/prepress option to ghostscript when generating
PDF output to improve quality of bitmap graphics
* Fill patterns now use PostScript Level 2 built-in pattern commands
for Postscript/EPS/PDF and bitmap output
From Konstantin Shemyak
* Updated SVG driver from Martin Kroeker
* New -K option to size bounding box to whole figure when exporting
only certain depths
From Dirk Osswald
* Typo in font name (was cmit10, should be cmti10) in MetaPost driver
* When all texts were "special" (LaTeX coded) in a figure, ISO
characters weren't encoded in straight PS and PDF output
* Bug in radius for circles in SVG driver (dev/gensvg.c)
* fig2dev.man was missing many papersize options
* Double fclose() in bitmap driver
* Raster picture support added to SVG driver. (In SVG, this translates
to a link to the image file plus rotation/scaling information.
While 'conformant' SVG viewers need only support PNG and JPEG, there
is no a filetype test, as there is no limit on supported formats
in the standard, and e.g. Batik is able to display XBM and GIF in
addition. Added code for rounded boxes (polyline subtype 4).
Added code for boxes, explicit support for polygons. Added
xml-space:preserve qualifier on texts to preserve whitespace. Rewrote
fill pattern handling to generate patterns as needed - adding support
for penwidth and color. Corrected tiling of all shingle patterns and
reversal of horizontal shingles.
From Martin Kroeker
* Better arrowheads in SVG driver. Corrected font family selection.
Corrected (and simplified) calculation of white-tinted fill colors
(and removed the HSV/RGB conversion code).
From Justus Piater
* Typo in LATEX_AND_XFIG file. Text should be:
\convertMPtoPDF{foo.0}{1}{1}
It was missing parameters {1}{1}
* Depth filter option -D was parsing range (e.g. 40:80) incorrectly
Fix from Justus Piater
* C++ style comments "//" changed to "/* */" in genmp.c
* Integer overflow in computing some spline steps
* \pagestyle{empty} added for epic/eepic driver so it doesn't produce
unnecessary page number when LaTeXing
* Many SVG driver enhancements from Martin Kroeker
(martin@ruby.chemie.uni-freiburg.de)
* New features in EMF driver from ITOH Yasufumi:
support for locale text (if iconv() is available),
arc box, open arc, rotated ellipse, picture,
dash-triple-dotted line style, and all fill patterns.
* "cleandir" directive missing from doc/manual/Makefile
* Added note about requiring dummy argument for -R option
* SVG driver bug fixes: semicolon missing in CSS properties, multiline
string problem, width, height and viewbox attributes now relative to
figure bounds instead of pagesize. Fixes from Justus Piater.
* Font info was put in the pstex file even when there were only special
texts.
* Global option "-Z maxdim" to scale figure so that largest dimension
(width or height) is maxdim inches
* Shapepar driver to generate shaped paragraphs for LaTeX (-L shape)
from Christian Gollwitzer
* I18N support postscript file installation moved to fig2dev/dev
directory and installed with InstallNonExecFile (imake directive)
* options -dAutoFilterColorImages=false and -dColorImageFilter=/FlateEncode
added to ghostscript call when exporting to pdf to improve image
quality during compression
* "Epoch" added to rpm spec
* New HP/GL2 driver from Glenn Burkhardt with paper size selection,
offset, centering and orientation options
* comments about BINDIR added to fig2dev/Imakefile and transfig/Imakefile
so user can easily change installation directory of both programs
* MKDIRHIER used in Imakefile for installing support files instead of mkdir
* commands like \\small used instead of SetFigFont for thick and thin
dots for LaTeX export
From Bo Thilde
* removed typedefs of uint, ushort and ulong from genemf.h because
systems should already have those defined
* SVG driver not mentioned in fig2dev.1 (.man)
* shortened two fprintf calls in gensvg.c for HP-UX which can't handle
long strings
* If an imported picture path points to some directory which is not the
current directory, and there exists a picture file of the same name in
the current directory, and the correct file is not compressed, fig2dev
would use the file in the current directory because it stripped off
the path first. This was fixed by looking for the uncompressed name
first.
* Color values should be divided by 255, not 256 to produce values from
0 to 1.0 in LaTeX, Tk and PostScript drivers, and readpng and readpcx
utilities
* Increased precision of arc angles from %.1f to %.4f in PS/EPS/PDF
driver
* Postscript support files now installed with r/w permissions only (was
r/w/x)
* Metapost (mp) driver now generates all Fig styles of arrowheads
From Tim Braun
* Bug in pic preamble - default font size either 0 or garbage
* PDF not rotated anymore for landscape mode (similar to eps)
* fontmag not set when magnification was read from Fig file
* When there were only LaTeX special texts without backslashes (\) and
no other objects in the figure, a bounding box of 0 width was produced
for EPS, PS and PSTEX output.
* Added ZLIBDIR variable in fig2dev/Imakefile to specify zlib directory
if different from standard location
* pstex_t export lacked border option (-b) to align LaTeX text when
pstex figure specified border (also fixed in xfig Combined PS/LaTeX)
* warnings in gentpic.c caused failure of gcc on hppa architecture under
Debian
* cleaned up lots of implicit declarations of functions/procs
* transfig: the "psfig" language was missing from the list of languages,
making things go out of sync past "ps".
* transfig: "transfig -L pstex" was generating rules for ps not eps
* slight margin added to text bounds
* an incorrect printf specification (%d instead of %ld) in gemp.c
* "#include <varargs.h>" no longer needed (and is unsupported by gcc 3.3)
* Not a bug, really but a workaround for programs that generate Fig files
with arcs that have coincident start and end points with the intent
of making a circle (TCM apparently does this). Without this
workaround, such arcs have the same start and end angle, which
ghostcript and probably other PostScript interpreters take to mean
"don't draw anything". This fix adds 0.01 degrees to the end angle
if it is identical to the start angle.
* Exporting a file with a picture containing a path with blanks failed
* Incorrect ISO translation was:
"\\.S", /* latin capital letter S with dot above */
Should be:
"\\.Z", /* latin capital letter Z with dot above */
* LaTeX: Correction to the ISO-8859-2 ogonek diacritic mark now uses \k
instead of cedilla (\c). If the macro \k isn't defined in your
situation or you don't see the ogonek then define the macro: \def\k#1{\c{#1}}
before the \begin{document}.
From Jerzy Sobczyk
* Bug in user-defined colors when exporting to CGM. If color numbers
weren't contiguous, e.g. 32, 34, then it couldn't find color 34.
* glyphs in the Symbol font that have descenders weren't taken into
account when calculating text bounds
* missing blue and extra brown color in LaTeX driver
* \smash directive added back to text objects in eepic driver (was removed
in 3.2.4)
* Quotes in FIG2DEV_LIBDIR definition (fig2dev/Imakefile) interferred when
using $DESTDIR
* Comments not inserted in EMF output anymore (not valid in language)
* float/int mixup in printf in pic driver for font size caused default
font size to be 0
* bug in hp/gl (ibmgl) driver produced incorrect JCL code to enter HP/GL
mode when using -k option
* point size factor changed from 72.27 to 72 points per inch as specified
by HP tech notes
* change in 3.2.4 which included all "special" (LaTeX) texts in the
bounding box that don't have any backslashes ("\") in them failed to
take into account inline equations using the "$". Now those special
texts are also excluded from the bounding box calculation.
* various man page format errors fixed
-------------------------------------------------------------------
Wed May 16 14:47:06 CEST 2007 - sbrabec@suse.cz

View File

@ -1,5 +1,5 @@
#
# spec file for package transfig (Version 3.2.4)
# spec file for package transfig (Version 3.2.5)
#
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
@ -17,8 +17,8 @@ Group: Productivity/Graphics/Convertors
Provides: transfig.3.2.3d
Requires: netpbm ghostscript-library ghostscript-fonts-std
Autoreqprov: on
Version: 3.2.4
Release: 134
Version: 3.2.5
Release: 1
Summary: Graphic Converter
Source: transfig.%{version}.tar.bz2
Patch0: transfig.%{version}.dif
@ -75,6 +75,11 @@ make DESTDIR=%{buildroot} install.man CCOPTIONS="$RPM_OPT_FLAGS -fno-strict-ali
mkdir -p %{buildroot}%{_docdir}/transfig/manual
install -m 644 [CLNR]* %{buildroot}%{_docdir}/transfig/
install -m 644 doc/manual/* %{buildroot}%{_docdir}/transfig/manual/
rm -vf %{buildroot}%{_docdir}/transfig/manual/Makefile.orig
rm -vf %{buildroot}%{_docdir}/transfig/manual/*.aux
rm -vf %{buildroot}%{_docdir}/transfig/manual/*.toc
rm -vf %{buildroot}%{_docdir}/transfig/manual/*.log
rm -vf %{buildroot}%{_docdir}/transfig/manual/*.div
%files
%defattr(-,root,root)
@ -93,6 +98,172 @@ install -m 644 doc/manual/* %{buildroot}%{_docdir}/transfig/manual/
%doc %{_docdir}/transfig/
%changelog
* Tue Jul 24 2007 - werner@suse.de
- Update to transfig version 3.2.5 (bug ##267840)
* SVG driver adds color and pattern filling to arcs
from Martin Kroeker
* bug which made arrowheads too short fixed
* SVG driver corrects the ugly arrowheads on stick arrows
from Martin Kroeker
* EMF driver would crash when fed stdin
from Martin Kroeker
* Unhandled case for linetypes in latex driver
* CUPS didn't like the order of some of the Postscript header
from Ian Dall
* Updated SVG driver from Martin Kroeker was missing from alpha6
* Another SVG update: Use a font-family list of "Times,Symbol" for symbol
characters - the Times fontface does not contain all elements of the
Symbol font on all platforms
* Typo in font name (was cmit10, should be cmti10) in MetaPost driver
This bug fix was omitted from alpha6
* Added -dPDFSETTINGS=/prepress option to ghostscript when generating
PDF output to improve quality of bitmap graphics
* Fill patterns now use PostScript Level 2 built-in pattern commands
for Postscript/EPS/PDF and bitmap output
From Konstantin Shemyak
* Updated SVG driver from Martin Kroeker
* New -K option to size bounding box to whole figure when exporting
only certain depths
From Dirk Osswald
* Typo in font name (was cmit10, should be cmti10) in MetaPost driver
* When all texts were "special" (LaTeX coded) in a figure, ISO
characters weren't encoded in straight PS and PDF output
* Bug in radius for circles in SVG driver (dev/gensvg.c)
* fig2dev.man was missing many papersize options
* Double fclose() in bitmap driver
* Raster picture support added to SVG driver. (In SVG, this translates
to a link to the image file plus rotation/scaling information.
While 'conformant' SVG viewers need only support PNG and JPEG, there
is no a filetype test, as there is no limit on supported formats
in the standard, and e.g. Batik is able to display XBM and GIF in
addition. Added code for rounded boxes (polyline subtype 4).
Added code for boxes, explicit support for polygons. Added
xml-space:preserve qualifier on texts to preserve whitespace. Rewrote
fill pattern handling to generate patterns as needed - adding support
for penwidth and color. Corrected tiling of all shingle patterns and
reversal of horizontal shingles.
From Martin Kroeker
* Better arrowheads in SVG driver. Corrected font family selection.
Corrected (and simplified) calculation of white-tinted fill colors
(and removed the HSV/RGB conversion code).
From Justus Piater
* Typo in LATEX_AND_XFIG file. Text should be:
\convertMPtoPDF{foo.0}{1}{1}
It was missing parameters {1}{1}
* Depth filter option -D was parsing range (e.g. 40:80) incorrectly
Fix from Justus Piater
* C++ style comments "//" changed to "/* */" in genmp.c
* Integer overflow in computing some spline steps
* \pagestyle{empty} added for epic/eepic driver so it doesn't produce
unnecessary page number when LaTeXing
* Many SVG driver enhancements from Martin Kroeker
(martin@ruby.chemie.uni-freiburg.de)
* New features in EMF driver from ITOH Yasufumi:
support for locale text (if iconv() is available),
arc box, open arc, rotated ellipse, picture,
dash-triple-dotted line style, and all fill patterns.
* "cleandir" directive missing from doc/manual/Makefile
* Added note about requiring dummy argument for -R option
* SVG driver bug fixes: semicolon missing in CSS properties, multiline
string problem, width, height and viewbox attributes now relative to
figure bounds instead of pagesize. Fixes from Justus Piater.
* Font info was put in the pstex file even when there were only special
texts.
* Global option "-Z maxdim" to scale figure so that largest dimension
(width or height) is maxdim inches
* Shapepar driver to generate shaped paragraphs for LaTeX (-L shape)
from Christian Gollwitzer
* I18N support postscript file installation moved to fig2dev/dev
directory and installed with InstallNonExecFile (imake directive)
* options -dAutoFilterColorImages=false and -dColorImageFilter=/FlateEncode
added to ghostscript call when exporting to pdf to improve image
quality during compression
* "Epoch" added to rpm spec
* New HP/GL2 driver from Glenn Burkhardt with paper size selection,
offset, centering and orientation options
* comments about BINDIR added to fig2dev/Imakefile and transfig/Imakefile
so user can easily change installation directory of both programs
* MKDIRHIER used in Imakefile for installing support files instead of mkdir
* commands like \\small used instead of SetFigFont for thick and thin
dots for LaTeX export
From Bo Thilde
* removed typedefs of uint, ushort and ulong from genemf.h because
systems should already have those defined
* SVG driver not mentioned in fig2dev.1 (.man)
* shortened two fprintf calls in gensvg.c for HP-UX which can't handle
long strings
* If an imported picture path points to some directory which is not the
current directory, and there exists a picture file of the same name in
the current directory, and the correct file is not compressed, fig2dev
would use the file in the current directory because it stripped off
the path first. This was fixed by looking for the uncompressed name
first.
* Color values should be divided by 255, not 256 to produce values from
0 to 1.0 in LaTeX, Tk and PostScript drivers, and readpng and readpcx
utilities
* Increased precision of arc angles from %%.1f to %%.4f in PS/EPS/PDF
driver
* Postscript support files now installed with r/w permissions only (was
r/w/x)
* Metapost (mp) driver now generates all Fig styles of arrowheads
From Tim Braun
* Bug in pic preamble - default font size either 0 or garbage
* PDF not rotated anymore for landscape mode (similar to eps)
* fontmag not set when magnification was read from Fig file
* When there were only LaTeX special texts without backslashes (\) and
no other objects in the figure, a bounding box of 0 width was produced
for EPS, PS and PSTEX output.
* Added ZLIBDIR variable in fig2dev/Imakefile to specify zlib directory
if different from standard location
* pstex_t export lacked border option (-b) to align LaTeX text when
pstex figure specified border (also fixed in xfig Combined PS/LaTeX)
* warnings in gentpic.c caused failure of gcc on hppa architecture under
Debian
* cleaned up lots of implicit declarations of functions/procs
* transfig: the "psfig" language was missing from the list of languages,
making things go out of sync past "ps".
* transfig: "transfig -L pstex" was generating rules for ps not eps
* slight margin added to text bounds
* an incorrect printf specification (%%d instead of %%ld) in gemp.c
* "#include <varargs.h>" no longer needed (and is unsupported by gcc 3.3)
* Not a bug, really but a workaround for programs that generate Fig files
with arcs that have coincident start and end points with the intent
of making a circle (TCM apparently does this). Without this
workaround, such arcs have the same start and end angle, which
ghostcript and probably other PostScript interpreters take to mean
"don't draw anything". This fix adds 0.01 degrees to the end angle
if it is identical to the start angle.
* Exporting a file with a picture containing a path with blanks failed
* Incorrect ISO translation was:
"\\.S", /* latin capital letter S with dot above */
Should be:
"\\.Z", /* latin capital letter Z with dot above */
* LaTeX: Correction to the ISO-8859-2 ogonek diacritic mark now uses \k
instead of cedilla (\c). If the macro \k isn't defined in your
situation or you don't see the ogonek then define the macro: \def\k#1{\c{#1}}
before the \begin{document}.
From Jerzy Sobczyk
* Bug in user-defined colors when exporting to CGM. If color numbers
weren't contiguous, e.g. 32, 34, then it couldn't find color 34.
* glyphs in the Symbol font that have descenders weren't taken into
account when calculating text bounds
* missing blue and extra brown color in LaTeX driver
* \smash directive added back to text objects in eepic driver (was removed
in 3.2.4)
* Quotes in FIG2DEV_LIBDIR definition (fig2dev/Imakefile) interferred when
using $DESTDIR
* Comments not inserted in EMF output anymore (not valid in language)
* float/int mixup in printf in pic driver for font size caused default
font size to be 0
* bug in hp/gl (ibmgl) driver produced incorrect JCL code to enter HP/GL
mode when using -k option
* point size factor changed from 72.27 to 72 points per inch as specified
by HP tech notes
* change in 3.2.4 which included all "special" (LaTeX) texts in the
bounding box that don't have any backslashes ("\") in them failed to
take into account inline equations using the "$". Now those special
texts are also excluded from the bounding box calculation.
* various man page format errors fixed
* Wed May 16 2007 - sbrabec@suse.cz
- Require GhostScript, needed for PS and PDF output.
* Fri Apr 20 2007 - aj@suse.de