Debian Codegraph @

test_non_regression/fail/text/text-intro-01-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="SVGWG" author="Jon Ferraiolo" status="accepted"
15 version="$Revision: 1.9 $" testname="$RCSfile: text-intro-01-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 Test left-to-right aspect of internationalized text.
19 </p>
20 <p>
21 Various text strings in various languages appear. The main
22 purpose of the test is to verify that the correct characters
23 appear and that they appear in the correct order and orientation, even
24 though the first choice font does not have the right glyphs.
25 </p>
26 </d:testDescription>
27 <d:operatorScript xmlns="http://www.w3.org/1999/xhtml">
28 <p>
29 Run the test. No interaction required.
30 </p>
31 </d:operatorScript>
32 <d:passCriteria xmlns="http://www.w3.org/1999/xhtml">
33 <p>
34 Correct rendering requires that each character is rendered. It may be rendered
35 with the 'missing glyph' if no
36 glyphs are found in the fonts listed in the content, or in any fallback font
37 that is available. The first choice font
38 is a special SVG font that only contains the 'missing glyph'. Missing glyph from
39 other fonts may conformantly be used, however.
40 </p>
41 <p>
42 The test is passed if the lines of text appear as follows:
43 </p>
44 <ul>
45 <li>Polish: Mogę jeść szkło, i mi ...</li>
46 <li>Russian: Я могу есть стекло, ...</li>
47 <li>Greek: Μπορώ να φάω ...</li>
48 <li>Hebrew: אני יכול לאכול זכוכית ...</li>
49 <li>Yiddish: איך קען עסן גלאָז און ...</li>
50 <li>Chinese:我能吞下玻璃而不伤身体。</li>
51 <li>Japanese: 私はガラスを食べます。</li>
52 </ul>
53 </d:passCriteria>
54 </d:SVGTestCase>
55 <title id="test-title">$RCSfile: text-intro-01-t.svg,v $</title>
56 <defs>
57 <font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F">
58 <font-face-src>
59 <font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/>
60 </font-face-src>
61 </font-face>
62 </defs>
63 <g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18">
64 <defs>
65 <font id="Missy" horiz-adv-x="5">
66 <font-face font-family="MissingInAction" font-weight="normal" font-style="normal" units-per-em="8" cap-height="8" x-height="4" ascent="8" descent="2" alphabetic="0" mathematical="4" ideographic="-2" hanging="8"/>
67 <missing-glyph d="M1,3h2v2h-2z"/>
68 </font>
69 </defs>
70 <text font-size="40" fill="blue" x="5" y="40">Test left-to-right text.</text>
71 <g font-size="17" font-family="MissingInAction, Georgia, 'Arial Hebrew', 'Arial Unicode MS', 'LucidaSansUnicode','MS-Gothic'">
72 <text x="10" y="75">Polish: Mogę jeść szkło, i mi ...</text>
73 <text x="10" y="110">Russian: Я могу есть стекло, ...</text>
74 <text x="10" y="145" font-size="17">Greek: Μπορώ να φάω ...</text>
75 <text x="10" y="180">Hebrew: אני יכול לאכול זכוכית ... </text>
76 <text x="10" y="215">Yiddish: איך קען עסן גלאָז און ...</text>
77 </g>
78 <g font-size="17" font-family="MissingInAction, 'MS Song', SimHei,'LucidaSansUnicode', 'Arial Unicode MS'">
79 <text x="10" y="250">Chinese:我能吞下玻璃而不伤身体。</text>
80 </g>
81 <g font-size="17" font-family="MissingInAction, 'MS-Gothic','LucidaSansUnicode', 'Arial Unicode MS'">
82 <text x="10" y="285" font-size="17">Japanese: 私はガラスを食べます。</text>
83 </g>
84 </g>
85 <g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
86 <text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.9 $</text>
87 </g>
88 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
89 <!-- comment out this watermark once the test is approved -->
90 <!--<g id="draft-watermark">
91 <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
92 <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
93 text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
94 </g>-->
95 </svg>