Package: skencil
Version: 0.6.17-7
Severity: normal
Tags: patch, fixed-upstream

*** Please type your report below this line ***

Elements in the SVG output do not belong to any namespace.  This violates the 
SVG standard which requires them to be in the SVG namespace.  Some 
applications, like Mozilla based browsers[1], depend on the namespace 
information to recognize SVG.

[2] is the upstream fix of this bug.  I copy here the relevant part of 
the 
patch (excluding changes to changelogs and tests) with the only modification of 
removing 2003 from the old copyright line so that the patch applies. The paths 
are relative to /usr/lib/.
 
--- skencil/trunk/Plugins/Filters/svgsaver.py   2006-06-05 18:35:01 UTC (rev 
682)
+++ skencil/trunk/Plugins/Filters/svgsaver.py   2006-06-06 22:33:46 UTC (rev 
683)
@@ -1,5 +1,6 @@
 # Sketch - A Python-based interactive drawing program
-# Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2004 by Bernhard Herzog
+# Copyright (C) 2004, 2006 by Bernhard Herzog
+# Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003 by Bernhard Herzog
 # Part of the code for Arrow heads and text from Paul Giotta (2002)
 #
 # This library is free software; you can redistribute it and/or
@@ -260,7 +261,8 @@
         width = right - left
         height = top - bottom
         self.trafo = Trafo(1, 0, 0, -1, -left, top)
-        self.file.write('<svg width="%g" height="%g"' % (width, height))
+        self.file.write('<svg xmlns="http://www.w3.org/2000/svg";'
+                        ' width="%g" height="%g"' % (width, height))
         #self.file.write(' transform="matrix(%g,%g,%g,%g,%g,%g)">\n' % trafo)
         self.file.write('>\n')
 

This patch succeeds with offset 1 at hunk #2.  I have not tested the patch 
myself but looking at the code it seems very likely that this fixes the 
namespace issue.

[1] Mozilla SVG Project Frequently Asked Questions,
Why does Mozilla show source code/gibberish instead of SVG?
 http://www.mozilla.org/projects/svg/faq.html#source

[2] 
http://lists.wald.intevation.org/pipermail/skencil-commits/2006-June/000049.html

Best wishes,

        Gabor Braun

-- System Information:
Debian Release: 4.0
  APT prefers stable
  APT policy: (990, 'stable'), (650, 'testing'), (600, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-4-686
Locale: LANG=hu_HU.UTF-8, LC_CTYPE=hu_HU.UTF-8 (charmap=UTF-8)

Versions of packages skencil depends on:
ii  libc6                       2.3.6.ds1-10 GNU C Library: Shared libraries
ii  libx11-6                    2:1.0.3-5    X11 client-side library
ii  libxext6                    1:1.0.1-2    X11 miscellaneous extension librar
ii  python                      2.4.4-2      An interactive high-level object-o
ii  python-imaging-tk           1.1.5-11     Python Imaging Library ImageTk Mod
ii  python-support              0.5.6        automated rebuilding support for p
ii  tcl8.4                      8.4.9-1      Tcl (the Tool Command Language) v8
ii  tk8.4                       8.4.9-1      Tk toolkit for Tcl and X11, v8.4 -

skencil recommends no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to