| <?xml version="1.0" encoding="UTF-8" standalone="no"?> |
| <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN" |
| "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd"> |
| |
| <!-- |
| |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You under the Apache License, Version 2.0 |
| (the "License"); you may not use this file except in compliance with |
| the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| |
| --> |
| <!-- ====================================================================== --> |
| <!-- Tests systemLanguage on elements --> |
| <!-- --> |
| <!-- @author tkormann@ilog.fr --> |
| <!-- @version $Id$ --> |
| <!-- ====================================================================== --> |
| <?xml-stylesheet type="text/css" href="../../resources/style/test.css" ?> |
| |
| <svg width="450" height="500" viewBox="0 0 450 500" > |
| |
| <!-- ============================================================= --> |
| <!-- Test content --> |
| <!-- ============================================================= --> |
| <g id="testContent"> |
| <text x="225" y="50" class="title">Test the 'systemLanguage' attribute</text> |
| |
| |
| <g style="fill:#eee; stroke:black"> |
| <rect x="50" y="80" width="360" height="20" /> |
| |
| <rect x="30" y="100" width="20" height="85" /> |
| <rect x="30" y="185" width="20" height="65" /> |
| <rect x="30" y="250" width="20" height="65" /> |
| <rect x="30" y="315" width="20" height="65" /> |
| <rect x="30" y="380" width="20" height="65" /> |
| </g> |
| <g style="fill:none; stroke:black"> |
| <rect x="50" y="80" width="360" height="365" /> |
| |
| <line x1="170" y1="80" x2="170" y2="445" /> |
| <line x1="290" y1="80" x2="290" y2="445" /> |
| |
| <line x1="50" y1="185" x2="410" y2="185" /> |
| <line x1="50" y1="250" x2="410" y2="250" /> |
| <line x1="50" y1="315" x2="410" y2="315" /> |
| <line x1="50" y1="380" x2="410" y2="380" /> |
| </g> |
| <g style="fill:black; text-anchor:middle;"> |
| <text x="110" y="94">default</text> |
| <text x="230" y="94">english (en)</text> |
| <text x="350" y="94">french (fr)</text> |
| |
| <text x="0" y="0" transform="translate(44, 145) rotate(-90)">Graphic Obj.</text> |
| <text x="0" y="0" transform="translate(44, 220) rotate(-90)"><svg></text> |
| <text x="0" y="0" transform="translate(44, 285) rotate(-90)"><g></text> |
| <text x="0" y="0" transform="translate(44, 350) rotate(-90)"><use></text> |
| <text x="0" y="0" transform="translate(44, 415) rotate(-90)"><tspan></text> |
| |
| </g> |
| |
| <defs> |
| |
| </defs> |
| |
| <!-- ####################################################################################### --> |
| <g transform="translate(60, 110)"> |
| <g> |
| <rect x="0" y="0" width="30" height="20" style="fill:crimson" /> |
| <circle cx="50" cy="10" r="10" style="fill:crimson" /> |
| <ellipse cx="85" cy="10" rx="15" ry="10" style="fill:crimson" /> |
| </g> |
| |
| <g style="stroke-width:3; fill:none"> |
| <line x1="0" y1="25" x2="30" y2="45" style="stroke:crimson" /> |
| <polyline points="35 25 45 42 55 25 65 42" style="stroke:crimson" /> |
| <polygon points="70 25 80 42 90 25 100 42" style="fill:crimson" /> |
| </g> |
| |
| <g style="stroke-width:3; fill:none"> |
| <path d="M0 60C5 55 10 55 15 60C20 65 25 65 30 60" style="stroke:crimson" /> |
| <image xlink:href="../../resources/images/tde.jpg" x="35" y="50" width="30" height="20" /> |
| <text x="85" y="65" style="fill:black; stroke:none; text-anchor:middle">text</text> |
| </g> |
| |
| </g> |
| |
| <g transform="translate(180, 110)"> |
| <g> |
| <rect x="0" y="0" width="30" height="20" style="fill:orange" systemLanguage="en" /> |
| <circle cx="50" cy="10" r="10" style="fill:orange" systemLanguage="en" /> |
| <ellipse cx="85" cy="10" rx="15" ry="10" style="fill:orange" systemLanguage="en" /> |
| </g> |
| |
| <g style="stroke-width:3; fill:none"> |
| <line x1="0" y1="25" x2="30" y2="45" style="stroke:orange" systemLanguage="en"/> |
| <polyline points="35 25 45 42 55 25 65 42" style="stroke:orange" systemLanguage="en"/> |
| <polygon points="70 25 80 42 90 25 100 42" style="fill:orange" systemLanguage="en"/> |
| </g> |
| |
| <g style="stroke-width:3; fill:none"> |
| <path d="M0 60C5 55 10 55 15 60C20 65 25 65 30 60" style="stroke:orange" systemLanguage="en"/> |
| <image xlink:href="../../resources/images/tde.jpg" x="35" y="50" width="30" height="20" systemLanguage="en"/> |
| <text x="85" y="65" style="fill:black; stroke:none; text-anchor:middle" systemLanguage="en">text</text> |
| </g> |
| |
| </g> |
| |
| <g transform="translate(300, 110)"> |
| <g> |
| <rect x="0" y="0" width="30" height="20" style="fill:gold" systemLanguage="fr"/> |
| <circle cx="50" cy="10" r="10" style="fill:gold" systemLanguage="fr"/> |
| <ellipse cx="85" cy="10" rx="15" ry="10" style="fill:gold" systemLanguage="fr"/> |
| </g> |
| |
| <g style="stroke-width:3; fill:none"> |
| <line x1="0" y1="25" x2="30" y2="45" style="stroke:gold" systemLanguage="fr"/> |
| <polyline points="35 25 45 42 55 25 65 42" style="stroke:gold" systemLanguage="fr"/> |
| <polygon points="70 25 80 42 90 25 100 42" style="fill: gold" systemLanguage="fr"/> |
| </g> |
| |
| <g style="stroke-width:3; fill:none"> |
| <path d="M0 60C5 55 10 55 15 60C20 65 25 65 30 60" style="stroke:gold" systemLanguage="fr"/> |
| <image xlink:href="../../resources/images/tde.jpg" x="35" y="50" width="30" height="20" systemLanguage="fr"/> |
| <text x="85" y="65" style="fill:black; stroke:none; text-anchor:middle" systemLanguage="fr">text</text> |
| </g> |
| |
| </g> |
| <!-- ####################################################################################### --> |
| |
| <g> |
| <svg x="52" y="187" width="116" height="62"> |
| <rect x="0" y="0" width="100%" height="100%" style="fill:crimson" /> |
| </svg> |
| |
| <svg x="172" y="187" width="116" height="62" style="fill:orange" systemLanguage="en"> |
| <rect x="0" y="0" width="100%" height="100%" /> |
| </svg> |
| |
| <svg x="292" y="187" width="116" height="62" style="fill:gold" systemLanguage="fr"> |
| <rect x="0" y="0" width="100%" height="100%" /> |
| </svg> |
| </g> |
| |
| <!-- ####################################################################################### --> |
| <g transform="translate(0 65)"> |
| <g> |
| <rect x="52" y="187" width="116" height="62" style="fill:crimson"/> |
| </g> |
| |
| <g> |
| <rect x="172" y="187" width="116" height="62" style="fill:orange" systemLanguage="en" /> |
| </g> |
| |
| <g> |
| <rect x="292" y="187" width="116" height="62" style="fill:gold" systemLanguage="fr" /> |
| </g> |
| </g> |
| <!-- ####################################################################################### --> |
| <defs> |
| <rect id="use" x="0" y="0" width="116" height="61" /> |
| </defs> |
| |
| <g> |
| |
| <use xlink:href="#use" x="52" y="317" style="fill:crimson" /> |
| |
| <use xlink:href="#use" x="172" y="317" style="fill:orange" systemLanguage="en" /> |
| |
| <use xlink:href="#use" x="292" y="317" style="fill:gold" systemLanguage="fr" /> |
| |
| </g> |
| |
| <!-- ####################################################################################### --> |
| |
| <text style="text-anchor:middle"> |
| <tspan x="110" y="420" style="fill:crimson">simple <tspan></tspan> |
| <tspan x="230" y="420" style="fill:orange" systemLanguage="en">simple <tspan></tspan> |
| <tspan x="350" y="420" style="fill:gold" systemLanguage="fr">simple <tspan></tspan> |
| </text> |
| |
| </g> |
| |
| <!-- ============================================================= --> |
| <!-- Batik sample mark --> |
| <!-- ============================================================= --> |
| <use xlink:href="../../../batikLogo.svg#Batik_Tag_Box" /> |
| |
| </svg> |
| |