Package: inkscape
Version: 0.45-1
Severity: wishlist
Tags: patch

I can't believe i'm asking this, because i really hate non-metric
units.  But sadly, there are some institutions here in the US which
really prefer measurements to be in feet or yards.  Inkscape would be
more useful for creating diagrams for these institutions if "Measure
Path" could provide a "ft" and "yd" option for the units.

I'm attaching a patch which seems to do this nicely for me.

When we finally get the knuckle-dragging USA switched fully into the
metric system, you can revert this patch, and i will buy everyone
drinks!

Thanks once again for maintaining Inkscape in debian.  It has become
one of my favorite GUI apps to use, and it just keeps getting better.

Regards,

        --dkg

PS feel free to submit this upstream if you like, or tell me if you
think i should do so.

-- System Information:
Debian Release: 4.0
  APT prefers testing
  APT policy: (500, 'testing'), (200, 'unstable'), (101, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-4-686
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages inkscape depends on:
ii  libatk1.0-0               1.12.4-3       The ATK accessibility toolkit
ii  libbonobo2-0              2.14.0-3       Bonobo CORBA interfaces library
ii  libc6                     2.3.6.ds1-13   GNU C Library: Shared libraries
ii  libcairo2                 1.2.4-4        The Cairo 2D vector graphics libra
ii  libfontconfig1            2.4.2-1.2      generic font configuration library
ii  libfreetype6              2.2.1-5        FreeType 2 font engine, shared lib
ii  libgc1c2                  1:6.8-1        conservative garbage collector for
ii  libgcc1                   1:4.1.1-21     GCC support library
ii  libgconf2-4               2.16.1-1       GNOME configuration database syste
ii  libglib2.0-0              2.12.4-2       The GLib library of C routines
ii  libglibmm-2.4-1c2a        2.12.0-1       C++ wrapper for the GLib toolkit (
ii  libgnomevfs2-0            1:2.14.2-7     GNOME virtual file-system (runtime
ii  libgtk2.0-0               2.8.20-7       The GTK+ graphical user interface 
ii  libgtkmm-2.4-1c2a         1:2.8.8-1      C++ wrappers for GTK+ 2.4 (shared 
ii  liblcms1                  1.15-1         Color management library
ii  liborbit2                 1:2.14.3-0.1   libraries for ORBit2 - a CORBA ORB
ii  libpango1.0-0             1.14.8-5       Layout and rendering of internatio
ii  libpng12-0                1.2.15~beta5-1 PNG library - runtime
ii  libpopt0                  1.10-3         lib for parsing cmdline parameters
ii  libsigc++-2.0-0c2a        2.0.17-2       type-safe Signal Framework for C++
ii  libstdc++6                4.1.1-21       The GNU Standard C++ Library v3
ii  libx11-6                  2:1.0.3-6      X11 client-side library
ii  libxcursor1               1.1.7-4        X cursor management library
ii  libxext6                  1:1.0.1-2      X11 miscellaneous extension librar
ii  libxfixes3                1:4.0.1-5      X11 miscellaneous 'fixes' extensio
ii  libxft2                   2.1.8.2-8      FreeType-based font drawing librar
ii  libxi6                    1:1.0.1-4      X11 Input extension library
ii  libxinerama1              1:1.0.1-4.1    X11 Xinerama extension library
ii  libxml2                   2.6.27.dfsg-1  GNOME XML library
ii  libxrandr2                2:1.1.0.2-5    X11 RandR extension library
ii  libxrender1               1:0.9.1-3      X Rendering Extension client libra
ii  libxslt1.1                1.1.19-1       XSLT processing library - runtime 
ii  zlib1g                    1:1.2.3-13     compression library - runtime

Versions of packages inkscape recommends:
ii  imagemagick         7:6.2.4.5.dfsg1-0.14 Image manipulation programs
pn  libwmf-bin          <none>               (no description available)
pn  perlmagick          <none>               (no description available)
ii  pstoedit            3.44-1               PostScript and PDF files to editab

-- no debconf information
diff -ru measure.orig/measure.inx measure/measure.inx
--- measure.orig/measure.inx    2007-04-05 13:13:57.000000000 -0400
+++ measure/measure.inx 2007-04-05 13:15:17.000000000 -0400
@@ -15,6 +15,8 @@
         <item>px</item>
         <item>pt</item>
         <item>in</item>
+        <item>ft</item>
+        <item>yd</item>
         <item>mm</item>
         <item>cm</item>
         <item>m</item>
diff -ru measure.orig/measure.py measure/measure.py
--- measure.orig/measure.py     2007-04-05 13:13:57.000000000 -0400
+++ measure/measure.py  2007-04-05 13:22:11.000000000 -0400
@@ -140,6 +140,10 @@
                     factor=0.0000002822219 # px->km
                 elif self.options.unit=="in":
                     factor=0.2822219/25.4 # px->in
+                elif self.options.unit=="ft":
+                    factor=0.2822219/(25.4*12) # px->ft
+                elif self.options.unit=="yd":
+                    factor=0.2822219/(25.4*36) # px->yd
                 else :
                     ''' Default unit is px'''
                     factor=1

Reply via email to