Debian Codegraph @

test_non_regression/fail/text/text-intro-03-b.svg

raw
1 <svg version="1.1" baseProfile="basic" 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.6 $" testname="$RCSfile: text-intro-03-b.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 top-to-bottom internationalized text and the
19 following properties: 'writing-mode',
20 'glyph-orientation-vertical', 'glyph-orientation-horizontal'.
21 </p>
22 <p>
23 Various text strings in various languages appear. The main
24 purpose of the test is to verify that the correct characters
25 appear and that they appear in the correct order and orientation.
26 Ensure that the two lines of
27 vertical Japanese text have the proper orientation
28 (test of 'glyph-orientation-vertical' property).
29 </p>
30 </d:testDescription>
31 <d:operatorScript xmlns="http://www.w3.org/1999/xhtml">
32 <p>
33 This test requires installation of a system font that supports
34 the various international characters used in this test case. A
35 suitable font should be used by the SVG renderer if none of the
36 specified font families are available (or if they are available but do
37 not have the required glyphs). To
38 minimize system dependencies, a future version of this test
39 might include all necessary glyphs as an SVG font.
40 </p>
41 <p>
42 Run the test. No interaction required.
43 </p>
44 </d:operatorScript>
45 <d:passCriteria xmlns="http://www.w3.org/1999/xhtml">
46 <p>
47 The test is passed if first line of text has the english text "Text" and
48 "in Chinese" rotated 270 degrees and the Chinese text displayed top to
49 bottom. The second line of text has the english text "Japanese:" rotated
50 270 degrees and the Japanese text displayed top to bottom. The third
51 line of text has the letters in the english text "Japanese:" displayed
52 vertically and the Japanese text displayed top to bottom.
53 </p>
54 </d:passCriteria>
55 </d:SVGTestCase>
56 <title id="test-title">$RCSfile: text-intro-03-b.svg,v $</title>
57 <defs>
58 <font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F">
59 <font-face-src>
60 <font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/>
61 </font-face-src>
62 </font-face>
63 </defs>
64 <g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18">
65 <g font-size="14" font-family="'Arial Unicode MS', 'LucidaSansUnicode','MS-Gothic'" writing-mode="tb">
66 <text x="70" y="10">Text "我能吞下玻璃而不伤身体。" in Chinese</text>
67 <text x="230" y="10" font-size="13">Japanese: 私はガラスを食べられます。それは私を傷つけません。</text>
68 <text x="370" y="13" glyph-orientation-vertical="0" font-size="10">Japanese: 私はガラスを食べられます。それは私を傷つけません。</text>
69 <text x="120" y="80" font-size="32">xt "我能吞</text>
70 <text x="280" y="80" font-size="36">se: 私は</text>
71 <text x="420" y="80" glyph-orientation-vertical="0" font-size="32">se: 私は</text>
72 </g>
73 </g>
74 <g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
75 <text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.6 $</text>
76 </g>
77 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
78 <!-- comment out this watermark once the test is approved -->
79 <!--<g id="draft-watermark">
80 <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
81 <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
82 text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
83 </g>-->
84 </svg>