Debian Codegraph @

samples/tests/spec/text/textBiDi.svg

raw
1 <?xml version="1.0" standalone="no"?>
2 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//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 <!-- Test description here -->
25 <!-- -->
26 <!-- @author [email protected] -->
27 <!-- @version $Id$ -->
28 <!-- ========================================================================= -->
29 <?xml-stylesheet type="text/css" href="../../resources/style/test.css" ?>
30
31 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="450" height="500" viewBox="0 0 450 500">
32
33 <!-- ============================================================= -->
34 <!-- Test content -->
35 <!-- ============================================================= -->
36
37 <g id="testContent">
38 <text class="title" x="50%" y="10%" font-size="15" text-anchor="middle" >
39 BiDi Text / International Text</text>
40 <text x="50%" y="25%" font-size="12.5" text-anchor="middle">Some text goes <tspan fill="blue" direction="rtl" unicode-bidi="bidi-override">(right to left)</tspan>, other text goes (left to right).</text>
41
42 <text x="50%" y="30%" font-size="12.5" text-anchor="middle">Some <tspan fill="darkred" direction="rtl" unicode-bidi="embed">(embedded bidi)</tspan> text.</text>
43
44 <text style="font-style:oblique;font-size:10;text-anchor:middle" x="50%" y="35%">
45 Text selection allows visually discontiguous
46 selections across bi-directional text.
47 </text>
48 <g font-family="dialog" font-size="15" text-anchor="start">
49 <text id="latin" fill="MidnightBlue" x="10%" y="45%">latin:
50 ABCDEFG
51 abcdefghijklmnopqrstuvwxyz</text>
52 <text id="latin-extended" fill="Sienna" x="10%" y="50%">latin-extended:
53 &#x0e6;&#x0e7;&#x0e8;&#x0e9;&#x0ea;&#x0eb;&#x0ec;&#x0ed;&#x0ee;&#x0ef;&#x0f0;&#x0f1;&#x0f2;&#x0f3;&#x0f4;</text>
54 <text id="cyrillic" fill="Indigo" x="10%" y="55%">cyrillic:
55 &#x411;&#x412;&#x413;&#x414;&#x415;&#x416;&#x417;&#x418;&#x419;&#x41a;&#x41b;&#x41c;&#x41d;&#x41e;&#x41f;&#x420;&#x421;&#x422;&#x423;&#x424;&#x425;&#x426;&#x427;</text>
56 <text id="greek" fill="Maroon" x="10%" y="60%">greek:
57 &#x391;&#x392;&#x393;&#x394; &#x3b1;&#x3b2;&#x3b3;&#x3b4;&#x3b5;&#x3b6;&#x3b7;&#x3b8;&#x3b9;&#x3ba;&#x3bb;&#x3bc;&#x3bd;&#x3be;&#x3bf;&#x3c0;&#x3c1;&#x3c2;&#x3c3;&#x3c4;&#x3c5;&#x3c6;&#x3c7;&#x3c8;&#x3c9;</text>
58 <text id="hebrew" fill="DarkOliveGreen" x="10%" y="65%">hebrew:
59 &#x5d0;&#x5d1;&#x5d2;&#x5d3;&#x5d4;&#x5d5;&#x5d6;&#x5d7;&#x5d8;&#x5d9;&#x5da;&#x5db;&#x5dc;&#x5dd;&#x5de;&#x5df;&#x5e0;&#x5e1;&#x5e2;&#x5e3;&#x5e4;&#x5e5;&#x5e6;&#x5e7;&#x5e8;&#x5e9;&#x5ea;</text>
60 <text fill="DarkOliveGreen" x="10%" y="70%"
61 >&#x5d0;&#x5d1;&#x5d2;&#x5d3;&#x5d4;&#x5d5;&#x5d6;&#x5d7;&#x5d8;&#x5d9;&#x5da;&#x5db;&#x5dc;&#x5dd;&#x5de;&#x5df;&#x5e0;&#x5e1;&#x5e2;&#x5e3;&#x5e4;&#x5e5;&#x5e6;&#x5e7;&#x5e8;&#x5e9;&#x5ea;</text>
62 <text id="arabic" fill="DarkRed" x="10%" y="75%">arabic:
63 &#x621;&#x623;&#x624;&#x625;&#x626;&#x627;&#x628;&#x629;&#x62a;&#x62b;&#x62c;&#x62d;&#x62e;&#x62f;&#x630;&#x631;&#x632;&#x633;&#x634;&#x635;&#x636;&#x637;&#x638;&#x639;&#x640;&#x641;&#x642;&#x643;&#x644;&#x645;&#x646;&#x647;&#x648;&#x649;&#x650;&#x676;</text>
64 <text fill="DarkRed" x="10%" y="80%"
65 >&#x621;&#x623;&#x624;&#x625;&#x626;&#x627;&#x628;&#x629;&#x62a;&#x62b;&#x62c;&#x62d;&#x62e;&#x62f;&#x630;&#x631;&#x632;&#x633;&#x634;&#x635;&#x636;&#x637;&#x638;&#x639;&#x640;&#x641;&#x642;&#x643;&#x644;&#x645;&#x646;&#x647;&#x648;&#x649;&#x650;&#x676;</text>
66 </g>
67 </g>
68
69 <!-- ============================================================= -->
70 <!-- Batik sample mark -->
71 <!-- ============================================================= -->
72 <use xlink:href="../../../batikLogo.svg#Batik_Tag_Box" />
73
74 </svg>