From 50dd3bc0fe3f016966657935d6f0b4bdfdcfd84a Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Sun, 4 Sep 2016 13:01:37 -0300 Subject: [PATCH] genkicat/sym2xps: use eeplot for rendering (still has issues) --- genkicat/sym2xps | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/genkicat/sym2xps b/genkicat/sym2xps index 1a74d58..22e1434 100755 --- a/genkicat/sym2xps +++ b/genkicat/sym2xps @@ -56,6 +56,11 @@ EOF X=6000 Y=4000 +# +# @@@ Known bug: doesn't handle spaces in component names (F1) well. +# Example: usb_a_plug.lib had F1 "USB_A_PLUG " 0 ... +# + sed "\@^DEF $sym @,/^ENDDEF/p;d" "$lib" | awk '/^F. / { if ($1 == "F0") sub(/"$/, "?\"", $2); print substr($1, 1, 1), substr($1, 2, 1), $2, @@ -68,6 +73,8 @@ EESchema Schematic File Version 2 date Mon Mar 26 09:29:33 2012 LIBS:dummy EELAYER 43 0 EELAYER END +\$Descr A4 0 0 +\$EndDescr \$Comp L X$sym ?? U $unit 1 00000000 @@ -80,5 +87,7 @@ P $X $Y EOF cd "$tmp" -eeschema --plot=ps "$tmp/tmp.sch" -mv tmp.ps "$out" +#eeschema --plot=ps "$tmp/tmp.sch" +eeplot -o "$tmp/tmp.pdf" "$tmp/tmp.pro" +pdftops "$tmp/tmp.pdf" "$tmp/tmp.ps" +mv "$tmp/tmp.ps" "$out"