1
<?xml version="1.0" encoding="utf-8"?>
2
#set $ipins = int($pins)
3
#set $widthin = (0.1 * $ipins)
4
#set $width = $widthin * 100
5
#set $heightin = float($pitch)
6
#set $height = $heightin * 100
7
#set $halfheight = ($height / 2.0) + 1.5
8
<svg version="1.2" baseProfile="tiny" id="svg2" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
9
width="${widthin}in" height="${heightin}in" viewBox="0 0 ${width} ${height}" xml:space="preserve">
12
<rect id="middle" x="0" y="0" fill="#303030" width="${width}" height="${height - 3}" />
15
<rect id="top" x="0" y="0" fill="#3D3D3D" width="${width}" height="2.46"/>
16
<rect id="bottom" x="0" y="${height - 2.46 - 3}" fill="#000000" width="${width}" height="2.46"/>
20
<polygon id="right" fill="#141414" points="${width},0 ${width - 0.75},2.46 ${width - 0.75},${height - 5.46} ${width},${height - 3}"/>
21
<polygon id="left" fill="#1F1F1F" points="0,0 0.75,2.46 0.75,${height - 5.46} 0,${height - 3}"/>
25
<polygon id="left-upper-rect" fill="#1C1C1C" points="5,${halfheight - 8} 0.75,${halfheight - 8.04} 0.56,${halfheight - 5.92} 0.56,${halfheight - 3} 5,${halfheight - 3}"/>
26
<polygon id="left-lower-rect" fill="#383838" points="0.75,${halfheight + 2.05} 5,${halfheight + 2.05} 5,${halfheight - 3} 0.56,${halfheight - 3} 0.56,${halfheight + 2.92 - 3}"/>
28
<path id="slot" fill="#262626" d="M0.56,${halfheight - 5.92}v5.83c1.47-0.17,2.62-1.4,2.62-2.92C3.18,${halfheight - 4.53},2.04,${halfheight - 5.75},0.56,${halfheight - 5.92}z"/>
29
<path id="cover" fill="#303030" d="M0.75,2.46V${halfheight - 8.05}c2.38,0.45,4.19,2.53,4.19,5.04c0,2.51-1.8,4.6-4.19,5.05V${halfheight + 2.05}h5.0V2.46H0.75z"/>
30
<circle fill="#212121" cx="6.5" cy="${height - 9.53}" r="2.06"/>
32
<text id="label" x="6.5" y="${(height / 2)}" fill="#e6e6e6" stroke="none" font-family="OCRA" text-anchor="start" font-size="8" >${label}</text>
35
<rect id="connector0pin" x="3.5" y="${height - 4.34}" fill="#8C8C8C" width="3" height="4.34"/>
36
<rect id="connector0terminal" x="3.5" y="${height - 3}" fill="#8C8C8C" width="3" height="3"/>
38
<polygon fill="#8C8C8C" points="3.5,${height - 4.34} 3.5,${height - 2.34} 6.5,${height - 2.34} 8.5,${height - 3.26} 8.5,${height - 4.34} "/>
42
<rect id="connector${ipins - 1}pin" x="${width - 6.5}" y="${height - 4.34}" fill="#8C8C8C" width="3" height="4.34"/>
43
<rect id="connector${ipins - 1}terminal" x="${width - 6.5}" y="${height - 3}" fill="#8C8C8C" width="3" height="3"/>
44
<polygon fill="#8C8C8C" points="${width - 8.5},${height - 4.34} ${width - 8.5},${height - 3.26} ${width - 6.5},${height - 2.34} ${width - 3.5},${height - 2.34} ${width - 3.5},${height - 4.34}"/>
47
#for $pin in range($ipins - 2)
48
#set $pinx = 13.5 + ($pin * 10)
49
<rect id="connector${pin + 1}pin" x="${pinx}" y="${height - 4.34}" fill="#8C8C8C" width="3" height="4.34"/>
50
<rect id="connector${pin + 1}terminal" x="${pinx}" y="${height - 3}" fill="#8C8C8C" width="3" height="3"/>
51
<polygon fill="#8C8C8C" points="${pinx - 2},${height - 4.34} ${pinx - 2},${height - 3.26} ${pinx},${height - 2.34} ${pinx + 3},${height - 2.34} ${pinx + 5},${height - 3.26} ${pinx + 5},${height - 4.34}"/>