| 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.7 $" testname="$RCSfile: text-intro-09-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 various aspects of internationalized text, including |
| 19 |
left-to-right, right-to-left, and the |
| 20 |
following properties: 'writing-mode', |
| 21 |
'direction' and 'unicode-bidi'. |
| 22 |
</p> |
| 23 |
<p> |
| 24 |
Various text strings in various languages appear. Test of bidi algorithms and support of 'unicode-bidi' and |
| 25 |
'direction' properties. Uses Webfonts. |
| 26 |
</p> |
| 27 |
<p> |
| 28 |
This test uses Webfonts; both SVG and WOFF fonts are provided. |
| 29 |
</p> |
| 30 |
</d:testDescription> |
| 31 |
<d:operatorScript xmlns="http://www.w3.org/1999/xhtml"> |
| 32 |
<p> |
| 33 |
Run the test. No interaction required. Make sure scripting is enabled. |
| 34 |
</p> |
| 35 |
</d:operatorScript> |
| 36 |
<d:passCriteria xmlns="http://www.w3.org/1999/xhtml"> |
| 37 |
<p> |
| 38 |
The test is passed if the correct characters |
| 39 |
appear and they appear in the correct order and orientation. |
| 40 |
Ensure that the three lines with Hebrew are ordered |
| 41 |
correctly, as shown in the reference image. |
| 42 |
</p> |
| 43 |
</d:passCriteria> |
| 44 |
</d:SVGTestCase> |
| 45 |
<title id="test-title">$RCSfile: text-intro-09-b.svg,v $</title> |
| 46 |
<defs> |
| 47 |
<style type="text/css"> |
| 48 |
@font-face { |
| 49 |
font-family: Ezra SIL SR; |
| 50 |
src: url(woffs/EzraSILSR.woff) format("woff"); |
| 51 |
} |
| 52 |
</style> |
| 53 |
<font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F"> |
| 54 |
<font-face-src> |
| 55 |
<font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/> |
| 56 |
</font-face-src> |
| 57 |
</font-face> |
| 58 |
<font-face font-family="SVGHebrew" unicode-range="U+000D-FEFF"> |
| 59 |
<font-face-src> |
| 60 |
<font-face-uri xlink:href="../resources/Heb.svg#SVGHebrew"/> |
| 61 |
</font-face-src> |
| 62 |
</font-face> |
| 63 |
</defs> |
| 64 |
<g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18"> |
| 65 |
<text font-size="17" fill="blue" x="10" y="40">unicode-bidi="bidi-override" direction="ltr".</text> |
| 66 |
<g font-size="18" font-family="SVGHebrew, 'Ezra SIL SR', serif"> |
| 67 |
<text x="10" y="80" unicode-bidi="bidi-override" direction="ltr">Text "אני יכול לאכול זכוכית וזה לא מזיק לי" is in Hebrew</text> |
| 68 |
</g> |
| 69 |
<text font-size="17" fill="blue" x="10" y="140">unicode-bidi="bidi-override" direction="rtl".</text> |
| 70 |
<g font-size="18" font-family="SVGHebrew, 'Ezra SIL SR', serif"> |
| 71 |
<text x="10" y="180" unicode-bidi="bidi-override" direction="rtl" text-anchor="end">Text "אני יכול לאכול זכוכית וזה לא מזיק לי" is in Hebrew</text> |
| 72 |
</g> |
| 73 |
<text font-size="17" fill="blue" x="10" y="240">unicode-bidi="normal" direction="rtl".</text> |
| 74 |
<g font-size="18" font-family="SVGHebrew, 'Ezra SIL SR', serif"> |
| 75 |
<text x="10" y="280" unicode-bidi="normal" direction="rtl" text-anchor="end">Text "אני יכול לאכול זכוכית וזה לא מזיק לי" is in Hebrew</text> |
| 76 |
</g> |
| 77 |
</g> |
| 78 |
<g font-family="SVGFreeSansASCII,sans-serif" font-size="32"> |
| 79 |
<text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.7 $</text> |
| 80 |
</g> |
| 81 |
<rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/> |
| 82 |
<!-- comment out this watermark once the test is approved --> |
| 83 |
<!--<g id="draft-watermark"> |
| 84 |
<rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/> |
| 85 |
<text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240" |
| 86 |
text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text> |
| 87 |
</g>--> |
| 88 |
</svg> |