Debian Codegraph @

samples/tests/spec/structure/systemLanguage.svg

raw
1 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
3 "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
4
5 <!--
6
7 Licensed to the Apache Software Foundation (ASF) under one or more
8 contributor license agreements. See the NOTICE file distributed with
9 this work for additional information regarding copyright ownership.
10 The ASF licenses this file to You under the Apache License, Version 2.0
11 (the "License"); you may not use this file except in compliance with
12 the License. You may obtain a copy of the License at
13
14 http://www.apache.org/licenses/LICENSE-2.0
15
16 Unless required by applicable law or agreed to in writing, software
17 distributed under the License is distributed on an "AS IS" BASIS,
18 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19 See the License for the specific language governing permissions and
20 limitations under the License.
21
22 -->
23 <!-- ====================================================================== -->
24 <!-- Tests systemLanguage on elements -->
25 <!-- -->
26 <!-- @author [email protected] -->
27 <!-- @version $Id$ -->
28 <!-- ====================================================================== -->
29 <?xml-stylesheet type="text/css" href="../../resources/style/test.css" ?>
30
31 <svg width="450" height="500" viewBox="0 0 450 500" >
32
33 <!-- ============================================================= -->
34 <!-- Test content -->
35 <!-- ============================================================= -->
36 <g id="testContent">
37 <text x="225" y="50" class="title">Test the 'systemLanguage' attribute</text>
38
39
40 <g style="fill:#eee; stroke:black">
41 <rect x="50" y="80" width="360" height="20" />
42
43 <rect x="30" y="100" width="20" height="85" />
44 <rect x="30" y="185" width="20" height="65" />
45 <rect x="30" y="250" width="20" height="65" />
46 <rect x="30" y="315" width="20" height="65" />
47 <rect x="30" y="380" width="20" height="65" />
48 </g>
49 <g style="fill:none; stroke:black">
50 <rect x="50" y="80" width="360" height="365" />
51
52 <line x1="170" y1="80" x2="170" y2="445" />
53 <line x1="290" y1="80" x2="290" y2="445" />
54
55 <line x1="50" y1="185" x2="410" y2="185" />
56 <line x1="50" y1="250" x2="410" y2="250" />
57 <line x1="50" y1="315" x2="410" y2="315" />
58 <line x1="50" y1="380" x2="410" y2="380" />
59 </g>
60 <g style="fill:black; text-anchor:middle;">
61 <text x="110" y="94">default</text>
62 <text x="230" y="94">english (en)</text>
63 <text x="350" y="94">french (fr)</text>
64
65 <text x="0" y="0" transform="translate(44, 145) rotate(-90)">Graphic Obj.</text>
66 <text x="0" y="0" transform="translate(44, 220) rotate(-90)">&lt;svg></text>
67 <text x="0" y="0" transform="translate(44, 285) rotate(-90)">&lt;g></text>
68 <text x="0" y="0" transform="translate(44, 350) rotate(-90)">&lt;use></text>
69 <text x="0" y="0" transform="translate(44, 415) rotate(-90)">&lt;tspan></text>
70
71 </g>
72
73 <defs>
74
75 </defs>
76
77 <!-- ####################################################################################### -->
78 <g transform="translate(60, 110)">
79 <g>
80 <rect x="0" y="0" width="30" height="20" style="fill:crimson" />
81 <circle cx="50" cy="10" r="10" style="fill:crimson" />
82 <ellipse cx="85" cy="10" rx="15" ry="10" style="fill:crimson" />
83 </g>
84
85 <g style="stroke-width:3; fill:none">
86 <line x1="0" y1="25" x2="30" y2="45" style="stroke:crimson" />
87 <polyline points="35 25 45 42 55 25 65 42" style="stroke:crimson" />
88 <polygon points="70 25 80 42 90 25 100 42" style="fill:crimson" />
89 </g>
90
91 <g style="stroke-width:3; fill:none">
92 <path d="M0 60C5 55 10 55 15 60C20 65 25 65 30 60" style="stroke:crimson" />
93 <image xlink:href="../../resources/images/tde.jpg" x="35" y="50" width="30" height="20" />
94 <text x="85" y="65" style="fill:black; stroke:none; text-anchor:middle">text</text>
95 </g>
96
97 </g>
98
99 <g transform="translate(180, 110)">
100 <g>
101 <rect x="0" y="0" width="30" height="20" style="fill:orange" systemLanguage="en" />
102 <circle cx="50" cy="10" r="10" style="fill:orange" systemLanguage="en" />
103 <ellipse cx="85" cy="10" rx="15" ry="10" style="fill:orange" systemLanguage="en" />
104 </g>
105
106 <g style="stroke-width:3; fill:none">
107 <line x1="0" y1="25" x2="30" y2="45" style="stroke:orange" systemLanguage="en"/>
108 <polyline points="35 25 45 42 55 25 65 42" style="stroke:orange" systemLanguage="en"/>
109 <polygon points="70 25 80 42 90 25 100 42" style="fill:orange" systemLanguage="en"/>
110 </g>
111
112 <g style="stroke-width:3; fill:none">
113 <path d="M0 60C5 55 10 55 15 60C20 65 25 65 30 60" style="stroke:orange" systemLanguage="en"/>
114 <image xlink:href="../../resources/images/tde.jpg" x="35" y="50" width="30" height="20" systemLanguage="en"/>
115 <text x="85" y="65" style="fill:black; stroke:none; text-anchor:middle" systemLanguage="en">text</text>
116 </g>
117
118 </g>
119
120 <g transform="translate(300, 110)">
121 <g>
122 <rect x="0" y="0" width="30" height="20" style="fill:gold" systemLanguage="fr"/>
123 <circle cx="50" cy="10" r="10" style="fill:gold" systemLanguage="fr"/>
124 <ellipse cx="85" cy="10" rx="15" ry="10" style="fill:gold" systemLanguage="fr"/>
125 </g>
126
127 <g style="stroke-width:3; fill:none">
128 <line x1="0" y1="25" x2="30" y2="45" style="stroke:gold" systemLanguage="fr"/>
129 <polyline points="35 25 45 42 55 25 65 42" style="stroke:gold" systemLanguage="fr"/>
130 <polygon points="70 25 80 42 90 25 100 42" style="fill: gold" systemLanguage="fr"/>
131 </g>
132
133 <g style="stroke-width:3; fill:none">
134 <path d="M0 60C5 55 10 55 15 60C20 65 25 65 30 60" style="stroke:gold" systemLanguage="fr"/>
135 <image xlink:href="../../resources/images/tde.jpg" x="35" y="50" width="30" height="20" systemLanguage="fr"/>
136 <text x="85" y="65" style="fill:black; stroke:none; text-anchor:middle" systemLanguage="fr">text</text>
137 </g>
138
139 </g>
140 <!-- ####################################################################################### -->
141
142 <g>
143 <svg x="52" y="187" width="116" height="62">
144 <rect x="0" y="0" width="100%" height="100%" style="fill:crimson" />
145 </svg>
146
147 <svg x="172" y="187" width="116" height="62" style="fill:orange" systemLanguage="en">
148 <rect x="0" y="0" width="100%" height="100%" />
149 </svg>
150
151 <svg x="292" y="187" width="116" height="62" style="fill:gold" systemLanguage="fr">
152 <rect x="0" y="0" width="100%" height="100%" />
153 </svg>
154 </g>
155
156 <!-- ####################################################################################### -->
157 <g transform="translate(0 65)">
158 <g>
159 <rect x="52" y="187" width="116" height="62" style="fill:crimson"/>
160 </g>
161
162 <g>
163 <rect x="172" y="187" width="116" height="62" style="fill:orange" systemLanguage="en" />
164 </g>
165
166 <g>
167 <rect x="292" y="187" width="116" height="62" style="fill:gold" systemLanguage="fr" />
168 </g>
169 </g>
170 <!-- ####################################################################################### -->
171 <defs>
172 <rect id="use" x="0" y="0" width="116" height="61" />
173 </defs>
174
175 <g>
176
177 <use xlink:href="#use" x="52" y="317" style="fill:crimson" />
178
179 <use xlink:href="#use" x="172" y="317" style="fill:orange" systemLanguage="en" />
180
181 <use xlink:href="#use" x="292" y="317" style="fill:gold" systemLanguage="fr" />
182
183 </g>
184
185 <!-- ####################################################################################### -->
186
187 <text style="text-anchor:middle">
188 <tspan x="110" y="420" style="fill:crimson">simple &lt;tspan></tspan>
189 <tspan x="230" y="420" style="fill:orange" systemLanguage="en">simple &lt;tspan></tspan>
190 <tspan x="350" y="420" style="fill:gold" systemLanguage="fr">simple &lt;tspan></tspan>
191 </text>
192
193 </g>
194
195 <!-- ============================================================= -->
196 <!-- Batik sample mark -->
197 <!-- ============================================================= -->
198 <use xlink:href="../../../batikLogo.svg#Batik_Tag_Box" />
199
200 </svg>
201