Debian Codegraph @

test_non_regression/fail/text/text-intro-11-t.svg

raw
1 <svg version="1.1" baseProfile="tiny" id="svg-root"
2 width="100%" height="100%" viewBox="0 0 480 360"
3 xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
4 <!--======================================================================-->
5 <!--= SVG 1.1 2nd Edition Test Case =-->
6 <!--======================================================================-->
7 <!--= Copyright 2009 World Wide Web Consortium, (Massachusetts =-->
8 <!--= Institute of Technology, European Research Consortium for =-->
9 <!--= Informatics and Mathematics (ERCIM), Keio University). =-->
10 <!--= All Rights Reserved. =-->
11 <!--= See http://www.w3.org/Consortium/Legal/. =-->
12 <!--======================================================================-->
13 <d:SVGTestCase xmlns:d="http://www.w3.org/2000/02/svg/testsuite/description/"
14 template-version="1.4" reviewer="AG" author="CL" status="created"
15 version="$Revision: 1.2 $" testname="$RCSfile: text-intro-11-t.svg,v $">
16 <d:testDescription xmlns="http://www.w3.org/1999/xhtml" href="http://www.w3.org/TR/SVG11/text.html#Introduction">
17 <!-- derived from svg1.1 text-intro-06-t -->
18 <p>
19 This test ensures that mandatory ligatures in Arabic are displayed.
20 Three values for text-anchor are also tested;
21 middle,
22 start and
23 end.
24 This test uses platform fonts for rendering.
25 </p>
26 <p>
27 There are two subtests. The first
28 requires an isolate lam-alef ligature and the second requires
29 a right-joining lam-alef ligature.
30 </p>
31 <p>
32 The first subtest has the word for 'tools', آلات
33 0622: آ ARABIC LETTER ALEF WITH MADDA ABOVE
34 0644: ل ARABIC LETTER LAM
35 0627: ا ARABIC LETTER ALEF
36 062A: ت ARABIC LETTER TEH
37 </p>
38 <p>
39 The second subtest has the word for 'three', ثلاثة
40 062B: ث ARABIC LETTER THEH
41 0644: ل ARABIC LETTER LAM
42 0627: ا ARABIC LETTER ALEF
43 062B: ث ARABIC LETTER THEH
44 0629: ة ARABIC LETTER TEH MARBUTA
45 </p>
46 </d:testDescription>
47 <d:operatorScript xmlns="http://www.w3.org/1999/xhtml">
48 <p>
49 Run the test. No interaction required.
50 </p>
51 </d:operatorScript>
52 <d:passCriteria xmlns="http://www.w3.org/1999/xhtml">
53 <p>
54 The test is passed if the blue glyphs آ and ث touch the first vertical
55 line. The second vertical line falls in middle of the brown glyphs
56 inbetween آلا and ت and inbetween ثلا and ثة. The black glyphs ت and ة
57 touch the last vertical line.
58 </p>
59 </d:passCriteria>
60 </d:SVGTestCase>
61 <title id="test-title">$RCSfile: text-intro-11-t.svg,v $</title>
62 <defs>
63 <font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F">
64 <font-face-src>
65 <font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/>
66 </font-face-src>
67 </font-face>
68 </defs>
69 <g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18">
70 <g font-family="Andalus,Diwani Letter,serif" font-size="60">
71 <path d="M120,10 L120,280" stroke="#BBB"/>
72 <path d="M240,10 L240,280" stroke="#BBB"/>
73 <path d="M360,10 L360,280" stroke="#BBB"/>
74 <path d="M10,120 L470,120" stroke="#BBB"/>
75 <path d="M10,240 L470,240" stroke="#BBB"/>
76 <text text-anchor="middle" x="240" y="120" xml:lang="ar" fill="#700">آلات</text>
77 <text text-anchor="start" x="360" y="120" xml:lang="ar">آلات</text>
78 <text text-anchor="end" x="120" y="120" xml:lang="ar" fill="#009">آلات</text>
79 <text text-anchor="middle" x="240" y="240" xml:lang="ar" fill="#700">ثلاثة</text>
80 <text text-anchor="start" x="360" y="240" xml:lang="ar">ثلاثة</text>
81 <text text-anchor="end" x="120" y="240" xml:lang="ar" fill="#009">ثلاثة</text>
82 </g>
83 </g>
84 <g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
85 <text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.2 $</text>
86 </g>
87 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000"/>
88 <!-- comment out this watermark once the test is approved -->
89 <g id="draft-watermark">
90 <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
91 <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
92 text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
93 </g>
94 </svg>