| 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.7 $" testname="$RCSfile: text-intro-04-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 basic 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. |
| 24 |
</p> |
| 25 |
<p> |
| 26 |
A future version of this test |
| 27 |
might include all necessary glyphs as an SVG font. |
| 28 |
</p> |
| 29 |
</d:testDescription> |
| 30 |
<d:operatorScript xmlns="http://www.w3.org/1999/xhtml"> |
| 31 |
<p> |
| 32 |
Run the test. No interaction required. |
| 33 |
</p> |
| 34 |
</d:operatorScript> |
| 35 |
<d:passCriteria xmlns="http://www.w3.org/1999/xhtml"> |
| 36 |
<p> |
| 37 |
Correct rendering requires that each character is rendered. It is not required that a given character |
| 38 |
be rendered with any particular font; just that it is rendered. |
| 39 |
It may be rendered with the 'missing glyph' if no |
| 40 |
glyphs are found in the fonts listed in the content, or in any fallback font that is available. |
| 41 |
</p> |
| 42 |
</d:passCriteria> |
| 43 |
</d:SVGTestCase> |
| 44 |
<title id="test-title">$RCSfile: text-intro-04-t.svg,v $</title> |
| 45 |
<defs> |
| 46 |
<font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F"> |
| 47 |
<font-face-src> |
| 48 |
<font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/> |
| 49 |
</font-face-src> |
| 50 |
</font-face> |
| 51 |
</defs> |
| 52 |
<g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18"> |
| 53 |
<text font-family="Arial" font-size="16" fill="blue" x="10" y="20">Test horizontal text.</text> |
| 54 |
<g font-size="17" font-family="'Arial Hebrew', 'Arial Unicode MS', 'LucidaSansUnicode','MS-Gothic'"> |
| 55 |
<text x="10" y="60">Polish: Mogę jeść szkło, i mi nie szkodzi.</text> |
| 56 |
<text x="10" y="90">Russian: Я могу есть стекло, это мне не вредит.</text> |
| 57 |
<text x="10" y="120" font-size="15">Greek: Μπορώ να φάω σπασμένα γυαλιά χωρίς να πάθω τίποτα.</text> |
| 58 |
<!-- Greek and japanese smaller just to make it fit on the line --> |
| 59 |
<text x="10" y="150">Text "אני יכול לאכול זכוכית וזה לא מזיק לי" is in Hebrew</text> |
| 60 |
<text x="10" y="180">Yiddish: איך קען עסן גלאָז און עס טוט מיר נישט װײ.</text> |
| 61 |
<text x="10" y="210">Chinese:我能吞下玻璃而不伤身体。</text> |
| 62 |
<text x="10" y="240" font-size="15">Japanese: 私はガラスを食べられます。それは私を傷つけません。</text> |
| 63 |
</g> |
| 64 |
</g> |
| 65 |
<g font-family="SVGFreeSansASCII,sans-serif" font-size="32"> |
| 66 |
<text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.7 $</text> |
| 67 |
</g> |
| 68 |
<rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/> |
| 69 |
<!-- comment out this watermark once the test is approved --> |
| 70 |
<!--<g id="draft-watermark"> |
| 71 |
<rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/> |
| 72 |
<text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240" |
| 73 |
text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text> |
| 74 |
</g>--> |
| 75 |
</svg> |