| 1 |
<?xml version="1.0" standalone="no"?> |
| 2 |
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.2//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 |
<!-- ====================================================================== --> |
| 25 |
<!-- Tests various text on a path --> |
| 26 |
<!-- --> |
| 27 |
<!-- @author [email protected] --> |
| 28 |
<!-- @version $Id$ --> |
| 29 |
<!-- ====================================================================== --> |
| 30 |
|
| 31 |
<?xml-stylesheet type="text/css" href="../../resources/style/test.css" ?> |
| 32 |
|
| 33 |
<svg id="body" width="450" height="500" viewBox="0 0 450 500" |
| 34 |
xmlns="http://www.w3.org/2000/svg" version="1.2" |
| 35 |
xmlns:xlink="http://www.w3.org/1999/xlink"> |
| 36 |
<title>Test of Text wrapping stuff.</title> |
| 37 |
|
| 38 |
<g id="content" line-height="15px"> |
| 39 |
|
| 40 |
<text class="title" x="50%" y="40">'flowRoot' Region flowing</text> |
| 41 |
|
| 42 |
<g fill="lightblue" transform="translate(0,60)"> |
| 43 |
<text x="60" y="5" text-anchor="middle" fill="black">Region break flow</text> |
| 44 |
|
| 45 |
<rect x="10" y="10" width="100" height="15"/> |
| 46 |
<rect x="10" y="30" width="100" height="15"/> |
| 47 |
<rect x="10" y="50" width="100" height="15"/> |
| 48 |
<rect x="10" y="70" width="100" height="15"/> |
| 49 |
|
| 50 |
<flowRoot font-size="20" fill="black"> |
| 51 |
<flowRegion> |
| 52 |
<rect x="10" y="10" width="100" height="15" visibility="hidden"/> |
| 53 |
<rect x="10" y="30" width="100" height="15" visibility="hidden"/> |
| 54 |
<rect x="10" y="50" width="100" height="15" visibility="hidden"/> |
| 55 |
<rect x="10" y="70" width="100" height="15" visibility="hidden"/> |
| 56 |
</flowRegion> |
| 57 |
|
| 58 |
<flowDiv font-size="12"> |
| 59 |
<flowRegionBreak>A region break 1</flowRegionBreak> |
| 60 |
<flowRegionBreak>A region break 2</flowRegionBreak> |
| 61 |
<flowRegionBreak>A region break 3</flowRegionBreak> |
| 62 |
<flowRegionBreak>A region break 4</flowRegionBreak> |
| 63 |
</flowDiv> |
| 64 |
</flowRoot> |
| 65 |
</g> |
| 66 |
|
| 67 |
<g fill="lightblue" transform="translate(0,160)"> |
| 68 |
<text x="60" y="5" text-anchor="middle" fill="black">Paragraph flowing</text> |
| 69 |
|
| 70 |
<rect x="10" y="10" width="100" height="15"/> |
| 71 |
<rect x="10" y="30" width="100" height="15"/> |
| 72 |
<rect x="10" y="50" width="100" height="15"/> |
| 73 |
<rect x="10" y="70" width="100" height="15"/> |
| 74 |
|
| 75 |
<flowRoot font-size="20" fill="black"> |
| 76 |
<flowRegion> |
| 77 |
<rect x="10" y="10" width="100" height="15" visibility="hidden"/> |
| 78 |
<rect x="10" y="30" width="100" height="15" visibility="hidden"/> |
| 79 |
<rect x="10" y="50" width="100" height="15" visibility="hidden"/> |
| 80 |
<rect x="10" y="70" width="100" height="15" visibility="hidden"/> |
| 81 |
</flowRegion> |
| 82 |
|
| 83 |
<flowDiv font-size="12"> |
| 84 |
<flowPara>The para 1,</flowPara> |
| 85 |
<flowPara>The para 2,</flowPara> |
| 86 |
<flowPara>The para 3,</flowPara> |
| 87 |
<flowPara>The para 4.</flowPara> |
| 88 |
</flowDiv> |
| 89 |
</flowRoot> |
| 90 |
</g> |
| 91 |
|
| 92 |
<g fill="lightblue" transform="translate(0,260)"> |
| 93 |
<text x="60" y="5" text-anchor="middle" fill="black">Text flowing</text> |
| 94 |
<rect x="10" y="10" width="100" height="15"/> |
| 95 |
<rect x="10" y="30" width="100" height="15"/> |
| 96 |
<rect x="10" y="50" width="100" height="15"/> |
| 97 |
<rect x="10" y="70" width="100" height="15"/> |
| 98 |
|
| 99 |
<flowRoot font-size="20" fill="black"> |
| 100 |
<flowRegion> |
| 101 |
<rect x="10" y="10" width="100" height="15" visibility="hidden"/> |
| 102 |
<rect x="10" y="30" width="100" height="15" visibility="hidden"/> |
| 103 |
<rect x="10" y="50" width="100" height="15" visibility="hidden"/> |
| 104 |
<rect x="10" y="70" width="100" height="15" visibility="hidden"/> |
| 105 |
</flowRegion> |
| 106 |
|
| 107 |
<flowDiv font-size="12"> |
| 108 |
<flowPara>The text 1, The text 2, the text 3, The text 4.</flowPara> |
| 109 |
</flowDiv> |
| 110 |
</flowRoot> |
| 111 |
</g> |
| 112 |
|
| 113 |
|
| 114 |
<g fill="lightblue" transform="translate(0,360)"> |
| 115 |
<text x="60" y="5" text-anchor="middle" fill="black">Text/line flowing</text> |
| 116 |
<rect x="10" y="10" width="100" height="15"/> |
| 117 |
<rect x="10" y="30" width="100" height="15"/> |
| 118 |
<rect x="10" y="50" width="100" height="15"/> |
| 119 |
<rect x="10" y="70" width="100" height="15"/> |
| 120 |
|
| 121 |
<flowRoot font-size="20" fill="black"> |
| 122 |
<flowRegion> |
| 123 |
<rect x="10" y="10" width="100" height="15" visibility="hidden"/> |
| 124 |
<rect x="10" y="30" width="100" height="15" visibility="hidden"/> |
| 125 |
<rect x="10" y="50" width="100" height="15" visibility="hidden"/> |
| 126 |
<rect x="10" y="70" width="100" height="15" visibility="hidden"/> |
| 127 |
</flowRegion> |
| 128 |
|
| 129 |
<flowDiv font-size="12"> |
| 130 |
<flowPara>The text 1,<flowLine/> <flowLine/> |
| 131 |
The text 2,<flowLine/> <flowLine/> |
| 132 |
The text 3,<flowLine/> <flowLine/> |
| 133 |
The text 4.<flowLine/> <flowLine/> |
| 134 |
</flowPara> |
| 135 |
</flowDiv> |
| 136 |
</flowRoot> |
| 137 |
</g> |
| 138 |
|
| 139 |
<g fill="lightblue" transform="translate(110,60)"> |
| 140 |
<text x="60" y="5" text-anchor="middle" fill="black">Line flowing</text> |
| 141 |
<rect x="10" y="10" width="100" height="15"/> |
| 142 |
<rect x="10" y="30" width="100" height="15"/> |
| 143 |
<rect x="10" y="50" width="100" height="15"/> |
| 144 |
<rect x="10" y="70" width="100" height="15"/> |
| 145 |
|
| 146 |
<flowRoot font-size="20" fill="black"> |
| 147 |
<flowRegion> |
| 148 |
<rect x="10" y="10" width="100" height="15" visibility="hidden"/> |
| 149 |
<rect x="10" y="30" width="100" height="15" visibility="hidden"/> |
| 150 |
<rect x="10" y="50" width="100" height="15" visibility="hidden"/> |
| 151 |
<rect x="10" y="70" width="100" height="15" visibility="hidden"/> |
| 152 |
</flowRegion> |
| 153 |
|
| 154 |
<flowDiv font-size="12"> |
| 155 |
<flowPara><flowLine>The line 1,</flowLine> |
| 156 |
<flowLine>The line 2,</flowLine> |
| 157 |
<flowLine>The line 3,</flowLine> |
| 158 |
<flowLine>The line 4.</flowLine></flowPara> |
| 159 |
</flowDiv> |
| 160 |
</flowRoot> |
| 161 |
</g> |
| 162 |
|
| 163 |
<g fill="lightblue" transform="translate(110,160)"> |
| 164 |
<text x="60" y="5" text-anchor="middle" fill="black">2xLine flowing</text> |
| 165 |
<rect x="10" y="10" width="100" height="15"/> |
| 166 |
<rect x="10" y="30" width="100" height="15"/> |
| 167 |
<rect x="10" y="50" width="100" height="15"/> |
| 168 |
<rect x="10" y="70" width="100" height="15"/> |
| 169 |
|
| 170 |
<flowRoot font-size="20" fill="black"> |
| 171 |
<flowRegion> |
| 172 |
<rect x="10" y="10" width="100" height="15" visibility="hidden"/> |
| 173 |
<rect x="10" y="30" width="100" height="15" visibility="hidden"/> |
| 174 |
<rect x="10" y="50" width="100" height="15" visibility="hidden"/> |
| 175 |
<rect x="10" y="70" width="100" height="15" visibility="hidden"/> |
| 176 |
</flowRegion> |
| 177 |
|
| 178 |
<flowDiv font-size="12"> |
| 179 |
<flowPara><flowLine><flowLine>The line 1,</flowLine> </flowLine> |
| 180 |
<flowLine><flowLine>The line 2,</flowLine> </flowLine> |
| 181 |
<flowLine><flowLine>The line 3,</flowLine> </flowLine> |
| 182 |
<flowLine><flowLine>The line 4.</flowLine> </flowLine></flowPara> |
| 183 |
</flowDiv> |
| 184 |
</flowRoot> |
| 185 |
</g> |
| 186 |
|
| 187 |
<g fill="lightblue" transform="translate(110,260)"> |
| 188 |
<text x="60" y="5" text-anchor="middle" fill="black">Span flowing</text> |
| 189 |
|
| 190 |
<rect x="10" y="10" width="100" height="15"/> |
| 191 |
<rect x="10" y="30" width="100" height="15"/> |
| 192 |
<rect x="10" y="50" width="100" height="15"/> |
| 193 |
<rect x="10" y="70" width="100" height="15"/> |
| 194 |
|
| 195 |
<flowRoot font-size="20" fill="black"> |
| 196 |
<flowRegion> |
| 197 |
<rect x="10" y="10" width="100" height="15" visibility="hidden"/> |
| 198 |
<rect x="10" y="30" width="100" height="15" visibility="hidden"/> |
| 199 |
<rect x="10" y="50" width="100" height="15" visibility="hidden"/> |
| 200 |
<rect x="10" y="70" width="100" height="15" visibility="hidden"/> |
| 201 |
</flowRegion> |
| 202 |
|
| 203 |
<flowDiv font-size="12"> |
| 204 |
<flowPara><flowSpan>The span 1,</flowSpan> |
| 205 |
<flowSpan>The span 2,</flowSpan> |
| 206 |
<flowSpan>The span 3,</flowSpan> |
| 207 |
<flowSpan>The span 4.</flowSpan></flowPara> |
| 208 |
</flowDiv> |
| 209 |
</flowRoot> |
| 210 |
</g> |
| 211 |
|
| 212 |
<g fill="lightblue" transform="translate(110,360)"> |
| 213 |
<text x="60" y="5" text-anchor="middle" fill="black">Span/line flowing</text> |
| 214 |
<rect x="10" y="10" width="100" height="15"/> |
| 215 |
<rect x="10" y="30" width="100" height="15"/> |
| 216 |
<rect x="10" y="50" width="100" height="15"/> |
| 217 |
<rect x="10" y="70" width="100" height="15"/> |
| 218 |
|
| 219 |
<flowRoot font-size="20" fill="black"> |
| 220 |
<flowRegion> |
| 221 |
<rect x="10" y="10" width="100" height="15" visibility="hidden"/> |
| 222 |
<rect x="10" y="30" width="100" height="15" visibility="hidden"/> |
| 223 |
<rect x="10" y="50" width="100" height="15" visibility="hidden"/> |
| 224 |
<rect x="10" y="70" width="100" height="15" visibility="hidden"/> |
| 225 |
</flowRegion> |
| 226 |
|
| 227 |
<flowDiv font-size="12"> |
| 228 |
<flowPara><flowSpan>The span 1,</flowSpan><flowLine/><flowLine/> |
| 229 |
<flowSpan>The span 2,</flowSpan><flowLine/><flowLine/> |
| 230 |
<flowSpan>The span 3,</flowSpan><flowLine/><flowLine/> |
| 231 |
<flowSpan>The span 4.</flowSpan><flowLine/><flowLine/></flowPara> |
| 232 |
</flowDiv> |
| 233 |
</flowRoot> |
| 234 |
</g> |
| 235 |
|
| 236 |
|
| 237 |
<g fill="lightblue" transform="translate(220,60)"> |
| 238 |
<text x="60" y="5" text-anchor="middle" fill="black">Region breaks</text> |
| 239 |
<rect x="10" y="10" width="100" height="30"/> |
| 240 |
<rect x="10" y="45" width="100" height="30"/> |
| 241 |
|
| 242 |
<flowRoot font-size="20" fill="black"> |
| 243 |
<flowRegion> |
| 244 |
<rect x="10" y="10" width="100" height="30" visibility="hidden"/> |
| 245 |
<rect x="10" y="45" width="100" height="30" visibility="hidden"/> |
| 246 |
</flowRegion> |
| 247 |
|
| 248 |
<flowDiv font-size="12"> |
| 249 |
<flowRegionBreak>A region break 1</flowRegionBreak> |
| 250 |
<flowRegionBreak>A region break 2</flowRegionBreak> |
| 251 |
<flowRegionBreak>A region break 3</flowRegionBreak> |
| 252 |
<flowRegionBreak>A region break 4</flowRegionBreak> |
| 253 |
</flowDiv> |
| 254 |
</flowRoot> |
| 255 |
</g> |
| 256 |
|
| 257 |
<g fill="lightblue" transform="translate(220,160)"> |
| 258 |
<text x="60" y="5" text-anchor="middle" fill="black">Para elems</text> |
| 259 |
<rect x="10" y="10" width="100" height="30"/> |
| 260 |
<rect x="10" y="45" width="100" height="30"/> |
| 261 |
|
| 262 |
<flowRoot font-size="20" fill="black"> |
| 263 |
<flowRegion> |
| 264 |
<rect x="10" y="10" width="100" height="30" visibility="hidden"/> |
| 265 |
<rect x="10" y="45" width="100" height="30" visibility="hidden"/> |
| 266 |
</flowRegion> |
| 267 |
|
| 268 |
<flowDiv font-size="12"> |
| 269 |
<flowPara>The para 1,</flowPara> |
| 270 |
<flowPara>The para 2,</flowPara> |
| 271 |
<flowPara>The para 3,</flowPara> |
| 272 |
<flowPara>The para 4.</flowPara> |
| 273 |
</flowDiv> |
| 274 |
</flowRoot> |
| 275 |
</g> |
| 276 |
|
| 277 |
<g fill="lightblue" transform="translate(220,260)"> |
| 278 |
<text x="60" y="5" text-anchor="middle" fill="black">Just text</text> |
| 279 |
<rect x="10" y="10" width="100" height="30"/> |
| 280 |
<rect x="10" y="45" width="100" height="30"/> |
| 281 |
|
| 282 |
<flowRoot font-size="20" fill="black"> |
| 283 |
<flowRegion> |
| 284 |
<rect x="10" y="10" width="100" height="30" visibility="hidden"/> |
| 285 |
<rect x="10" y="45" width="100" height="30" visibility="hidden"/> |
| 286 |
</flowRegion> |
| 287 |
|
| 288 |
<flowDiv font-size="12"> |
| 289 |
<flowPara>The text 1, The text 2, The text 3, The text 4.</flowPara> |
| 290 |
</flowDiv> |
| 291 |
</flowRoot> |
| 292 |
</g> |
| 293 |
|
| 294 |
<g fill="lightblue" transform="translate(220,360)"> |
| 295 |
<text x="60" y="5" text-anchor="middle" fill="black">Text/line elems</text> |
| 296 |
<rect x="10" y="10" width="100" height="30"/> |
| 297 |
<rect x="10" y="45" width="100" height="30"/> |
| 298 |
|
| 299 |
<flowRoot font-size="20" fill="black"> |
| 300 |
<flowRegion> |
| 301 |
<rect x="10" y="10" width="100" height="30" visibility="hidden"/> |
| 302 |
<rect x="10" y="45" width="100" height="30" visibility="hidden"/> |
| 303 |
</flowRegion> |
| 304 |
|
| 305 |
<flowDiv font-size="12"> |
| 306 |
<flowPara>The text 1,<flowLine/><flowLine/> |
| 307 |
The text 2,<flowLine/><flowLine/> |
| 308 |
The text 3,<flowLine/><flowLine/> |
| 309 |
The text 4.<flowLine/><flowLine/></flowPara> |
| 310 |
</flowDiv> |
| 311 |
</flowRoot> |
| 312 |
</g> |
| 313 |
|
| 314 |
<g fill="lightblue" transform="translate(330,60)"> |
| 315 |
<text x="60" y="5" text-anchor="middle" fill="black">Line elems</text> |
| 316 |
<rect x="10" y="10" width="100" height="30"/> |
| 317 |
<rect x="10" y="45" width="100" height="30"/> |
| 318 |
|
| 319 |
<flowRoot font-size="20" fill="black"> |
| 320 |
<flowRegion> |
| 321 |
<rect x="10" y="10" width="100" height="30" visibility="hidden"/> |
| 322 |
<rect x="10" y="45" width="100" height="30" visibility="hidden"/> |
| 323 |
</flowRegion> |
| 324 |
|
| 325 |
<flowDiv font-size="12"> |
| 326 |
<flowPara><flowLine>The line 1,</flowLine> |
| 327 |
<flowLine>The line 2,</flowLine> |
| 328 |
<flowLine>The line 3,</flowLine> |
| 329 |
<flowLine>The line 4.</flowLine></flowPara> |
| 330 |
</flowDiv> |
| 331 |
</flowRoot> |
| 332 |
</g> |
| 333 |
|
| 334 |
<g fill="lightblue" transform="translate(330,260)"> |
| 335 |
<text x="60" y="5" text-anchor="middle" fill="black">Span elems</text> |
| 336 |
<rect x="10" y="10" width="100" height="30"/> |
| 337 |
<rect x="10" y="45" width="100" height="30"/> |
| 338 |
|
| 339 |
<flowRoot font-size="20" fill="black"> |
| 340 |
<flowRegion> |
| 341 |
<rect x="10" y="10" width="100" height="30" visibility="hidden"/> |
| 342 |
<rect x="10" y="45" width="100" height="30" visibility="hidden"/> |
| 343 |
</flowRegion> |
| 344 |
|
| 345 |
<flowDiv font-size="12"> |
| 346 |
<flowPara><flowSpan>The span 1,</flowSpan> |
| 347 |
<flowSpan>The span 2,</flowSpan> |
| 348 |
<flowSpan>The span 3,</flowSpan> |
| 349 |
<flowSpan>The span 4.</flowSpan></flowPara> |
| 350 |
</flowDiv> |
| 351 |
</flowRoot> |
| 352 |
</g> |
| 353 |
|
| 354 |
<g fill="lightblue" transform="translate(330,360)"> |
| 355 |
<text x="60" y="5" text-anchor="middle" fill="black">Span/line elems</text> |
| 356 |
<rect x="10" y="10" width="100" height="30"/> |
| 357 |
<rect x="10" y="45" width="100" height="30"/> |
| 358 |
|
| 359 |
<flowRoot font-size="20" fill="black"> |
| 360 |
<flowRegion> |
| 361 |
<rect x="10" y="10" width="100" height="30" visibility="hidden"/> |
| 362 |
<rect x="10" y="45" width="100" height="30" visibility="hidden"/> |
| 363 |
</flowRegion> |
| 364 |
|
| 365 |
<flowDiv font-size="12"> |
| 366 |
<flowPara><flowSpan>The span 1,</flowSpan><flowLine/><flowLine/> |
| 367 |
<flowSpan>The span 2,</flowSpan><flowLine/><flowLine/> |
| 368 |
<flowSpan>The span 3,</flowSpan><flowLine/><flowLine/> |
| 369 |
<flowSpan>The span 4.</flowSpan><flowLine/><flowLine/></flowPara> |
| 370 |
</flowDiv> |
| 371 |
</flowRoot> |
| 372 |
</g> |
| 373 |
|
| 374 |
|
| 375 |
</g> |
| 376 |
</svg> |