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

Re: May we upload inkscape 0.46-2.lenny2?



Hi all

I'm "forwarding" this email again to all, since it doesn't reached the
debian-release mailinglist (hmm why?).

p.s.: please note Wolfram Quester <wolfi@sigxcpu.org> (maintainer for
inkscape) ist the original sender.

Kind regards
Salvatore

2009/1/2 Wolfram Quester <wolfi@sigxcpu.org>:
> Hi altogether!
>
> During the last days, we prepared a new version of the inkscape package
> (0.46-5).
> It would be great to have a "backport" of this version in lenny. All changes
> made fixed bugs in the BTS and enhanced the usability of the package. The
> changelog with respect to the version currently in lenny is cited below, the
> debdiff is attached.
> If you agree, Guido Günther (on CC:) will sponsor the upload of the new version
> 0.46-2.lenny2 to testing-proposed-updates.
>
> Thanks, and a happy New Year to all of you,
>
> Wolfi
>
>
> inkscape (0.46-2.lenny2) testing-proposed-updates; urgency=low
>
>  * This is a backport of 0.46-5 for lenny. The backport is necessary due to
>    the cairomm issue explained by Charles Plessy below for 0.46-2.lenny1.
>  * upload sponsored by Guido Guenther <agx@debian.org>
>
>  Changes to 0.46-2.lenny1:
>  * Include patch by Thomas Viehmann, which fixes a crash with pdf import in
>    some cases (Closes: #510234).
>  * Fix lintian warning: menu-item-uses-apps-section (Closes: #508692).
>  * Add debian/watch file (Closes: #508690).
>  * Add support in bash completion file for jpeg, svgz, and pdf
>    (Closes: #428226).
>  * Add patch to give back LaTeX formula rendering option
>    (Closes: #464154, #506285).
>  * Thanks Salvatore Bonaccorso for his patches :-)
>  * Add patch by Martin Michlmayr <tbm@cyrius.com> to make inkscape compile
>    with gcc 4.4 (Closes: #505660)
>  * Suggest python-uniconvertor and add patch by Andreas Wenning to use it in
>    the .cdr input plugin instead of the old uniconv (Closes: #471109, #506217).
>  * Suggest libgnomevfs2-extra which is needed to make
>    "Import From Open Clip Art Library" work (Closes: #496785).
>  * Suggest libsvg-perl , as the txt2svg extension needs it (Closes: #504469).
>
>  -- Wolfram Quester <wolfi@sigxcpu.org>  Thu, 01 Jan 2009 18:12:02 +0100
>
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (GNU/Linux)
>
> iEYEARECAAYFAkleg7EACgkQxRuQ+Eb23xa8MwCcC1wRO4+dS5Snrr6yonO//mfC
> +pEAoIFyjSu5KQMaGi57XECYF0zCFKhc
> =wn/Q
> -----END PGP SIGNATURE-----
diff -u inkscape-0.46/debian/inkscape.menu inkscape-0.46/debian/inkscape.menu
--- inkscape-0.46/debian/inkscape.menu
+++ inkscape-0.46/debian/inkscape.menu
@@ -1,4 +1,4 @@
-?package(inkscape): needs="X11" section="Apps/Graphics"\
+?package(inkscape): needs="X11" section="Applications/Graphics"\
   hints="Vector"\
   title="Inkscape" command="/usr/bin/inkscape"\
   icon="/usr/share/pixmaps/inkscape.xpm"\
diff -u inkscape-0.46/debian/control inkscape-0.46/debian/control
--- inkscape-0.46/debian/control
+++ inkscape-0.46/debian/control
@@ -8,7 +8,7 @@
 Package: inkscape
 Architecture: any
 Depends: ${shlibs:Depends}
-Suggests: dia | dia-gnome, ruby, libxml-xql-perl, python, python-numpy, python-lxml, skencil, ttf-bitstream-vera
+Suggests: dia | dia-gnome, ruby, libgnomevfs2-extra, libsvg-perl, libxml-xql-perl, python, python-numpy, python-lxml, python-uniconverter, skencil, ttf-bitstream-vera
 Recommends: libwmf-bin, pstoedit, imagemagick, perlmagick
 Description: vector-based drawing program
  Inkscape loads and saves a subset of the SVG (Scalable Vector Graphics)
diff -u inkscape-0.46/debian/changelog inkscape-0.46/debian/changelog
--- inkscape-0.46/debian/changelog
+++ inkscape-0.46/debian/changelog
@@ -1,3 +1,29 @@
+inkscape (0.46-2.lenny2) testing-proposed-updates; urgency=low
+
+  * This is a backport of 0.46-5 for lenny. The backport is necessary due to
+    the cairomm issue explained by Charles Plessy below for 0.46-2.lenny1.
+  * upload sponsored by Guido Guenther <agx@debian.org>
+
+  Changes to 0.46-2.lenny1: 
+  * Include patch by Thomas Viehmann, which fixes a crash with pdf import in
+    some cases (Closes: #510234).
+  * Fix lintian warning: menu-item-uses-apps-section (Closes: #508692). 
+  * Add debian/watch file (Closes: #508690).
+  * Add support in bash completion file for jpeg, svgz, and pdf
+    (Closes: #428226).
+  * Add patch to give back LaTeX formula rendering option 
+    (Closes: #464154, #506285).
+  * Thanks Salvatore Bonaccorso for his patches :-)
+  * Add patch by Martin Michlmayr <tbm@cyrius.com> to make inkscape compile
+    with gcc 4.4 (Closes: #505660)
+  * Suggest python-uniconvertor and add patch by Andreas Wenning to use it in
+    the .cdr input plugin instead of the old uniconv (Closes: #471109, #506217). 
+  * Suggest libgnomevfs2-extra which is needed to make 
+    "Import From Open Clip Art Library" work (Closes: #496785).
+  * Suggest libsvg-perl , as the txt2svg extension needs it (Closes: #504469).
+
+ -- Wolfram Quester <wolfi@sigxcpu.org>  Thu, 01 Jan 2009 18:12:02 +0100
+
 inkscape (0.46-2.lenny1) testing; urgency=low
 
    * Non-maintainer upload.
diff -u inkscape-0.46/debian/inkscape.bash inkscape-0.46/debian/inkscape.bash
--- inkscape-0.46/debian/inkscape.bash
+++ inkscape-0.46/debian/inkscape.bash
@@ -18,7 +18,7 @@
 			-j --export-id-only  -t --export-use-hints -b --export-background= \
 			-y --export-background-opacity= -l --export-plain-svg= -s --slideshow' -- $cur ) ) 
         else
-                _filedir '@(svg|ai|dia|eps|ani|bmp|cur|gif|ico|jpe|jpg|pbm|pcx|pgm|png|ppm|pnm|ras|targa|tga|tif|tiff|wbmp|xbm|xpm|ggr|ps|sk|txt|wmf)'
+                _filedir '@(ai|ani|bmp|cur|dia|eps|gif|ggr|ico|jpe|jpeg|jpg|pbm|pcx|pdf|pgm|png|ppm|pnm|ps|ras|sk|svg|svgz|targa|tga|tif|tiff|txt|wbmp|wmf|xbm|xpm)'
         fi
 
 }
diff -u inkscape-0.46/debian/patches/00list inkscape-0.46/debian/patches/00list
--- inkscape-0.46/debian/patches/00list
+++ inkscape-0.46/debian/patches/00list
@@ -4,0 +5,4 @@
+05_fix_latex_patch
+06_gcc-4.4
+07_cdr2svg
+08_skip-bad-utf-on-pdf-import
only in patch2:
unchanged:
--- inkscape-0.46.orig/debian/watch
+++ inkscape-0.46/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://sf.net/inkscape/inkscape-(.*).tar.gz
only in patch2:
unchanged:
--- inkscape-0.46.orig/debian/patches/07_cdr2svg.dpatch
+++ inkscape-0.46/debian/patches/07_cdr2svg.dpatch
@@ -0,0 +1,43 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 07_cdr2svg.dpatch by Andreas Wenning <awen@awen.dk>
+##
+## DP: Patch to use uniconvertor instead of uniconv.
+## DP: Makes the .cdr input work again, closes bugs #506217, #471109
+
+@DPATCH@
+diff -urNad inkscape-0.46~/share/extensions/cdr2svg.sh inkscape-0.46/share/extensions/cdr2svg.sh
+--- inkscape-0.46~/share/extensions/cdr2svg.sh	2008-03-11 05:21:10.000000000 +0100
++++ inkscape-0.46/share/extensions/cdr2svg.sh	2008-05-12 17:13:50.000000000 +0200
+@@ -4,7 +4,7 @@
+ TEMPFILENAME=`mktemp 2>/dev/null || echo "$TMPDIR/$$"`
+ TEMPFILENAME=${TEMPFILENAME}.svg
+ 
+-uniconv "$1" "${TEMPFILENAME}" > /dev/null 2>&1 || rc=1
++/usr/bin/uniconvertor "$1" "${TEMPFILENAME}" > /dev/null 2>&1 || rc=1
+ 
+ cat < "${TEMPFILENAME}" || rc=1
+ rm -f "${TEMPFILENAME}"
+diff -urNad inkscape-0.46~/share/extensions/cdr_input.inx inkscape-0.46/share/extensions/cdr_input.inx
+--- inkscape-0.46~/share/extensions/cdr_input.inx	2008-03-11 05:21:07.000000000 +0100
++++ inkscape-0.46/share/extensions/cdr_input.inx	2008-05-12 17:13:35.000000000 +0200
+@@ -1,7 +1,7 @@
+ <inkscape-extension>
+     <_name>Corel DRAW Input</_name>
+     <id>org.inkscape.input.cdr</id>
+-    <dependency type="executable" location="path">uniconv</dependency>
++    <dependency type="executable" location="path">uniconvertor</dependency>
+     <dependency type="executable" location="extensions">cdr2svg.sh</dependency>
+     <input>
+         <extension>.cdr</extension>
+diff -urNad inkscape-0.46~/share/extensions/wmf_input.inx inkscape-0.46/share/extensions/wmf_input.inx
+--- inkscape-0.46~/share/extensions/wmf_input.inx	2008-03-11 05:21:10.000000000 +0100
++++ inkscape-0.46/share/extensions/wmf_input.inx	2008-05-12 17:13:22.000000000 +0200
+@@ -1,7 +1,7 @@
+ <inkscape-extension>
+     <_name>Windows Metafile Input</_name>
+     <id>org.inkscape.input.wmf</id>
+-    <dependency type="executable" location="path">uniconv</dependency>
++    <dependency type="executable" location="path">uniconvertor</dependency>
+     <dependency type="executable" location="extensions">cdr2svg.sh</dependency>
+     <input>
+         <extension>.wmf</extension>
only in patch2:
unchanged:
--- inkscape-0.46.orig/debian/patches/08_skip-bad-utf-on-pdf-import.dpatch
+++ inkscape-0.46/debian/patches/08_skip-bad-utf-on-pdf-import.dpatch
@@ -0,0 +1,38 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 08-skip-bad-utf-on-pdf-import.dpatch by Thomas Viehmann <tv@beamnet.de> 
+##
+## DP: This patch closes bug #510234.
+## DP: Thomas' report and description of the patch:
+## DP: When converting the attached testcase.pdf (generated by latex testcase ;
+## DP: dvips testcase ; ps2pdf testcase.ps (*not* pdflatex) from the tex),
+## DP: inkscape currently fails and with the patch works.
+## DP: There seem to be several exceptions to catch here, I observed
+## DP: std:length_error (because string::append was passed length
+## DP: string::n_pos) and possibly Glib::ConvertError.
+
+@DPATCH@
+
+--- inkscape-0.46/src/extension/internal/pdfinput/svg-builder.cpp~
++++ inkscape-0.46/src/extension/internal/pdfinput/svg-builder.cpp
+@@ -1208,11 +1208,16 @@
+         os_y << delta_pos[1];
+         y_coords.append(os_y.str());
+         last_delta_pos = delta_pos;
+-
+-        // Append the character to the text buffer
+-        text_buffer.append((char *)&glyph.code, 1);
+-
+-        glyphs_in_a_row++;
++        
++        try {
++            // Append the character to the text buffer
++            text_buffer.append((char *)&glyph.code, 1);
++            glyphs_in_a_row++;
++        }
++        catch (std::exception& e) {
++            std::cerr << "Error converting glyphs in PDF: " << e.what()<< std::endl; 
++        }
++        
+         i++;
+     }
+     _container->appendChild(text_node);
only in patch2:
unchanged:
--- inkscape-0.46.orig/debian/patches/06_gcc-4.4.dpatch
+++ inkscape-0.46/debian/patches/06_gcc-4.4.dpatch
@@ -0,0 +1,179 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 06_gcc-4.4.dpatch by Wolfram Quester <wolfi@sigxcpu.org>
+##
+## DP: Patch by Martin Michlmayr <tbm@cyrius.com> to make inkscape compile with
+## DP: gcc 4.4. His bug report and description:
+## DP: Your package fails to build with the upcoming GCC 4.4.  Version 4.4
+## DP: has not been released yet but I'm building with a snapshot in order
+## DP: to find errors and give people an advance warning.
+## DP: 
+## DP: GCC 4.4 cleaned up some more C++ headers.  You always have to #include
+## DP: headers directly and cannot rely for things to be included indirectly.
+## DP: 
+## DP: You can reproduce this problem with gcc-snapshot from unstable.
+## DP: 
+## DP: > Automatic build of inkscape_0.46-3 on em64t by sbuild/amd64 0.53
+## DP: ...
+## DP: > 	x86_64-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I..   -I/usr/include/freetype2  -pthread -DORBIT2=1 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/gconf/2 -I/usr/include/orbit-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -DRELAYTOOL_CRYPTO='static const int libcrypto_is_present = 1; static int __attribute__((unused)) libcrypto_symbol_is_present(char *m) { return 1; }' -DRELAYTOOL_SSL='static const int libssl_is_present = 1; static int __attribute__((unused)) libssl_symbol_is_present(char *m) { return 1; }'   -DHAVE_SSL -I/usr/include/libwpg-0.1 -I/usr/include/libwpd-0.8   -I/usr/include/freetype2   -I/usr/include/poppler   -D_REENTRANT -I/usr/include/poppler/glib -I/usr/include/poppler -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 -I/usr/include/pixman-1   -DPOTRACE=\"potrace\" -D_REENTRANT -pthread -I/usr/include/gdkmm-2.4 -I/usr/lib/gdkmm-2.4/include -I/usr/include/glibmm-2.4 -I/usr/lib/glibmm-2.4/include -I/usr/include/pangomm-1.4 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/cairomm-1.0 -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 -I/usr/include/pixman-1 -I/usr/include/gtkmm-2.4 -I/usr/lib/gtkmm-2.4/include -I/usr/include/atkmm-1.6 -I/usr/include/atk-1.0 -I/usr/include/libxml2 -I/usr/include/gtkspell-2.0   -I../cxxtest    -Wall -g -O2   -MT conn-avoid-ref.o -MD -MP -MF $depbase.Tpo -c -o conn-avoid-ref.o conn-avoid-ref.cpp &&\
+## DP: > 	mv -f $depbase.Tpo $depbase.Po
+## DP: > In file included from ./libavoid/graph.h:30,
+## DP: >                  from libavoid/router.h:30,
+## DP: >                  from conn-avoid-ref.cpp:20:
+## DP: > ./libavoid/vertices.h:60: error: 'stdout' was not declared in this scope
+## DP: > ./libavoid/vertices.h: In member function 'void Avoid::VertInfList::stats()':
+## DP: > ./libavoid/vertices.h:103: error: 'printf' was not declared in this scope
+## DP: > make[3]: *** [conn-avoid-ref.o] Error 1
+## DP: > make[3]: Leaving directory `/build/tbm/inkscape-0.46/src'
+
+@DPATCH@
+
+--- src/xml/event.cpp~	2008-11-14 08:27:20.000000000 +0000
++++ inkscape-0.46/src/xml/event.cpp	2008-11-14 08:27:26.000000000 +0000
+@@ -14,6 +14,7 @@
+  */
+ 
+ #include <glib.h> // g_assert()
++#include <cstdio>
+ 
+ #include "event.h"
+ #include "event-fns.h"
+--- src/io/inkscapestream.h~	2008-11-14 08:02:53.000000000 +0000
++++ inkscape-0.46/src/io/inkscapestream.h	2008-11-14 08:03:00.000000000 +0000
+@@ -12,6 +12,7 @@
+  */
+ 
+ 
++#include <cstdio>
+ #include <glibmm.h>
+ 
+ namespace Inkscape
+--- src/io/sys.cpp~	2008-11-14 08:04:54.000000000 +0000
++++ inkscape-0.46/src/io/sys.cpp	2008-11-14 08:05:11.000000000 +0000
+@@ -22,6 +22,8 @@
+ #include <glibmm/ustring.h>
+ #include <gtk/gtkmessagedialog.h>
+ 
++#include <cstdio>
++
+ #include "prefs-utils.h"
+ #include "sys.h"
+ 
+--- src/dom/io/domstream.h~	2008-11-14 07:51:18.000000000 +0000
++++ inkscape-0.46/src/dom/io/domstream.h	2008-11-14 07:51:28.000000000 +0000
+@@ -33,6 +33,8 @@
+ 
+ #include <dom/dom.h>
+ 
++#include <cstdio>
++
+ namespace org
+ {
+ namespace w3c
+--- src/dom/svg/svgtypes.h~	2008-11-14 07:53:23.000000000 +0000
++++ inkscape-0.46/src/dom/svg/svgtypes.h	2008-11-14 07:53:32.000000000 +0000
+@@ -47,6 +47,7 @@
+ #include "dom/smil.h"
+ 
+ 
++#include <cstdio>
+ #include <math.h>
+ 
+ 
+--- src/dom/domimpl.cpp~	2008-11-14 07:49:10.000000000 +0000
++++ inkscape-0.46/src/dom/domimpl.cpp	2008-11-14 07:49:18.000000000 +0000
+@@ -30,6 +30,8 @@
+ 
+ #include "domimpl.h"
+ 
++#include <cstdio>
++
+ namespace org
+ {
+ namespace w3c
+--- src/dom/xpathtoken.h~	2008-11-14 07:52:27.000000000 +0000
++++ inkscape-0.46/src/dom/xpathtoken.h	2008-11-14 07:52:36.000000000 +0000
+@@ -35,6 +35,7 @@
+ 
+ #include <math.h>
+ 
++#include <cstdio>
+ #include <vector>
+ 
+ namespace org
+--- src/libavoid/vertices.h~	2008-11-14 07:14:36.000000000 +0000
++++ inkscape-0.46/src/libavoid/vertices.h	2008-11-14 07:14:41.000000000 +0000
+@@ -23,6 +23,7 @@
+ #ifndef AVOID_VERTICES_H
+ #define AVOID_VERTICES_H
+ 
++#include <cstdio>
+ #include <list>
+ #include <set>
+ #include <map>
+--- src/libnr/nr-matrix-fns.cpp~	2008-11-14 08:16:43.000000000 +0000
++++ inkscape-0.46/src/libnr/nr-matrix-fns.cpp	2008-11-14 08:16:48.000000000 +0000
+@@ -1,5 +1,7 @@
+ #include <libnr/nr-matrix-fns.h>
+ 
++#include <cstdio>
++
+ namespace NR {
+ 
+ Matrix elliptic_quadratic_form(Matrix const &m) {
+--- src/libnr/nr-matrix.cpp~	2008-11-14 08:19:20.000000000 +0000
++++ inkscape-0.46/src/libnr/nr-matrix.cpp	2008-11-14 08:19:26.000000000 +0000
+@@ -11,6 +11,7 @@
+  * This code is in public domain
+  */
+ 
++#include <cstdio>
+ #include <cstdlib>
+ #include "nr-matrix.h"
+ 
+--- src/2geom/svg-path-parser.h~	2008-11-14 08:06:45.000000000 +0000
++++ inkscape-0.46/src/2geom/svg-path-parser.h	2008-11-14 08:06:51.000000000 +0000
+@@ -32,6 +32,7 @@
+ #ifndef SEEN_SVG_PATH_PARSER_H
+ #define SEEN_SVG_PATH_PARSER_H
+ 
++#include <cstdio>
+ #include <vector>
+ #include <iterator>
+ #include <stdexcept>
+--- src/2geom/sbasis-math.cpp~	2008-11-14 08:29:42.000000000 +0000
++++ inkscape-0.46/src/2geom/sbasis-math.cpp	2008-11-14 08:31:32.000000000 +0000
+@@ -38,11 +38,11 @@
+ //#define ZERO 1e-3
+ 
+ 
+-namespace Geom {
++#include <math.h>
++#include <cstdio>
+ 
++namespace Geom {
+ 
+-#include <stdio.h>
+-#include <math.h>
+ 
+ //-|x|-----------------------------------------------------------------------
+ Piecewise<SBasis> abs(SBasis const &f){
+--- src/streams-handles.cpp~	2008-11-14 07:41:07.000000000 +0000
++++ inkscape-0.46/src/streams-handles.cpp	2008-11-14 07:41:14.000000000 +0000
+@@ -12,6 +12,7 @@
+ #include "streams-handles.h"
+ #include "uri.h"
+ 
++#include <cstdio>
+ #include <iostream>
+ 
+ namespace Inkscape {
+--- src/streams-zlib.cpp~	2008-11-14 07:41:24.000000000 +0000
++++ inkscape-0.46/src/streams-zlib.cpp	2008-11-14 07:41:30.000000000 +0000
+@@ -9,6 +9,7 @@
+  * Released under GNU LGPL, read the file 'COPYING.LIB' for more information
+  */
+ 
++#include <cstdio>
+ #include <cstring>
+ #include <string>
+ #include <string.h>
only in patch2:
unchanged:
--- inkscape-0.46.orig/debian/patches/05_fix_latex_patch.dpatch
+++ inkscape-0.46/debian/patches/05_fix_latex_patch.dpatch
@@ -0,0 +1,74 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 05_fix_latex_patch.dpatch by Salvatore Bonaccorso <salvatore.bonaccorso@gmail.com>
+##
+## DP: Fix LaTeX formula rendering
+## DP: Patch is taken from: https://bugs.launchpad.net/inkscape/+bug/55273
+
+@DPATCH@
+
+--- inkscape-0.46.orig/share/extensions/eqtexsvg.py	2008-11-20 21:45:36.339896646 +0100
++++ inkscape-0.46/share/extensions/eqtexsvg.py	2008-11-20 21:46:11.067896917 +0100
+@@ -49,16 +49,18 @@
+     doc_sizeW = max(doc_width,doc_height)
+ 
+     def clone_and_rewrite(self, node_in):
+-        if node_in.tag != 'svg':
+-            node_out = inkex.etree.Element(inkex.addNS(node_in.tag,'svg'))
++        in_tag = node_in.tag.rsplit('}',1)[-1]
++        if in_tag != 'svg':
++            node_out = inkex.etree.Element(inkex.addNS(in_tag,'svg'))
+             for name in node_in.attrib:
+                 node_out.set(name, node_in.attrib[name])
+         else:
+             node_out = inkex.etree.Element(inkex.addNS('g','svg'))
+         for c in node_in.iterchildren():
+-            if c.tag in ('g', 'path', 'polyline', 'polygon'):
++            c_tag = c.tag.rsplit('}',1)[-1]
++            if c_tag in ('g', 'path', 'polyline', 'polygon'):
+                 child = clone_and_rewrite(self, c)
+-                if c.tag == 'g':
++                if c_tag == 'g':
+                     child.set('transform','matrix('+str(doc_sizeH/700.)+',0,0,'+str(-doc_sizeH/700.)+','+str(-doc_sizeH*0.25)+','+str(doc_sizeW*0.75)+')')
+                 node_out.append(child)
+ 
+@@ -86,6 +88,7 @@
+         dvi_file = os.path.join(base_dir, "eq.dvi")
+         svg_file = os.path.join(base_dir, "eq.svg")
+         out_file = os.path.join(base_dir, "eq.out")
++        err_file = os.path.join(base_dir, "eq.err")
+ 
+         def clean():
+             os.remove(latex_file)
+@@ -95,6 +98,8 @@
+             os.remove(dvi_file)
+             os.remove(svg_file)
+             os.remove(out_file)
++            if os.path.exists(err_file):
++                os.remove(err_file)
+             os.rmdir(base_dir)
+ 
+         create_equation_tex(latex_file, self.options.formula)
+@@ -109,10 +114,20 @@
+             sys.exit(1)
+ 
+         os.system('dvips -q -f -E -D 600 -y 5000 -o ' + ps_file + ' ' + dvi_file)
+-        #os.system('cd ' + base_dir)
+-        os.system('pstoedit -f plot-svg -dt -ssp ' + ps_file + ' ' + svg_file + '> ' + out_file)
+-        svg_open(self, svg_file)
++        # cd to base_dir is necessary, because pstoedit
++        # writes temporary files to cwd and needs write
++        # permissions
++        os.system('cd ' + base_dir + ' ; pstoedit -f plot-svg -dt -ssp ' + ps_file + ' ' + svg_file + '  > ' + out_file + ' 2> ' + err_file)
++
++        # forward errors to stderr but skip pstoedit header
++        if os.path.exists(err_file):
++            err_stream = open(err_file, 'r')
++            for line in err_stream:
++                if not line.startswith('pstoedit: version'):
++                    sys.stderr.write(line + '\n')
++            err_stream.close()
+ 
++        svg_open(self, svg_file)
+         clean()
+ 
+ e = EQTEXSVG()
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkleg7EACgkQxRuQ+Eb23xa8MwCcC1wRO4+dS5Snrr6yonO//mfC
+pEAoIFyjSu5KQMaGi57XECYF0zCFKhc
=wn/Q
-----END PGP SIGNATURE-----

Reply to: