Code

committed patch 1629798
authorjiho-sf <jiho-sf@users.sourceforge.net>
Sun, 20 May 2007 14:17:58 +0000 (14:17 +0000)
committerjiho-sf <jiho-sf@users.sourceforge.net>
Sun, 20 May 2007 14:17:58 +0000 (14:17 +0000)
http://sourceforge.net/tracker/index.php?func=detail&aid=1629798&group_id=93438&atid=604308
this patch suppresses the requirement on skconvert for ps and eps input and
only uses pstoedit with the plot-svg back-end (which is free).
It introduces some warning messages and can cause some scale problems depending on the origin of the ps or eps but it probably better than relying on sketch and can probably be enhanced.
Apparently this patch is used in Fedora's Inkscape already and it seems to do well there.

share/extensions/eps_input.inx
share/extensions/ps_input.inx

index d732dea8c4be781aca952cce99cfedca6486f5e8..b901d3b6f88a34aa9a3cc8e94412623239b2ea85 100644 (file)
@@ -1,8 +1,7 @@
 <inkscape-extension>
     <_name>EPS Input</_name>
     <id>org.inkscape.input.eps</id>
-    <dependency type="extension">org.inkscape.input.ps</dependency>
-    <dependency type="executable">gs</dependency>
+    <dependency type="executable">pstoedit</dependency>
     <input>
         <extension>.eps</extension>
         <mimetype>image/x-encapsulated-postscript</mimetype>
@@ -11,7 +10,6 @@
         <output_extension>org.inkscape.output.eps</output_extension>
     </input>
     <script>
-        <command reldir="path">gs -q -sDEVICE=pswrite -sOutputFile=- -dNOPAUSE -dBATCH -dSAFER -dDEVICEWIDTH=250000 -dDEVICEHEIGHT=250000</command>
-        <helper_extension>org.inkscape.input.ps</helper_extension>
+        <command reldir="path">pstoedit -f plot-svg</command>
     </script>
 </inkscape-extension>
index 84d6907ace7a6c62166ccb54cf32567c81587374..ad458138e94b86ce3228a5d0bd23c333030249ad 100644 (file)
@@ -1,7 +1,6 @@
 <inkscape-extension>
     <_name>Postscript Input</_name>
     <id>org.inkscape.input.ps</id>
-    <dependency type="extension">org.inkscape.input.sk</dependency>
     <dependency type="executable">pstoedit</dependency>
     <input>
         <extension>.ps</extension>
@@ -11,7 +10,6 @@
         <output_extension>org.inkscape.output.ps</output_extension>
     </input>
     <script>
-        <command reldir="path">pstoedit -f sk</command>
-        <helper_extension>org.inkscape.input.sk</helper_extension>
+        <command reldir="path">pstoedit -f plot-svg</command>
     </script>
 </inkscape-extension>