From ad636985b2c8ebe804f18cd26ed3131705a578af Mon Sep 17 00:00:00 2001 From: buliabyak Date: Sat, 29 Sep 2007 01:47:14 +0000 Subject: [PATCH] cdr import via uniconvertor --- share/extensions/Makefile.am | 2 ++ share/extensions/cdr2svg.sh | 11 +++++++++++ share/extensions/cdr_input.inx | 16 ++++++++++++++++ 3 files changed, 29 insertions(+) create mode 100755 share/extensions/cdr2svg.sh create mode 100644 share/extensions/cdr_input.inx diff --git a/share/extensions/Makefile.am b/share/extensions/Makefile.am index fedc580e2..0dfcd1d1a 100644 --- a/share/extensions/Makefile.am +++ b/share/extensions/Makefile.am @@ -14,6 +14,7 @@ moduledir = $(datadir)/inkscape/extensions extensions = \ addnodes.py \ bezmisc.py \ + cdr2svg.sh\ chardataeffect.py\ color_brighter.py\ color_custom.py\ @@ -113,6 +114,7 @@ modules = \ ai_input.inx \ ai_output.inx \ aisvg.inx \ + cdr_input.inx\ color_brighter.inx\ color_custom.inx \ color_darker.inx\ diff --git a/share/extensions/cdr2svg.sh b/share/extensions/cdr2svg.sh new file mode 100755 index 000000000..73059a60f --- /dev/null +++ b/share/extensions/cdr2svg.sh @@ -0,0 +1,11 @@ +#! /bin/sh +rc=0 +TMPDIR="${TMPDIR-/tmp}" +TEMPFILENAME=`mktemp 2>/dev/null || echo "$TMPDIR/$$"` +TEMPFILENAME=${TEMPFILENAME}.svg + +uniconv "$1" "${TEMPFILENAME}" > /dev/null 2>&1 || rc=1 + +cat < "${TEMPFILENAME}" || rc=1 +rm -f "${TEMPFILENAME}" +exit $rc diff --git a/share/extensions/cdr_input.inx b/share/extensions/cdr_input.inx new file mode 100644 index 000000000..640f4821e --- /dev/null +++ b/share/extensions/cdr_input.inx @@ -0,0 +1,16 @@ + + <_name>Corel Draw Input + org.inkscape.input.cdr + uniconv + cdr2svg.sh + + .cdr + image/x-xcdr + <_filetypename>Corel Draw document (*.cdr) + <_filetypetooltip>Open files saved from Corel Draw + org.inkscape.output.cdr + + + -- 2.30.2