Debian Codegraph @

test_non_regression/fail/text/text-intro-06-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="accepted"
15 version="$Revision: 1.10 $" testname="$RCSfile: text-intro-06-t.svg,v $">
16 <d:testDescription xmlns="http://www.w3.org/1999/xhtml" href="http://www.w3.org/TR/SVG11/text.html#Introduction">
17 <p>
18 This test ensures that mandatory ligatures in Arabic are displayed.
19 This test uses WOFF fonts for rendering, with platform fonts for fallback.
20 </p>
21 <p>
22 There are two subtests. The first
23 requires an isolate lam-alef ligature and the second requires
24 a right-joining lam-alef ligature.
25 </p>
26 <p>
27 The first subtest has the word for 'tools', آلات
28 0622: آ ARABIC LETTER ALEF WITH MADDA ABOVE
29 0644: ل ARABIC LETTER LAM
30 0627: ا ARABIC LETTER ALEF
31 062A: ت ARABIC LETTER TEH
32 </p>
33 <p>
34 The second subtest has the word for 'three', ثلاثة
35 062B: ث ARABIC LETTER THEH
36 0644: ل ARABIC LETTER LAM
37 0627: ا ARABIC LETTER ALEF
38 062B: ث ARABIC LETTER THEH
39 0629: ة ARABIC LETTER TEH MARBUTA
40 </p>
41 </d:testDescription>
42 <d:operatorScript xmlns="http://www.w3.org/1999/xhtml">
43 <p>
44 Run the test. No interaction required.
45 </p>
46 </d:operatorScript>
47 <d:passCriteria xmlns="http://www.w3.org/1999/xhtml">
48 <p>
49 The test is passed if subtests are displayed as following:
50 </p>
51 <ul>
52 <li>The first subtest has the word for 'tools', آلات</li>
53 <li>The second subtest has the word for 'three', ثلاثة</li>
54 </ul>
55 <p>In the first subtest, there must be an isolate lam-alef ligature
56 and in the second subtest there must be a right-joining lam-alef
57 ligature, (so that them, lam and alef are all connected), as in the reference image.
58 </p>
59 <p>The precise glyph shapes will depend on which font was used for rendering,
60 and do not affect the pass criteria. Only the presence of the
61 mandatory ligatures is tested here.</p>
62 </d:passCriteria>
63 </d:SVGTestCase>
64 <title id="test-title">$RCSfile: text-intro-06-t.svg,v $</title>
65 <style type="text/css">
66 @font-face {
67 font-family: Scheherezade;
68 src: url(woffs/ScheherazadeRegOT.woff) format("woff")
69 }
70 </style>
71 <defs>
72 <font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F">
73 <font-face-src>
74 <font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/>
75 </font-face-src>
76 </font-face>
77 </defs>
78 <g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18">
79 <g font-family="Kayrawan, Scheherezade, Andalus, Diwani Letter, serif" font-size="60" direction="rtl">
80 <path d="M10,120 L470,120" stroke="#BBB" />
81 <path d="M10,240 L470,240" stroke="#BBB" />
82 <text text-anchor="middle" x="240" y="120" font-size="140" xml:lang="ar" fill="#700">آلات</text>
83 <text text-anchor="middle" x="240" y="240" font-size="140" xml:lang="ar" fill="#700">ثلاثة</text>
84 </g>
85 </g>
86 <g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
87 <text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.10 $</text>
88 </g>
89 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000"/>
90 <!-- comment out this watermark once the test is approved -->
91 <!--<g id="draft-watermark">
92 <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
93 <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
94 text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
95 </g>-->
96 </svg>