eseidel | 65ba4d7 | 2005-08-07 20:23:06 +0000 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Tiny//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-tiny.dtd" [ |
| 3 | <!ENTITY % svgExt "| SVGTestCase"> |
| 4 | <!ELEMENT SVGTestCase (OperatorScript)> |
| 5 | <!ATTLIST SVGTestCase |
| 6 | xmlns CDATA #REQUIRED |
| 7 | > |
| 8 | <!ELEMENT OperatorScript (Paragraph)*> |
| 9 | <!ATTLIST OperatorScript |
| 10 | version CDATA #IMPLIED |
| 11 | testname CDATA #IMPLIED |
| 12 | > |
| 13 | <!ELEMENT Paragraph (#PCDATA)> |
| 14 | ]> |
| 15 | <!--======================================================================--> |
| 16 | <!--= Copyright 2000 World Wide Web Consortium, (Massachusetts =--> |
| 17 | <!--= Institute of Technology, Institut National de Recherche en =--> |
| 18 | <!--= Informatique et en Automatique, Keio University). All Rights =--> |
| 19 | <!--= Reserved. See http://www.w3.org/Consortium/Legal/. =--> |
| 20 | <!--======================================================================--> |
| 21 | <!-- ===================================================================== --> |
| 22 | <!-- Author : Jon Ferraiolo 06-Aug-2000 --> |
| 23 | <!-- 1.1 revisions by Vincent Hardy, Chris Lilley --> |
| 24 | <!--======================================================================--> |
| 25 | <svg version="1.1" baseProfile="tiny" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="svg-root" width="100%" height="100%" viewBox="0 0 480 360"> |
| 26 | <SVGTestCase xmlns="http://www.w3.org/2000/02/svg/testsuite/description/"> |
eseidel | a220b26 | 2006-12-27 19:52:05 +0000 | [diff] [blame] | 27 | <OperatorScript version="$Revision: 1.10 $" testname="text-intro-04-t.svg"> |
eseidel | 65ba4d7 | 2005-08-07 20:23:06 +0000 | [diff] [blame] | 28 | <Paragraph> |
| 29 | Test basic aspect of internationalized text. |
| 30 | </Paragraph> |
| 31 | <Paragraph> |
| 32 | Various text strings in various languages appear. The main |
| 33 | purpose of the test is to verify that the correct characters |
| 34 | appear and that they appear in the correct order and orientation. |
| 35 | </Paragraph> |
| 36 | <Paragraph> |
| 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 | </Paragraph> |
| 42 | <Paragraph> |
| 43 | A future version of this test |
| 44 | might include all necessary glyphs as an SVG font. |
| 45 | </Paragraph> |
| 46 | </OperatorScript> |
| 47 | </SVGTestCase> |
| 48 | <title id="test-title">text-intro-04-t</title> |
| 49 | <desc id="test-desc">Test basic of internationalized text.</desc> |
| 50 | <!--======================================================================--> |
| 51 | <!--Content of Test Case follows... =====================--> |
| 52 | <!--======================================================================--> |
zimmermann@webkit.org | 7208fe3 | 2011-03-15 20:15:17 +0000 | [diff] [blame] | 53 | <defs> |
| 54 | <!-- Important SVGExotic font instead of relying on MS Office Fonts to be present --> |
| 55 | <font-face font-family="SVGExotic"> |
| 56 | <font-face-src> |
| 57 | <font-face-uri xlink:href="resources/SVGExotic.svg#exotic"/> |
| 58 | </font-face-src> |
| 59 | </font-face> |
| 60 | </defs> |
eseidel | 65ba4d7 | 2005-08-07 20:23:06 +0000 | [diff] [blame] | 61 | <g id="test-body-content"> |
| 62 | <text font-family="Arial" font-size="16" fill="red" x="10" y="20">Test horizontal text.</text> |
zimmermann@webkit.org | 7208fe3 | 2011-03-15 20:15:17 +0000 | [diff] [blame] | 63 | <g font-size="17" font-family="SVGExotic"> |
eseidel | 65ba4d7 | 2005-08-07 20:23:06 +0000 | [diff] [blame] | 64 | <text x="10" y="60">Polish: Mogę jeść szkło, i mi nie szkodzi.</text> |
| 65 | <text x="10" y="90">Russian: Я могу есть стекло, это мне не вредит.</text> |
| 66 | <text x="10" y="120" font-size="15">Greek: Μπορώ να φάω σπασμένα γυαλιά χωρίς να πάθω τίποτα.</text> |
| 67 | <!-- Greek and japanese smaller just to make it fit on the line --> |
| 68 | <text x="10" y="150">Text "אני יכול לאכול זכוכית וזה לא מזיק לי" is in Hebrew</text> |
| 69 | <text x="10" y="180">Yiddish: איך קען עסן גלאָז און עס טוט מיר נישט װײ.</text> |
| 70 | <text x="10" y="210">Chinese:我能吞下玻璃而不伤身体。</text> |
| 71 | <text x="10" y="240" font-size="15">Japanese: 私はガラスを食べられます。それは私を傷つけません。</text> |
| 72 | </g> |
| 73 | </g> |
eseidel | a220b26 | 2006-12-27 19:52:05 +0000 | [diff] [blame] | 74 | <text id="revision" x="10" y="340" font-size="40" stroke="none" fill="black">$Revision: 1.10 $</text> |
eseidel | 65ba4d7 | 2005-08-07 20:23:06 +0000 | [diff] [blame] | 75 | <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/> |
| 76 | </svg> |