mirror of
git://projects.qi-hardware.com/eda-tools.git
synced 2024-11-17 22:46:15 +02:00
genex/sym2xps: also translate and pass on text fields
This commit is contained in:
parent
0f0e732d3f
commit
e52c3cf107
@ -56,6 +56,13 @@ EOF
|
|||||||
X=6000
|
X=6000
|
||||||
Y=4000
|
Y=4000
|
||||||
|
|
||||||
|
sed "/^DEF $sym /,/^ENDDEF/p;d" "$lib" |
|
||||||
|
awk '/^F. / { sub(/"$/, "?\"", $2);
|
||||||
|
print substr($1, 1, 1), substr($1, 2, 1), $2,
|
||||||
|
$6, '$X'+$3, '$Y'+$4, $5, " 0000", $8, $9 }' >"$tmp"/fx.tmp
|
||||||
|
#F field_number "text" orientation posX posY size Flags (see below)
|
||||||
|
#F0 reference posx posy text_size text_orient visibile htext_justify vtext_justify
|
||||||
|
|
||||||
cat <<EOF >"$tmp"/tmp.sch
|
cat <<EOF >"$tmp"/tmp.sch
|
||||||
EESchema Schematic File Version 2 date Mon Mar 26 09:29:33 2012
|
EESchema Schematic File Version 2 date Mon Mar 26 09:29:33 2012
|
||||||
LIBS:dummy
|
LIBS:dummy
|
||||||
@ -65,6 +72,7 @@ EELAYER END
|
|||||||
L X$sym ??
|
L X$sym ??
|
||||||
U $unit 1 00000000
|
U $unit 1 00000000
|
||||||
P $X $Y
|
P $X $Y
|
||||||
|
`cat "$tmp"/fx.tmp`
|
||||||
$unit $X $Y
|
$unit $X $Y
|
||||||
1 0 0 -1
|
1 0 0 -1
|
||||||
\$EndComp
|
\$EndComp
|
||||||
|
Loading…
Reference in New Issue
Block a user