]> git.tokkee.org Git - inkscape.git/commitdiff

Code

r11468@tres: ted | 2006-04-19 21:55:33 -0700
authorgouldtj <gouldtj@users.sourceforge.net>
Tue, 2 May 2006 05:26:25 +0000 (05:26 +0000)
committergouldtj <gouldtj@users.sourceforge.net>
Tue, 2 May 2006 05:26:25 +0000 (05:26 +0000)
 Setting up the Adobe Illustrator XSLT script to run as an extension.

share/extensions/Makefile.am
share/extensions/aisvg.inx [new file with mode: 0644]
share/extensions/aisvg.xslt [new file with mode: 0644]
share/extensions/ill2svg.xslt [deleted file]

index 293a313a9ab9b692c982c3945082530b03938846..9571b60c202e71da705002cf4d883be75003134b 100644 (file)
@@ -53,13 +53,15 @@ extensions = \
        gimp_xcf.py \
        eqtexsvg.py
 
-otherstuff =
+otherstuff = \
+    aisvg.xslt
 
 modules = \
        svgz_input.inx \
        svgz_output.inx \
        ai_input.inx \
        ai_output.inx \
+       aisvg.inx \
        ps_input.inx \
        eps_input.inx \
        sk_input.inx \
diff --git a/share/extensions/aisvg.inx b/share/extensions/aisvg.inx
new file mode 100644 (file)
index 0000000..3168e04
--- /dev/null
@@ -0,0 +1,13 @@
+<inkscape-extension>
+    <_name>AI SVG Input</_name>
+    <id>org.inkscape.input.aisvg</id>
+    <input>
+        <extension>.ai.svg</extension>
+        <mimetype>text/xml+svg</mimetype>
+        <_filetypename>Adobe Illustrator SVG (*.ai.svg)</_filetypename>
+        <_filetypetooltip>Cleans the cruft out of Adobe Illustrator SVGs before opening</_filetypetooltip>
+    </input>
+    <xslt>
+        <file reldir="extensions">aisvg.xslt</file>
+    </xslt>
+</inkscape-extension>
diff --git a/share/extensions/aisvg.xslt b/share/extensions/aisvg.xslt
new file mode 100644 (file)
index 0000000..146a439
--- /dev/null
@@ -0,0 +1,25 @@
+<?xml version="1.0"?>\r
+<xsl:stylesheet  xml:space="default" version="2.0" \r
+xmlns:xsl="http://www.w3.org/1999/XSL/Transform"\r
+xmlns="http://www.w3.org/2000/svg"\r
+xmlns:svg="http://www.w3.org/2000/svg"\r
+xmlns:xlink="http://www.w3.org/1999/xlink"\r
+xmlns:x="http://ns.adobe.com/Extensibility/1.0/" \r
+xmlns:i="http://ns.adobe.com/AdobeIllustrator/10.0/" \r
+xmlns:graph="http://ns.adobe.com/Graphs/1.0/" \r
+xmlns:a="http://ns.adobe.com/AdobeSVGViewerExtensions/3.0/" >\r
+<xsl:output indent="yes"/>\r
+       <xsl:template match="/">\r
+                       <xsl:apply-templates />\r
+       </xsl:template>\r
+       <xsl:template match="*">\r
+               <xsl:copy>\r
+               <xsl:apply-templates select="@*|node()|text"/>\r
+               </xsl:copy>\r
+       </xsl:template>\r
+       <xsl:template match="@*">\r
+               <xsl:copy/>\r
+       </xsl:template>\r
+       <xsl:template match="i:*|@i:*|x:*|@x:*|graph:*|@graph:*|a:*|@a:*">\r
+       </xsl:template>\r
+</xsl:stylesheet>
\ No newline at end of file
diff --git a/share/extensions/ill2svg.xslt b/share/extensions/ill2svg.xslt
deleted file mode 100644 (file)
index 146a439..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-<?xml version="1.0"?>\r
-<xsl:stylesheet  xml:space="default" version="2.0" \r
-xmlns:xsl="http://www.w3.org/1999/XSL/Transform"\r
-xmlns="http://www.w3.org/2000/svg"\r
-xmlns:svg="http://www.w3.org/2000/svg"\r
-xmlns:xlink="http://www.w3.org/1999/xlink"\r
-xmlns:x="http://ns.adobe.com/Extensibility/1.0/" \r
-xmlns:i="http://ns.adobe.com/AdobeIllustrator/10.0/" \r
-xmlns:graph="http://ns.adobe.com/Graphs/1.0/" \r
-xmlns:a="http://ns.adobe.com/AdobeSVGViewerExtensions/3.0/" >\r
-<xsl:output indent="yes"/>\r
-       <xsl:template match="/">\r
-                       <xsl:apply-templates />\r
-       </xsl:template>\r
-       <xsl:template match="*">\r
-               <xsl:copy>\r
-               <xsl:apply-templates select="@*|node()|text"/>\r
-               </xsl:copy>\r
-       </xsl:template>\r
-       <xsl:template match="@*">\r
-               <xsl:copy/>\r
-       </xsl:template>\r
-       <xsl:template match="i:*|@i:*|x:*|@x:*|graph:*|@graph:*|a:*|@a:*">\r
-       </xsl:template>\r
-</xsl:stylesheet>
\ No newline at end of file