severity 396393 normal
tags 396393 patch
thanks
Emilio Jose Padron Gonzalez <[EMAIL PROTECTED]> wrote:
> Package: inkscape
> Version: 0.44.1-1
> Severity: grave
> Justification: renders package unusable
>
>
> EPS output seems to be broken.
Indeed. However, eps output is only one of a couple of output formats
of inkscape. And it's not even hard to open the eps file in a text
editor and fix it: One needs to remove the line
%%DocumentMedia: plain 596 842 0 () ()
I'm not a PS expert, nor a C++ guru. But I think that
- it doesn't make sense at all to specify DocumentMedia for eps export
- the attached patch is all that's needed.
The patch has been tested on sid with the kk.svg file in the original
report, and it produced a nicely fit eps file, a one-page ps file, and a
somehow-nicely fit epsi file (the part of the figure that's off the
default page is clipped of, but that might be a feature, or a different
bug).
Regards, Frank
--
Dr. Frank Küster
Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ. Zürich
Debian Developer (teTeX/TeXLive)
diff -Nur inkscape-0.44.1.orig/debian/patches/00list
inkscape-0.44.1/debian/patches/00list
--- inkscape-0.44.1.orig/debian/patches/00list 2006-11-01 15:05:36.000000000
+0100
+++ inkscape-0.44.1/debian/patches/00list 2006-11-01 14:26:45.000000000
+0100
@@ -1,2 +1,3 @@
01_nb.po
02_mips
+03_eps_bb
diff -Nur inkscape-0.44.1.orig/debian/patches/03_eps_bb.dpatch
inkscape-0.44.1/debian/patches/03_eps_bb.dpatch
--- inkscape-0.44.1.orig/debian/patches/03_eps_bb.dpatch 1970-01-01
01:00:00.000000000 +0100
+++ inkscape-0.44.1/debian/patches/03_eps_bb.dpatch 2006-11-01
14:25:55.000000000 +0100
@@ -0,0 +1,27 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 03_eps_bb.dpatch by <[EMAIL PROTECTED]>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Do not create a Media Size for eps files
+
[EMAIL PROTECTED]@
+
+--- inkscape-0.44.1/src/extension/internal/ps.cpp.orig 2006-11-01
14:20:31.000000000 +0100
++++ inkscape-0.44.1/src/extension/internal/ps.cpp 2006-11-01
14:17:35.000000000 +0100
+@@ -399,10 +399,12 @@
+ << d.y0 << " "
+ << d.x1 << " "
+ << d.y1 << "\n";
+- os << "%%DocumentMedia: plain "
+- << (int) ceil(_width) << " "
+- << (int) ceil(_height) << " "
+- << "0 () ()\n";
++ if (!epsexport) {
++ os << "%%DocumentMedia: plain "
++ << (int) ceil(_width) << " "
++ << (int) ceil(_height) << " "
++ << "0 () ()\n";
++ }
+ }
+
+ os << "%%EndComments\n";