annotate nodejs/examples/scribbo/test.svg @ 1434:4be04f29fa70

Add functions to search for the text recursively inside coord_t tree. Once we find the first instance, we change the text of it. We need to think about how to manage the multiple segment texts, which is composed of several tspan.
author wycc
date Mon, 11 Apr 2011 12:52:09 +0800
parents c297ceec37f2
children
rev   line source
1375
37dc1ce76bba Add example files for the coord_hide issue
wycc
parents:
diff changeset
1 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
37dc1ce76bba Add example files for the coord_hide issue
wycc
parents:
diff changeset
2 <!-- Created with Inkscape (http://www.inkscape.org/) -->
37dc1ce76bba Add example files for the coord_hide issue
wycc
parents:
diff changeset
3
37dc1ce76bba Add example files for the coord_hide issue
wycc
parents:
diff changeset
4 <svg
1403
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1375
diff changeset
5 xmlns:ns0="http://madbutterfly.sourceforge.net/DTD/madbutterfly.dtd"
1375
37dc1ce76bba Add example files for the coord_hide issue
wycc
parents:
diff changeset
6 xmlns:dc="http://purl.org/dc/elements/1.1/"
37dc1ce76bba Add example files for the coord_hide issue
wycc
parents:
diff changeset
7 xmlns:cc="http://creativecommons.org/ns#"
37dc1ce76bba Add example files for the coord_hide issue
wycc
parents:
diff changeset
8 xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
37dc1ce76bba Add example files for the coord_hide issue
wycc
parents:
diff changeset
9 xmlns:svg="http://www.w3.org/2000/svg"
37dc1ce76bba Add example files for the coord_hide issue
wycc
parents:
diff changeset
10 xmlns="http://www.w3.org/2000/svg"
37dc1ce76bba Add example files for the coord_hide issue
wycc
parents:
diff changeset
11 xmlns:xlink="http://www.w3.org/1999/xlink"
37dc1ce76bba Add example files for the coord_hide issue
wycc
parents:
diff changeset
12 xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
37dc1ce76bba Add example files for the coord_hide issue
wycc
parents:
diff changeset
13 xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
1403
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1375
diff changeset
14 width="744.09448"
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1375
diff changeset
15 height="1052.3622"
1375
37dc1ce76bba Add example files for the coord_hide issue
wycc
parents:
diff changeset
16 id="svg2"
37dc1ce76bba Add example files for the coord_hide issue
wycc
parents:
diff changeset
17 version="1.1"
1403
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1375
diff changeset
18 inkscape:version="0.48+devel r9798 custom"
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1375
diff changeset
19 sodipodi:docname="test1.svg"
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1375
diff changeset
20 style="display:inline">
1375
37dc1ce76bba Add example files for the coord_hide issue
wycc
parents:
diff changeset
21 <defs
37dc1ce76bba Add example files for the coord_hide issue
wycc
parents:
diff changeset
22 id="defs4" />
37dc1ce76bba Add example files for the coord_hide issue
wycc
parents:
diff changeset
23 <sodipodi:namedview
37dc1ce76bba Add example files for the coord_hide issue
wycc
parents:
diff changeset
24 id="base"
37dc1ce76bba Add example files for the coord_hide issue
wycc
parents:
diff changeset
25 pagecolor="#ffffff"
37dc1ce76bba Add example files for the coord_hide issue
wycc
parents:
diff changeset
26 bordercolor="#666666"
37dc1ce76bba Add example files for the coord_hide issue
wycc
parents:
diff changeset
27 borderopacity="1.0"
37dc1ce76bba Add example files for the coord_hide issue
wycc
parents:
diff changeset
28 inkscape:pageopacity="0.0"
37dc1ce76bba Add example files for the coord_hide issue
wycc
parents:
diff changeset
29 inkscape:pageshadow="2"
1403
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1375
diff changeset
30 inkscape:zoom="0.98994949"
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1375
diff changeset
31 inkscape:cx="133.62635"
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1375
diff changeset
32 inkscape:cy="774.7615"
1375
37dc1ce76bba Add example files for the coord_hide issue
wycc
parents:
diff changeset
33 inkscape:document-units="px"
1403
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1375
diff changeset
34 inkscape:current-layer="s72724"
1375
37dc1ce76bba Add example files for the coord_hide issue
wycc
parents:
diff changeset
35 showgrid="false"
1403
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1375
diff changeset
36 inkscape:window-width="1680"
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1375
diff changeset
37 inkscape:window-height="975"
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1375
diff changeset
38 inkscape:window-x="0"
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1375
diff changeset
39 inkscape:window-y="25"
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1375
diff changeset
40 inkscape:window-maximized="1" />
1375
37dc1ce76bba Add example files for the coord_hide issue
wycc
parents:
diff changeset
41 <metadata
37dc1ce76bba Add example files for the coord_hide issue
wycc
parents:
diff changeset
42 id="metadata7">
37dc1ce76bba Add example files for the coord_hide issue
wycc
parents:
diff changeset
43 <rdf:RDF>
37dc1ce76bba Add example files for the coord_hide issue
wycc
parents:
diff changeset
44 <cc:Work
37dc1ce76bba Add example files for the coord_hide issue
wycc
parents:
diff changeset
45 rdf:about="">
37dc1ce76bba Add example files for the coord_hide issue
wycc
parents:
diff changeset
46 <dc:format>image/svg+xml</dc:format>
37dc1ce76bba Add example files for the coord_hide issue
wycc
parents:
diff changeset
47 <dc:type
37dc1ce76bba Add example files for the coord_hide issue
wycc
parents:
diff changeset
48 rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
37dc1ce76bba Add example files for the coord_hide issue
wycc
parents:
diff changeset
49 <dc:title></dc:title>
37dc1ce76bba Add example files for the coord_hide issue
wycc
parents:
diff changeset
50 </cc:Work>
37dc1ce76bba Add example files for the coord_hide issue
wycc
parents:
diff changeset
51 </rdf:RDF>
37dc1ce76bba Add example files for the coord_hide issue
wycc
parents:
diff changeset
52 <ns0:scenes
37dc1ce76bba Add example files for the coord_hide issue
wycc
parents:
diff changeset
53 id="main_default_scenes"
37dc1ce76bba Add example files for the coord_hide issue
wycc
parents:
diff changeset
54 name="default">
37dc1ce76bba Add example files for the coord_hide issue
wycc
parents:
diff changeset
55 <ns0:scene
37dc1ce76bba Add example files for the coord_hide issue
wycc
parents:
diff changeset
56 start="0"
37dc1ce76bba Add example files for the coord_hide issue
wycc
parents:
diff changeset
57 type="scale"
37dc1ce76bba Add example files for the coord_hide issue
wycc
parents:
diff changeset
58 ref="s29027"
1403
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1375
diff changeset
59 end="18" />
1375
37dc1ce76bba Add example files for the coord_hide issue
wycc
parents:
diff changeset
60 <ns0:scene
1403
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1375
diff changeset
61 start="19"
1375
37dc1ce76bba Add example files for the coord_hide issue
wycc
parents:
diff changeset
62 type="normal"
1403
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1375
diff changeset
63 ref="s72724" />
1375
37dc1ce76bba Add example files for the coord_hide issue
wycc
parents:
diff changeset
64 </ns0:scenes>
37dc1ce76bba Add example files for the coord_hide issue
wycc
parents:
diff changeset
65 <ns0:components />
37dc1ce76bba Add example files for the coord_hide issue
wycc
parents:
diff changeset
66 </metadata>
37dc1ce76bba Add example files for the coord_hide issue
wycc
parents:
diff changeset
67 <g
37dc1ce76bba Add example files for the coord_hide issue
wycc
parents:
diff changeset
68 inkscape:label="Layer 1"
37dc1ce76bba Add example files for the coord_hide issue
wycc
parents:
diff changeset
69 inkscape:groupmode="layer"
1403
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1375
diff changeset
70 id="layer1"
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1375
diff changeset
71 style="display:inline">
1375
37dc1ce76bba Add example files for the coord_hide issue
wycc
parents:
diff changeset
72 <g
37dc1ce76bba Add example files for the coord_hide issue
wycc
parents:
diff changeset
73 id="s29027"
37dc1ce76bba Add example files for the coord_hide issue
wycc
parents:
diff changeset
74 inkscape:groupmode="layer"
37dc1ce76bba Add example files for the coord_hide issue
wycc
parents:
diff changeset
75 scene_group="true"
1403
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1375
diff changeset
76 style="display: none">
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1375
diff changeset
77 <g
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1375
diff changeset
78 id="g16"
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1375
diff changeset
79 saved_id="g16"
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1375
diff changeset
80 ns0:duplicate-src="g16"
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1375
diff changeset
81 transform="translate(-48.487323,23.99001)">
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1375
diff changeset
82 <image
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1375
diff changeset
83 saved_id="image76"
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1375
diff changeset
84 width="148.48216"
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1375
diff changeset
85 height="186.12172"
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1375
diff changeset
86 xlink:href="file:///home/wycc/devel/md6/MadButterfly/nodejs/examples/mce/cat0.png"
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1375
diff changeset
87 id="image76"
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1375
diff changeset
88 x="166.17522"
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1375
diff changeset
89 y="93.600594"
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1375
diff changeset
90 ns0:duplicate-src="image76" />
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1375
diff changeset
91 </g>
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1375
diff changeset
92 <g
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1375
diff changeset
93 transform="translate(167.68531,23.99001)"
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1375
diff changeset
94 ns0:duplicate-src="g16"
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1375
diff changeset
95 saved_id="g370"
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1375
diff changeset
96 id="g370">
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1375
diff changeset
97 <image
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1375
diff changeset
98 ns0:duplicate-src="image76"
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1375
diff changeset
99 y="93.600594"
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1375
diff changeset
100 x="166.17522"
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1375
diff changeset
101 id="image372"
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1375
diff changeset
102 xlink:href="file:///home/wycc/devel/md6/MadButterfly/nodejs/examples/mce/cat0.png"
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1375
diff changeset
103 height="186.12172"
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1375
diff changeset
104 width="148.48216"
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1375
diff changeset
105 saved_id="image372" />
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1375
diff changeset
106 </g>
1375
37dc1ce76bba Add example files for the coord_hide issue
wycc
parents:
diff changeset
107 </g>
37dc1ce76bba Add example files for the coord_hide issue
wycc
parents:
diff changeset
108 <g
1403
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1375
diff changeset
109 id="s18562"
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1375
diff changeset
110 inkscape:label="dup"
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1375
diff changeset
111 sodipodi:insensitive="true"
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1375
diff changeset
112 style="display: none">
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1375
diff changeset
113 <g
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1375
diff changeset
114 transform="matrix(1.0,0.0,0.0,0.786332775263,-123.876601,-33.2728727904)"
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1375
diff changeset
115 ns0:duplicate-src="g16"
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1375
diff changeset
116 saved_id="g16"
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1375
diff changeset
117 id="g401"
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1375
diff changeset
118 ref="g16">
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1375
diff changeset
119 <image
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1375
diff changeset
120 ns0:duplicate-src="image76"
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1375
diff changeset
121 y="93.600594"
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1375
diff changeset
122 x="166.17522"
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1375
diff changeset
123 id="image403"
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1375
diff changeset
124 xlink:href="file:///home/wycc/devel/md6/MadButterfly/nodejs/examples/mce/cat0.png"
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1375
diff changeset
125 height="186.12172"
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1375
diff changeset
126 width="148.48216"
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1375
diff changeset
127 saved_id="image76" />
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1375
diff changeset
128 </g>
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1375
diff changeset
129 <g
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1375
diff changeset
130 id="g405"
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1375
diff changeset
131 saved_id="g370"
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1375
diff changeset
132 ns0:duplicate-src="g16"
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1375
diff changeset
133 transform="matrix(1.0,0.0,0.0,1.42419230526,264.234637368,-37.7375175458)"
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1375
diff changeset
134 ref="g370">
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1375
diff changeset
135 <image
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1375
diff changeset
136 saved_id="image372"
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1375
diff changeset
137 width="148.48216"
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1375
diff changeset
138 height="186.12172"
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1375
diff changeset
139 xlink:href="file:///home/wycc/devel/md6/MadButterfly/nodejs/examples/mce/cat0.png"
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1375
diff changeset
140 id="image407"
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1375
diff changeset
141 x="166.17522"
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1375
diff changeset
142 y="93.600594"
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1375
diff changeset
143 ns0:duplicate-src="image76" />
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1375
diff changeset
144 </g>
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1375
diff changeset
145 </g>
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1375
diff changeset
146 <g
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1375
diff changeset
147 id="s72724"
1375
37dc1ce76bba Add example files for the coord_hide issue
wycc
parents:
diff changeset
148 inkscape:groupmode="layer"
37dc1ce76bba Add example files for the coord_hide issue
wycc
parents:
diff changeset
149 scene_group="true"
1403
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1375
diff changeset
150 style="display:inline">
1375
37dc1ce76bba Add example files for the coord_hide issue
wycc
parents:
diff changeset
151 <use
1403
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1375
diff changeset
152 id="s97869"
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1375
diff changeset
153 xlink:href="#g16"
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1375
diff changeset
154 ns0:duplicate-src="g16"
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1375
diff changeset
155 x="0"
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1375
diff changeset
156 y="0"
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1375
diff changeset
157 width="1"
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1375
diff changeset
158 height="1" />
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1375
diff changeset
159 <use
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1375
diff changeset
160 id="s54066"
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1375
diff changeset
161 xlink:href="#g370"
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1375
diff changeset
162 ns0:duplicate-src="g370"
1375
37dc1ce76bba Add example files for the coord_hide issue
wycc
parents:
diff changeset
163 x="0"
37dc1ce76bba Add example files for the coord_hide issue
wycc
parents:
diff changeset
164 y="0"
37dc1ce76bba Add example files for the coord_hide issue
wycc
parents:
diff changeset
165 width="1"
37dc1ce76bba Add example files for the coord_hide issue
wycc
parents:
diff changeset
166 height="1"
1403
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1375
diff changeset
167 transform="translate(160,0)" />
1375
37dc1ce76bba Add example files for the coord_hide issue
wycc
parents:
diff changeset
168 </g>
37dc1ce76bba Add example files for the coord_hide issue
wycc
parents:
diff changeset
169 </g>
37dc1ce76bba Add example files for the coord_hide issue
wycc
parents:
diff changeset
170 <g
37dc1ce76bba Add example files for the coord_hide issue
wycc
parents:
diff changeset
171 inkscape:label="components"
37dc1ce76bba Add example files for the coord_hide issue
wycc
parents:
diff changeset
172 id="s38631" />
37dc1ce76bba Add example files for the coord_hide issue
wycc
parents:
diff changeset
173 </svg>