netlist: Fix component refdes mangling
[geda-gaf.git] / tests / gaf / xmlread.sch.xml
blob53bfb11b9fc47a00fbed1399703356ba61337916
1 <?xml version="1.0" encoding="UTF-8"?>
2 <schematic xmlns="https://hedmen.org/xorn/schematic/"
3            file-format-features="experimental">
4   <content>
5     <!-- Objects -->
6     <text x="0" y="10.1" size="16">Objects</text>
7     <box x="0" y="2.8" width="2.5" height="7" linewidth=".01" capstyle="square"/>
9     <text x=".5" y="9.2" size="12">Nets and pins</text>
10     <net x0=".5" y0="8.9" x1="2" y1="8.9"/>
11     <net x0=".5" y0="8.7" x1="2" y1="8.7"/>
12     <net x0=".5" y0="8.5" x1="2" y1="8.5" type="bus"/>
13     <pin x0=".5" y0="8.3" x1="2" y1="8.3"/>
14     <pin x0=".5" y0="8.1" x1="2" y1="8.1" inverted="no"/>
15     <pin x0=".5" y0="7.9" x1="2" y1="7.9" inverted="yes"/>
16     <pin x0=".5" y0="7.7" x1="2" y1="7.7" type="bus"/>
17     <pin x0=".5" y0="7.5" x1="2" y1="7.5" type="bus" inverted="no"/>
18     <pin x0=".5" y0="7.3" x1="2" y1="7.3" type="bus" inverted="yes"/>
20     <text x=".5" y="6.6" size="12">Circles and arcs</text>
21     <circle x="1" y="5.8" radius=".4" linewidth=".01" capstyle="square"/>
22     <arc x="1" y="5.8" radius=".5" startangle="90" sweepangle="60"
23          linewidth=".05" capstyle="square" dashstyle="dotted" dashspace=".1"/>
24     <arc x="1" y="5.8" radius=".5" startangle="210" sweepangle="60"
25          linewidth=".05" capstyle="square" dashstyle="dotted" dashspace=".1"/>
26     <arc x="1" y="5.8" radius=".5" startangle="330" sweepangle="60"
27          linewidth=".05" capstyle="square" dashstyle="dotted" dashspace=".1"/>
29     <text x=".5" y="4.6" size="12">Paths</text>
30     <path linewidth=".01">M 600,3300<br/>C 100,3300 1300,4300 800,4300<br/>C 300,4300 1500,3300 1000,3300<br/>C 500,3300 1700,4300 1200,4300</path>
32     <!-- Components and pictures -->
33     <text x="3" y="10.1" size="16">Components and pictures</text>
34     <box x="3" y="0" width="5" height="9.8" linewidth=".01" capstyle="square"/>
36     <text x="3.5" y="9.1" size="12">Reference modes</text>
37     <component x="3.5" y="8.2" symbol="referenced-symbol"/>
38     <component x="4.2" y="8.2" symbol="embedded-symbol"/>
39     <component x="4.9" y="8.2" symbol="omitted-symbol"/>
40     <picture x="3.5" y="7" width=".7" height=".9" pixmap="referenced-pixmap"/>
41     <picture x="4.5" y="7" width=".7" height=".9" pixmap="embedded-pixmap"/>
42     <picture x="5.5" y="7" width=".7" height=".9" pixmap="omitted-pixmap"/>
44     <text x="3.5" y="6.3" size="12">Component angle/mirror</text>
45     <component x="4.1" y="5.4" angle="0" symbol="referenced-symbol"/>
46     <component x="4.1" y="5.4" angle="90" symbol="referenced-symbol"/>
47     <component x="4.1" y="5.4" angle="180" symbol="referenced-symbol"/>
48     <component x="4.1" y="5.4" angle="270" symbol="referenced-symbol"/>
49     <component x="5.6" y="5.4" angle="0"
50                mirror="yes" symbol="referenced-symbol"/>
51     <component x="5.6" y="5.4" angle="90"
52                mirror="yes" symbol="referenced-symbol"/>
53     <component x="5.6" y="5.4" angle="180"
54                mirror="yes" symbol="referenced-symbol"/>
55     <component x="5.6" y="5.4" angle="270"
56                mirror="yes" symbol="referenced-symbol"/>
57     <component x="4.1" y="3.8" angle="0" symbol="res">
58       <attribute name="refdes" x="4.2" y="4.1" size="10" visible="yes"
59                  show="value" angle="0">R?</attribute>
60     </component>
61     <component x="4.1" y="3.8" angle="90" symbol="res">
62       <attribute name="refdes" x="3.8" y="3.9" size="10" visible="yes"
63                  show="value" angle="90">R?</attribute>
64     </component>
65     <component x="4.1" y="3.8" angle="180" symbol="res">
66       <attribute name="refdes" x="4" y="3.5" size="10" visible="yes"
67                  show="value" angle="180">R?</attribute>
68     </component>
69     <component x="4.1" y="3.8" angle="270" symbol="res">
70       <attribute name="refdes" x="4.4" y="3.7" size="10" visible="yes"
71                  show="value" angle="270">R?</attribute>
72     </component>
73     <component x="5.6" y="3.8" angle="0" mirror="yes" symbol="res">
74       <attribute name="refdes" x="5.5" y="4.1" size="10" visible="yes"
75                  show="value" angle="0" alignment="lower-right">R?</attribute>
76     </component>
77     <component x="5.6" y="3.8" angle="90" mirror="yes" symbol="res">
78       <attribute name="refdes" x="5.3" y="3.7" size="10" visible="yes"
79                  show="value" angle="90" alignment="lower-right">R?</attribute>
80     </component>
81     <component x="5.6" y="3.8" angle="180" mirror="yes" symbol="res">
82       <attribute name="refdes" x="5.7" y="3.5" size="10" visible="yes"
83                  show="value" angle="180" alignment="lower-right">R?</attribute>
84     </component>
85     <component x="5.6" y="3.8" angle="270" mirror="yes" symbol="res">
86       <attribute name="refdes" x="5.9" y="3.9" size="10" visible="yes"
87                  show="value" angle="270" alignment="lower-right">R?</attribute>
88     </component>
90     <text x="3.5" y="2.6" size="12">Picture angle/mirror</text>
91     <picture x="4.4" y="1.4" width=".7" height=".9" angle="0"
92              pixmap="referenced-pixmap"/>
93     <picture x="3.5" y="1.4" width=".9" height=".7" angle="90"
94              pixmap="referenced-pixmap"/>
95     <picture x="3.7" y=".5" width=".7" height=".9" angle="180"
96              pixmap="referenced-pixmap"/>
97     <picture x="4.4" y=".7" width=".9" height=".7" angle="270"
98              pixmap="referenced-pixmap"/>
99     <picture x="5.9" y="1.4" width=".7" height=".9" angle="0" mirrored="yes"
100              pixmap="referenced-pixmap"/>
101     <picture x="5.7" y=".7" width=".9" height=".7" angle="90" mirrored="yes"
102              pixmap="referenced-pixmap"/>
103     <picture x="6.6" y=".5" width=".7" height=".9" angle="180" mirrored="yes"
104              pixmap="referenced-pixmap"/>
105     <picture x="6.6" y="1.4" width=".9" height=".7" angle="270" mirrored="yes"
106              pixmap="referenced-pixmap"/>
108     <!-- General attributes -->
109     <text x="8.5" y="10.1" size="16">General attributes</text>
110     <box x="8.5" y="1.4" width="4.3" height="8.4"
111          linewidth=".01" capstyle="square"/>
113     <text x="9" y="9.1" size="12">Colors</text>
114     <box x="9" y="8.6" width=".5" height=".3" color="background"
115          linewidth=".01" capstyle="square" filltype="fill"/>
116     <box x="9" y="8.1" width=".5" height=".3" color="pin"
117          linewidth=".01" capstyle="square" filltype="fill"/>
118     <box x="9" y="7.6" width=".5" height=".3" color="net-endpoint"
119          linewidth=".01" capstyle="square" filltype="fill"/>
120     <box x="9" y="7.1" width=".5" height=".3" color="graphic"
121          linewidth=".01" capstyle="square" filltype="fill"/>
122     <box x="9" y="6.6" width=".5" height=".3" color="net"
123          linewidth=".01" capstyle="square" filltype="fill"/>
124     <box x="9.7" y="8.6" width=".5" height=".3" color="attribute"
125          linewidth=".01" capstyle="square" filltype="fill"/>
126     <box x="9.7" y="8.1" width=".5" height=".3" color="logic-bubble"
127          linewidth=".01" capstyle="square" filltype="fill"/>
128     <box x="9.7" y="7.6" width=".5" height=".3" color="dots-grid"
129          linewidth=".01" capstyle="square" filltype="fill"/>
130     <box x="9.7" y="7.1" width=".5" height=".3" color="detached-attribute"
131          linewidth=".01" capstyle="square" filltype="fill"/>
132     <box x="9.7" y="6.6" width=".5" height=".3" color="text"
133          linewidth=".01" capstyle="square" filltype="fill"/>
134     <box x="10.4" y="8.6" width=".5" height=".3" color="bus"
135          linewidth=".01" capstyle="square" filltype="fill"/>
136     <box x="10.4" y="8.1" width=".5" height=".3" color="select"
137          linewidth=".01" capstyle="square" filltype="fill"/>
138     <box x="10.4" y="7.6" width=".5" height=".3" color="boundingbox"
139          linewidth=".01" capstyle="square" filltype="fill"/>
140     <box x="10.4" y="7.1" width=".5" height=".3" color="zoom-box"
141          linewidth=".01" capstyle="square" filltype="fill"/>
142     <box x="10.4" y="6.6" width=".5" height=".3" color="stroke"
143          linewidth=".01" capstyle="square" filltype="fill"/>
144     <box x="11.1" y="8.6" width=".5" height=".3" color="lock"
145          linewidth=".01" capstyle="square" filltype="fill"/>
146     <box x="11.1" y="8.1" width=".5" height=".3" color="output-background"
147          linewidth=".01" capstyle="square" filltype="fill"/>
148     <box x="11.1" y="7.6" width=".5" height=".3" color="freestyle1"
149          linewidth=".01" capstyle="square" filltype="fill"/>
150     <box x="11.1" y="7.1" width=".5" height=".3" color="freestyle3"
151          linewidth=".01" capstyle="square" filltype="fill"/>
152     <box x="11.1" y="6.6" width=".5" height=".3" color="freestyle4"
153          linewidth=".01" capstyle="square" filltype="fill"/>
155     <text x="9" y="5.9" size="12">Line attributes</text>
156     <text x="9" y="5.5" size="12">Width</text>
157     <line x0="9" y0="5.3" x1="10.5" y1="5.3" linewidth="0" capstyle="square"/>
158     <line x0="9" y0="5.1" x1="10.5" y1="5.1" linewidth=".005" capstyle="square"/>
159     <line x0="9" y0="4.9" x1="10.5" y1="4.9" linewidth=".01" capstyle="square"/>
160     <line x0="9" y0="4.7" x1="10.5" y1="4.7" linewidth=".015" capstyle="square"/>
161     <line x0="9" y0="4.5" x1="10.5" y1="4.5" linewidth=".02" capstyle="square"/>
162     <line x0="9" y0="4.3" x1="10.5" y1="4.3" linewidth=".025" capstyle="square"/>
163     <line x0="9" y0="4.1" x1="10.5" y1="4.1" linewidth=".03" capstyle="square"/>
164     <line x0="9" y0="3.9" x1="10.5" y1="3.9" linewidth=".035" capstyle="square"/>
165     <line x0="9" y0="3.7" x1="10.5" y1="3.7" linewidth=".04" capstyle="square"/>
166     <line x0="9" y0="3.5" x1="10.5" y1="3.5" linewidth=".045" capstyle="square"/>
167     <line x0="9" y0="3.3" x1="10.5" y1="3.3" linewidth=".05" capstyle="square"/>
169     <text x="10.8" y="5.5" size="12">Cap style</text>
170     <line x0="10.8" y0="5.3" x1="12.3" y1="5.3" linewidth=".01" capstyle="none"/>
171     <line x0="10.8" y0="5.1" x1="12.3" y1="5.1" linewidth=".01" capstyle="square"/>
172     <line x0="10.8" y0="4.9" x1="12.3" y1="4.9" linewidth=".01" capstyle="round"/>
174     <text x="10.8" y="4.3" size="12">Dash style</text>
175     <line x0="10.8" y0="4.1" x1="12.3" y1="4.1" linewidth=".01" capstyle="square"
176           dashstyle="solid"/>
177     <line x0="10.8" y0="3.9" x1="12.3" y1="3.9" linewidth=".01" capstyle="square"
178           dashstyle="dotted" dashspace=".1"/>
179     <line x0="10.8" y0="3.7" x1="12.3" y1="3.7" linewidth=".01" capstyle="square"
180           dashstyle="dashed" dashlength=".1" dashspace=".1"/>
181     <line x0="10.8" y0="3.5" x1="12.3" y1="3.5" linewidth=".01" capstyle="square"
182           dashstyle="center" dashlength=".1" dashspace=".1"/>
183     <line x0="10.8" y0="3.3" x1="12.3" y1="3.3" linewidth=".01" capstyle="square"
184           dashstyle="phantom" dashlength=".1" dashspace=".1"/>
186     <text x="9" y="2.6" size="12">Fill types</text>
187     <box x="9" y="1.9" width=".5" height=".5" linewidth=".01" capstyle="square"
188          filltype="hollow"/>
189     <box x="9.7" y="1.9" width=".5" height=".5" linewidth=".01" capstyle="square"
190          filltype="fill"/>
191     <box x="10.4" y="1.9" width=".5" height=".5" linewidth=".01" capstyle="square"
192          filltype="mesh" fillwidth=".001" angle0="45" pitch0=".1"
193                                          angle1="135" pitch1=".1"/>
194     <box x="11.1" y="1.9" width=".5" height=".5" linewidth=".01" capstyle="square"
195          filltype="hatch" fillwidth=".001" angle0="45" pitch0=".1"/>
196     <box x="11.8" y="1.9" width=".5" height=".5" linewidth=".01" capstyle="square"
197          filltype="void"/>
199     <!-- Text attributes -->
200     <text x="13.3" y="10.1" size="16">Text attributes</text>
201     <box x="13.3" y="2.6" width="6.6" height="7.2"
202          linewidth=".01" capstyle="square"/>
204     <text x="13.8" y="9.1" size="12">Size</text>
205     <text x="13.8" y="8.8" size="8">size 8</text>
206     <text x="13.8" y="8.6" size="10">size 10</text>
207     <text x="13.8" y="8.4" size="12">size 12</text>
208     <text x="13.8" y="8.15" size="16">size 16</text>
209     <text x="13.8" y="7.8" size="20">size 20</text>
210     <text x="13.8" y="7.4" size="24">size 24</text>
212     <text x="13.8" y="6.7" size="12">Show name/value</text>
213     <attribute name="name" x="13.8" y="6.3" color="text" size="12"
214                visible="yes" show="name-value">value</attribute>
215     <attribute name="name" x="13.8" y="6" color="text" size="12"
216                visible="yes" show="value">value</attribute>
217     <attribute name="name" x="13.8" y="5.7" color="text" size="12"
218                visible="yes" show="name">value</attribute>
219     <attribute name="name" x="13.8" y="6.3" color="text" size="12"
220                visible="no" show="name-value">value</attribute>
221     <attribute name="name" x="13.8" y="6" color="text" size="12"
222                visible="no" show="value">value</attribute>
223     <attribute name="name" x="13.8" y="5.7" color="text" size="12"
224                visible="no" show="name">value</attribute>
226     <text x="13.8" y="5" size="12">Multiline text</text>
227     <text x="13.8" y="4.1" size="12">First line<br/>Second line <overbar>with overbar</overbar>!<br/>Third line</text>
228     <attribute name="multiline-text" x="13.8" y="3.2" color="text" size="12" visible="yes" show="value">First line<br/>Second line <overbar>with overbar</overbar>!<br/>Third line</attribute>
230     <text x="17.3" y="9.1" size="12">Angle</text>
231     <text x="18.1" y="8.2" size="12" angle="0">0 deg</text>
232     <text x="18.1" y="8.2" size="12" angle="90">90 deg</text>
233     <text x="18.1" y="8.2" size="12" angle="180">180 deg</text>
234     <text x="18.1" y="8.2" size="12" angle="270">270 deg</text>
236     <text x="17.3" y="6.8" size="12">Alignment</text>
237     <component x="18.8" y="6.3" symbol="cross"/>
238     <text x="18.8" y="6.3" size="12" alignment="lower-left">ABC</text>
239     <component x="18.8" y="5.8" symbol="cross"/>
240     <text x="18.8" y="5.8" size="12" alignment="middle-left">ABC</text>
241     <component x="18.8" y="5.3" symbol="cross"/>
242     <text x="18.8" y="5.3" size="12" alignment="upper-left">ABC</text>
243     <component x="18.3" y="6.3" symbol="cross"/>
244     <text x="18.3" y="6.3" size="12" alignment="lower-middle">ABC</text>
245     <component x="18.3" y="5.8" symbol="cross"/>
246     <text x="18.3" y="5.8" size="12" alignment="middle-middle">ABC</text>
247     <component x="18.3" y="5.3" symbol="cross"/>
248     <text x="18.3" y="5.3" size="12" alignment="upper-middle">ABC</text>
249     <component x="17.8" y="6.3" symbol="cross"/>
250     <text x="17.8" y="6.3" size="12" alignment="lower-right">ABC</text>
251     <component x="17.8" y="5.8" symbol="cross"/>
252     <text x="17.8" y="5.8" size="12" alignment="middle-right">ABC</text>
253     <component x="17.8" y="5.3" symbol="cross"/>
254     <text x="17.8" y="5.3" size="12" alignment="upper-right">ABC</text>
256     <text x="17.3" y="4.5" size="12">Attached text</text>
257     <net x0="17.3" y0="4" x1="18.5" y1="4">
258       <attribute name="netname" x="17.3" y="4.05" size="10"
259                  visible="yes" show="name-value">A</attribute>
260       <text x="17.3" y="3.8" size="10">attached text</text>
261     </net>
262     <component x="18.5" y="3.9" symbol="res">
263       <attribute name="refdes" x="18.6" y="4.2" size="10"
264                  visible="yes" show="value">R1</attribute>
265     </component>
267     <text x="17.3" y="3.2" size="12">Text with backslash: \</text>
268   </content>
270   <symbol id="res" name="res.sym" mode="referenced">
271     <content>
272       <attribute name="refdes" x=".1" y=".3" color="detached-attribute"
273                  size="10" visible="yes" show="value">R?</attribute>
274       <pin x0="0" y0=".1" x1=".1" y1=".1">
275         <attribute name="pinnumber" x=".05" y=".15" size="8" visible="no"
276                    show="value" alignment="lower-right">1</attribute>
277       </pin>
278       <box x=".1" y="0" width=".4" height=".2" linewidth=".01" capstyle="round"/>
279       <pin x0=".6" y0=".1" x1=".5" y1=".1">
280         <attribute name="pinnumber" x=".55" y=".15" size="8" visible="no"
281                    show="value">2</attribute>
282       </pin>
283     </content>
284   </symbol>
286   <symbol id="cross" name="cross.sym" mode="referenced">
287     <content>
288       <line x0="-2" y0="0" x1=".2" y1="0" linewidth=".01" capstyle="square"/>
289       <line x0="0" y0="-2" x1="0" y1=".2" linewidth=".01" capstyle="square"/>
290     </content>
291   </symbol>
293   <symbol id="referenced-symbol" name="referenced.sym" mode="referenced">
294     <content>
295       <line x0="0" y0="0" x1="0" y1=".6" linewidth=".01" capstyle="square"/>
296       <line x0="0" y0=".6" x1=".2" y1=".6" linewidth=".01" capstyle="square"/>
297       <arc x=".2" y=".45" radius=".15" startangle="270" sweepangle="180"
298            linewidth=".01" capstyle="square"/>
299       <line x0=".2" y0=".3" x1="0" y1=".3" linewidth=".01" capstyle="square"/>
300       <line x0=".2" y0=".3" x1=".4" y1="0" linewidth=".01" capstyle="square"/>
301     </content>
302   </symbol>
303   <symbol id="embedded-symbol" name="embedded.sym" mode="embedded">
304     <content>
305       <line x0="0" y0="0" x1="0" y1=".6" linewidth=".01" capstyle="square"/>
306       <line x0="0" y0=".6" x1=".2" y1=".6" linewidth=".01" capstyle="square"/>
307       <arc x=".2" y=".45" radius=".15" startangle="270" sweepangle="180"
308            linewidth=".01" capstyle="square"/>
309       <line x0=".2" y0=".3" x1="0" y1=".3" linewidth=".01" capstyle="square"/>
310       <line x0=".2" y0=".3" x1=".4" y1="0" linewidth=".01" capstyle="square"/>
311     </content>
312   </symbol>
313   <symbol id="omitted-symbol" name="omitted.sym" mode="omitted"/>
315   <pixmap id="referenced-pixmap" name="referenced.png" mode="referenced">
316 iVBORw0KGgoAAAANSUhEUgAAAAcAAAAJCAYAAAD+WDajAAAABmJLR0QA/wD/AP+gvaeTAAAA
317 NklEQVQY042NQQoAIAzDmuH/vxxPwhAVcyo0EJKYAypjjf0ErDx4nnw3AXu/dhvw2uxC3XqA
318 E8+wHw3W/ClgAAAAAElFTkSuQmCC
319   </pixmap>
320   <pixmap id="embedded-pixmap" name="embedded.png" mode="embedded">
321 iVBORw0KGgoAAAANSUhEUgAAAAcAAAAJCAYAAAD+WDajAAAABmJLR0QA/wD/AP+gvaeTAAAA
322 NklEQVQY042NQQoAIAzDmuH/vxxPwhAVcyo0EJKYAypjjf0ErDx4nnw3AXu/dhvw2uxC3XqA
323 E8+wHw3W/ClgAAAAAElFTkSuQmCC
324   </pixmap>
325   <pixmap id="omitted-pixmap" name="omitted.png" mode="omitted"/>
326 </schematic>