diff options
Diffstat (limited to 'tests/arthur/data/1.2')
47 files changed, 1026 insertions, 0 deletions
diff --git a/tests/arthur/data/1.2/07_07.svg b/tests/arthur/data/1.2/07_07.svg new file mode 100644 index 0000000..11968b2 --- /dev/null +++ b/tests/arthur/data/1.2/07_07.svg @@ -0,0 +1,40 @@ +<?xml version="1.0"?> +<svg width="400px" height="150px" version="1.2" baseProfile="tiny" + xmlns="http://www.w3.org/2000/svg"> + <desc>Example Nested - Nested transformations</desc> + <g fill="none" stroke="black" stroke-width="3" > + <!-- Draw the axes of the original coordinate system --> + <line x1="0" y1="1.5" x2="400" y2="1.5" /> + <line x1="1.5" y1="0" x2="1.5" y2="150" /> + </g> + <!-- First, a translate --> + <g transform="translate(50,90)"> + <g fill="none" stroke="red" stroke-width="3" > + <line x1="0" y1="0" x2="50" y2="0" /> + <line x1="0" y1="0" x2="0" y2="50" /> + </g> + <text x="0" y="0" font-size="16" font-family="Verdana" > + ....Translate(1) + </text> + <!-- Second, a rotate --> + <g transform="rotate(-45)"> + <g fill="none" stroke="green" stroke-width="3" > + <line x1="0" y1="0" x2="50" y2="0" /> + <line x1="0" y1="0" x2="0" y2="50" /> + </g> + <text x="0" y="0" font-size="16" font-family="Verdana" > + ....Rotate(2) + </text> + <!-- Third, another translate --> + <g transform="translate(130,160)"> + <g fill="none" stroke="blue" stroke-width="3" > + <line x1="0" y1="0" x2="50" y2="0" /> + <line x1="0" y1="0" x2="0" y2="50" /> + </g> + <text x="0" y="0" font-size="16" font-family="Verdana" > + ....Translate(3) + </text> + </g> + </g> + </g> +</svg> diff --git a/tests/arthur/data/1.2/07_12.svg b/tests/arthur/data/1.2/07_12.svg new file mode 100644 index 0000000..bf372cc --- /dev/null +++ b/tests/arthur/data/1.2/07_12.svg @@ -0,0 +1,21 @@ +<?xml version="1.0"?> +<svg width="300px" height="200px" version="1.2" baseProfile="tiny" + viewBox="0 0 1500 1000" preserveAspectRatio="none" + xmlns="http://www.w3.org/2000/svg"> + <desc>Example ViewBox - uses the viewBox + attribute to automatically create an initial user coordinate + system which causes the graphic to scale to fit into the + viewport no matter what size the viewport is.</desc> + <!-- This rectangle goes from (0,0) to (1500,1000) in user space. + Because of the viewBox attribute above, + the rectangle will end up filling the entire area + reserved for the SVG content. --> + <rect x="0" y="0" width="1500" height="1000" + fill="yellow" stroke="blue" stroke-width="12" /> + <!-- A large, red triangle --> + <path fill="red" d="M 750,100 L 250,900 L 1250,900 z"/> + <!-- A text string that spans most of the viewport --> + <text x="100" y="600" font-size="200" font-family="Verdana" > + Stretch to fit + </text> +</svg> diff --git a/tests/arthur/data/1.2/08_02.svg b/tests/arthur/data/1.2/08_02.svg new file mode 100644 index 0000000..7e3ae41 --- /dev/null +++ b/tests/arthur/data/1.2/08_02.svg @@ -0,0 +1,26 @@ +<?xml version="1.0"?> +<svg width="5cm" height="4cm" viewBox="0 0 500 400" + xmlns="http://www.w3.org/2000/svg" version="1.2" baseProfile="tiny"> + <title>Example cubic01- cubic Bézier commands in path data</title> + <desc>Picture showing a simple example of path data + using both a "C" and an "S" command, + along with annotations showing the control points + and end points</desc> + <rect fill="none" stroke="blue" stroke-width="1" x="1" y="1" width="498" height="398" /> + <polyline fill="none" stroke="#888888" stroke-width="1" points="100,200 100,100" /> + <polyline fill="none" stroke="#888888" stroke-width="1" points="250,100 250,200" /> + <polyline fill="none" stroke="#888888" stroke-width="1" points="250,200 250,300" /> + <polyline fill="none" stroke="#888888" stroke-width="1" points="400,300 400,200" /> + <path fill="none" stroke="red" stroke-width="5" d="M100,200 C100,100 250,100 250,200 + S400,300 400,200" /> + <circle fill="#888888" stroke="none" stroke-width="2" cx="100" cy="200" r="10" /> + <circle fill="#888888" stroke="none" stroke-width="2" cx="250" cy="200" r="10" /> + <circle fill="#888888" stroke="none" stroke-width="2" cx="400" cy="200" r="10" /> + <circle fill="#888888" stroke="none" cx="100" cy="100" r="10" /> + <circle fill="#888888" stroke="none" cx="250" cy="100" r="10" /> + <circle fill="#888888" stroke="none" cx="400" cy="300" r="10" /> + <circle fill="none" stroke="blue" stroke-width="4" cx="250" cy="300" r="9" /> + <text font-size="22" font-family="Verdana" x="25" y="70">M100,200 C100,100 250,100 250,200</text> + <text font-size="22" font-family="Verdana" x="325" y="350" + text-anchor="middle">S400,300 400,200</text> +</svg> diff --git a/tests/arthur/data/1.2/08_03.svg b/tests/arthur/data/1.2/08_03.svg new file mode 100644 index 0000000..30a240c --- /dev/null +++ b/tests/arthur/data/1.2/08_03.svg @@ -0,0 +1,28 @@ +<?xml version="1.0"?> +<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" + "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> +<svg width="12cm" height="6cm" viewBox="0 0 1200 600" + xmlns="http://www.w3.org/2000/svg" version="1.2" baseProfile="tiny"> + <title>Example quad01 - quadratic Bezier commands in path data</title> + <desc>Picture showing a "Q" a "T" command, + along with annotations showing the control points + and end points</desc> + <rect x="1" y="1" width="1198" height="598" + fill="none" stroke="blue" stroke-width="1" /> + <path d="M200,300 Q400,50 600,300 T1000,300" + fill="none" stroke="red" stroke-width="5" /> + <!-- End points --> + <g fill="black" > + <circle cx="200" cy="300" r="10"/> + <circle cx="600" cy="300" r="10"/> + <circle cx="1000" cy="300" r="10"/> + </g> + <!-- Control points and lines from end points to control points --> + <g fill="#888888" > + <circle cx="400" cy="50" r="10"/> + <circle cx="800" cy="550" r="10"/> + </g> + <path d="M200,300 L400,50 L600,300 + L800,550 L1000,300" + fill="none" stroke="#888888" stroke-width="2" /> +</svg> diff --git a/tests/arthur/data/1.2/08_04.svg b/tests/arthur/data/1.2/08_04.svg new file mode 100644 index 0000000..1d692b7 --- /dev/null +++ b/tests/arthur/data/1.2/08_04.svg @@ -0,0 +1,19 @@ +<?xml version="1.0"?> +<svg width="12cm" height="5.25cm" viewBox="0 0 1200 400" + xmlns="http://www.w3.org/2000/svg" version="1.2" baseProfile="tiny"> + <title>Example arcs01 - arc commands in path data</title> + <desc>Picture of a pie chart with two pie wedges and + a picture of a line with arc blips</desc> + <rect x="1" y="1" width="1198" height="398" + fill="none" stroke="blue" stroke-width="1" /> + <path d="M300,200 h-150 a150,150 0 1,0 150,-150 z" + fill="red" stroke="blue" stroke-width="5" /> + <path d="M275,175 v-150 a150,150 0 0,0 -150,150 z" + fill="yellow" stroke="blue" stroke-width="5" /> + <path d="M600,350 l 50,-25 + a25,25 -30 0,1 50,-25 l 50,-25 + a25,50 -30 0,1 50,-25 l 50,-25 + a25,75 -30 0,1 50,-25 l 50,-25 + a25,100 -30 0,1 50,-25 l 50,-25" + fill="none" stroke="red" stroke-width="5" /> +</svg> diff --git a/tests/arthur/data/1.2/09_02.svg b/tests/arthur/data/1.2/09_02.svg new file mode 100644 index 0000000..14df36e --- /dev/null +++ b/tests/arthur/data/1.2/09_02.svg @@ -0,0 +1,14 @@ +<?xml version="1.0"?> +<svg width="12cm" height="4cm" viewBox="0 0 1200 400" + xmlns="http://www.w3.org/2000/svg" version="1.2" baseProfile="tiny"> + <desc>Example rect02 - rounded rectangles</desc> + <!-- Show outline of canvas using 'rect' element --> + <rect x="1" y="1" width="1198" height="398" + fill="none" stroke="blue" stroke-width="2"/> + <rect x="100" y="100" width="400" height="200" rx="50" + fill="green" /> + <g transform="translate(700 210) rotate(-30)"> + <rect x="0" y="0" width="400" height="200" rx="50" + fill="none" stroke="purple" stroke-width="30" /> + </g> +</svg> diff --git a/tests/arthur/data/1.2/09_03.svg b/tests/arthur/data/1.2/09_03.svg new file mode 100644 index 0000000..93c12be --- /dev/null +++ b/tests/arthur/data/1.2/09_03.svg @@ -0,0 +1,10 @@ +<?xml version="1.0"?> +<svg width="12cm" height="4cm" viewBox="0 0 1200 400" + xmlns="http://www.w3.org/2000/svg" version="1.2" baseProfile="tiny"> + <desc>Example circle01 - circle filled with red and stroked with blue</desc> + <!-- Show outline of canvas using 'rect' element --> + <rect x="1" y="1" width="1198" height="398" + fill="none" stroke="blue" stroke-width="2"/> + <circle cx="600" cy="200" r="100" + fill="red" stroke="blue" stroke-width="10" /> +</svg> diff --git a/tests/arthur/data/1.2/09_04.svg b/tests/arthur/data/1.2/09_04.svg new file mode 100644 index 0000000..6929556 --- /dev/null +++ b/tests/arthur/data/1.2/09_04.svg @@ -0,0 +1,15 @@ +<?xml version="1.0"?> +<svg width="12cm" height="4cm" viewBox="0 0 1200 400" + xmlns="http://www.w3.org/2000/svg" version="1.2" baseProfile="tiny"> + <desc>Example ellipse01 - examples of ellipses</desc> + <!-- Show outline of canvas using 'rect' element --> + <rect x="1" y="1" width="1198" height="398" + fill="none" stroke="blue" stroke-width="2" /> + <g transform="translate(300 200)"> + <ellipse rx="250" ry="100" + fill="red" /> + </g> + <ellipse transform="translate(900 200) rotate(-30)" + rx="250" ry="100" + fill="none" stroke="blue" stroke-width="20" /> +</svg> diff --git a/tests/arthur/data/1.2/09_05.svg b/tests/arthur/data/1.2/09_05.svg new file mode 100644 index 0000000..a7407bf --- /dev/null +++ b/tests/arthur/data/1.2/09_05.svg @@ -0,0 +1,20 @@ +<?xml version="1.0"?> +<svg width="12cm" height="4cm" viewBox="0 0 1200 400" + xmlns="http://www.w3.org/2000/svg" version="1.2" baseProfile="tiny"> + <desc>Example line01 - lines expressed in user coordinates</desc> + <!-- Show outline of canvas using 'rect' element --> + <rect x="1" y="1" width="1198" height="398" + fill="none" stroke="blue" stroke-width="2" /> + <g stroke="green" > + <line x1="100" y1="300" x2="300" y2="100" + stroke-width="5" /> + <line x1="300" y1="300" x2="500" y2="100" + stroke-width="10" /> + <line x1="500" y1="300" x2="700" y2="100" + stroke-width="15" /> + <line x1="700" y1="300" x2="900" y2="100" + stroke-width="20" /> + <line x1="900" y1="300" x2="1100" y2="100" + stroke-width="25" /> + </g> +</svg> diff --git a/tests/arthur/data/1.2/09_06.svg b/tests/arthur/data/1.2/09_06.svg new file mode 100644 index 0000000..eeae2b4 --- /dev/null +++ b/tests/arthur/data/1.2/09_06.svg @@ -0,0 +1,16 @@ +<?xml version="1.0"?> +<svg width="12cm" height="4cm" viewBox="0 0 1200 400" + xmlns="http://www.w3.org/2000/svg" version="1.2" baseProfile="tiny"> + <desc>Example polyline01 - increasingly larger bars</desc> + <!-- Show outline of canvas using 'rect' element --> + <rect x="1" y="1" width="1198" height="398" + fill="none" stroke="blue" stroke-width="2" /> + <polyline fill="none" stroke="blue" stroke-width="10" + points="50,375 + 150,375 150,325 250,325 250,375 + 350,375 350,250 450,250 450,375 + 550,375 550,175 650,175 650,375 + 750,375 750,100 850,100 850,375 + 950,375 950,25 1050,25 1050,375 + 1150,375" /> +</svg>
\ No newline at end of file diff --git a/tests/arthur/data/1.2/09_07.svg b/tests/arthur/data/1.2/09_07.svg new file mode 100644 index 0000000..209b687 --- /dev/null +++ b/tests/arthur/data/1.2/09_07.svg @@ -0,0 +1,15 @@ +<?xml version="1.0"?> +<svg width="12cm" height="4cm" viewBox="0 0 1200 400" + xmlns="http://www.w3.org/2000/svg" version="1.2" baseProfile="tiny"> + <desc>Example polygon01 - star and hexagon</desc> + <!-- Show outline of canvas using 'rect' element --> + <rect x="1" y="1" width="1198" height="398" + fill="none" stroke="blue" stroke-width="2" /> + <polygon fill="red" stroke="blue" stroke-width="10" + points="350,75 379,161 469,161 397,215 + 423,301 350,250 277,301 303,215 + 231,161 321,161" /> + <polygon fill="lime" stroke="blue" stroke-width="10" + points="850,75 958,137.5 958,262.5 + 850,325 742,262.6 742,137.5" /> +</svg> diff --git a/tests/arthur/data/1.2/10_03.svg b/tests/arthur/data/1.2/10_03.svg new file mode 100644 index 0000000..475c910 --- /dev/null +++ b/tests/arthur/data/1.2/10_03.svg @@ -0,0 +1,15 @@ +<?xml version="1.0"?> +<svg width="10cm" height="3cm" viewBox="0 0 1000 300" + xmlns="http://www.w3.org/2000/svg" version="1.2" baseProfile="tiny"> + <desc>Example tspan01 - using tspan to change visual attributes</desc> + <g font-family="Verdana" font-size="45" > + <text x="200" y="150" fill="blue" > + You are + <tspan font-weight="bold" fill="red" >not</tspan> + a banana. + </text> + </g> + <!-- Show outline of canvas using 'rect' element --> + <rect x="1" y="1" width="998" height="298" + fill="none" stroke="blue" stroke-width="2" /> +</svg> diff --git a/tests/arthur/data/1.2/10_04.svg b/tests/arthur/data/1.2/10_04.svg new file mode 100644 index 0000000..e22babe --- /dev/null +++ b/tests/arthur/data/1.2/10_04.svg @@ -0,0 +1,20 @@ +<?xml version="1.0"?> +<svg width="10cm" height="3cm" viewBox="0 0 1000 300" + xmlns="http://www.w3.org/2000/svg" version="1.2" baseProfile="tiny"> + <desc>Example tspan02 - using tspan's dx and dy attributes + for incremental positioning adjustments</desc> + <g font-family="Verdana" font-size="45" > + <text x="200" y="150" fill="blue" > + But you + <tspan dx="2em" dy="-50" font-weight="bold" fill="red" > + are + </tspan> + <tspan dy="100"> + a peach! + </tspan> + </text> + </g> + <!-- Show outline of canvas using 'rect' element --> + <rect x="1" y="1" width="998" height="298" + fill="none" stroke="blue" stroke-width="2" /> +</svg> diff --git a/tests/arthur/data/1.2/10_05.svg b/tests/arthur/data/1.2/10_05.svg new file mode 100644 index 0000000..0871cd1 --- /dev/null +++ b/tests/arthur/data/1.2/10_05.svg @@ -0,0 +1,21 @@ +<?xml version="1.0"?> +<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" + "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> +<svg width="10cm" height="3cm" viewBox="0 0 1000 300" + xmlns="http://www.w3.org/2000/svg" version="1.1"> + <desc>Example tspan03 - using tspan's x and y attributes + for multiline text and precise glyph positioning</desc> + <g font-family="Verdana" font-size="45" > + <text fill="rgb(255,164,0)" > + <tspan x="300 350 400 450 500 550 600 650" y="100"> + Cute and + </tspan> + <tspan x="375 425 475 525 575" y="200"> + fuzzy + </tspan> + </text> + </g> + <!-- Show outline of canvas using 'rect' element --> + <rect x="1" y="1" width="998" height="298" + fill="none" stroke="blue" stroke-width="2" /> +</svg> diff --git a/tests/arthur/data/1.2/10_06.svg b/tests/arthur/data/1.2/10_06.svg new file mode 100644 index 0000000..1935f42 --- /dev/null +++ b/tests/arthur/data/1.2/10_06.svg @@ -0,0 +1,20 @@ +<?xml version="1.0"?> +<svg width="10cm" height="3cm" viewBox="0 0 1000 300" + xmlns="http://www.w3.org/2000/svg" version="1.2" baseProfile="tiny" + xmlns:xlink="http://www.w3.org/1999/xlink"> + <defs> + <text xml:id="ReferencedText"> + Referenced character data + </text> + </defs> + <desc>Example tref01 - inline vs reference text content</desc> + <text x="100" y="100" font-size="45" fill="blue" > + Inline character data + </text> + <text x="100" y="200" font-size="45" fill="red" > + <tref xlink:href="#ReferencedText"/> + </text> + <!-- Show outline of canvas using 'rect' element --> + <rect x="1" y="1" width="998" height="298" + fill="none" stroke="blue" stroke-width="2" /> +</svg> diff --git a/tests/arthur/data/1.2/10_07.svg b/tests/arthur/data/1.2/10_07.svg new file mode 100644 index 0000000..88f9bd2 --- /dev/null +++ b/tests/arthur/data/1.2/10_07.svg @@ -0,0 +1,20 @@ +<?xml version="1.0"?> +<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" + "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> +<svg width="12cm" height="4cm" viewBox="0 0 1200 400" + xmlns="http://www.w3.org/2000/svg" version="1.1"> + <desc>Example textdecoration01 - behavior of 'text-decoration' property</desc> + <rect x="1" y="1" width="1198" height="398" fill="none" stroke="blue" stroke-width="2" /> + <g font-size="60" fill="blue" stroke="red" stroke-width="1" > + <text x="100" y="75">Normal text</text> + <text x="100" y="165" text-decoration="line-through" >Text with line-through</text> + <text x="100" y="255" text-decoration="underline" >Underlined text</text> + <text x="100" y="345" text-decoration="underline" > + <tspan>One </tspan> + <tspan fill="yellow" stroke="purple" >word </tspan> + <tspan fill="yellow" stroke="black" >has </tspan> + <tspan fill="yellow" stroke="darkgreen" text-decoration="underline" >different </tspan> + <tspan fill="yellow" stroke="blue" >underlining</tspan> + </text> + </g> +</svg> diff --git a/tests/arthur/data/1.2/10_08.svg b/tests/arthur/data/1.2/10_08.svg new file mode 100644 index 0000000..62e7ed0 --- /dev/null +++ b/tests/arthur/data/1.2/10_08.svg @@ -0,0 +1,23 @@ +<?xml version="1.0"?> +<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" + "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> +<svg width="12cm" height="3.6cm" viewBox="0 0 1000 300" version="1.2" + xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> + <defs> + <path xml:id="MyPath" + d="M 100 200 + C 200 100 300 0 400 100 + C 500 200 600 300 700 200 + C 800 100 900 100 900 100" /> + </defs> + <desc>Example toap01 - simple text on a path</desc> + <use xlink:href="#MyPath" fill="none" stroke="red" /> + <text font-family="Verdana" font-size="42.5" fill="blue" > + <textPath xlink:href="#MyPath"> + We go up, then we go down, then up again + </textPath> + </text> + <!-- Show outline of canvas using 'rect' element --> + <rect x="1" y="1" width="998" height="298" + fill="none" stroke="blue" stroke-width="2" /> +</svg> diff --git a/tests/arthur/data/1.2/10_09.svg b/tests/arthur/data/1.2/10_09.svg new file mode 100644 index 0000000..2d971fe --- /dev/null +++ b/tests/arthur/data/1.2/10_09.svg @@ -0,0 +1,30 @@ +<?xml version="1.0"?> +<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" + "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> +<svg width="12cm" height="3.6cm" viewBox="0 0 1000 300" version="1.2" + xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> + <defs> + <path xml:id="MyPath" + d="M 100 200 + C 200 100 300 0 400 100 + C 500 200 600 300 700 200 + C 800 100 900 100 900 100" /> + </defs> + <desc>Example toap02 - tspan within textPath</desc> + <use xlink:href="#MyPath" fill="none" stroke="red" /> + <text font-family="Verdana" font-size="42.5" fill="blue" > + <textPath xlink:href="#MyPath"> + We go + <tspan dy="-30" fill="red" > + up + </tspan> + <tspan dy="30"> + , + </tspan> + then we go down, then up again + </textPath> + </text> + <!-- Show outline of canvas using 'rect' element --> + <rect x="1" y="1" width="998" height="298" + fill="none" stroke="blue" stroke-width="2" /> +</svg> diff --git a/tests/arthur/data/1.2/10_10.svg b/tests/arthur/data/1.2/10_10.svg new file mode 100644 index 0000000..e2feed5 --- /dev/null +++ b/tests/arthur/data/1.2/10_10.svg @@ -0,0 +1,23 @@ +<?xml version="1.0"?> +<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" + "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> +<svg width="12cm" height="3.6cm" viewBox="0 0 1000 300" version="1.2" + xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> + <defs> + <path xml:id="MyPath" + d="M 100 200 + C 200 100 300 0 400 100 + C 500 200 600 300 700 200 + C 800 100 900 100 900 100" /> + </defs> + <desc>Example toap03 - text on a path with startOffset attribute</desc> + <use xlink:href="#MyPath" fill="none" stroke="red" /> + <text font-family="Verdana" font-size="42.5" fill="blue" > + <textPath xlink:href="#MyPath" startOffset="80%"> + We go up, then we go down, then up again + </textPath> + </text> + <!-- Show outline of canvas using 'rect' element --> + <rect x="1" y="1" width="998" height="298" + fill="none" stroke="blue" stroke-width="2" /> +</svg> diff --git a/tests/arthur/data/1.2/10_11.svg b/tests/arthur/data/1.2/10_11.svg new file mode 100644 index 0000000..8134ce5 --- /dev/null +++ b/tests/arthur/data/1.2/10_11.svg @@ -0,0 +1,24 @@ +<?xml version="1.0"?> +<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" + "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> +<svg width="12cm" height="3.6cm" viewBox="0 0 1000 300" version="1.2" + xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> + <defs> + <path xml:id="MyPath" + d="M 100 125 + C 150 125 250 175 300 175 + C 350 175 450 125 500 125 + C 550 125 650 175 700 175 + C 750 175 850 125 900 125" /> + </defs> + <desc>Example toap04 - text on a path layout rules</desc> + <use xlink:href="#MyPath" fill="none" stroke="red" /> + <text font-family="Verdana" font-size="60" fill="blue" letter-spacing="2" > + <textPath xlink:href="#MyPath"> + Choose shame or get war + </textPath> + </text> + <!-- Show outline of canvas using 'rect' element --> + <rect x="1" y="1" width="998" height="298" + fill="none" stroke="blue" stroke-width="2" /> +</svg> diff --git a/tests/arthur/data/1.2/11_01.svg b/tests/arthur/data/1.2/11_01.svg new file mode 100644 index 0000000..2a6d5b5 --- /dev/null +++ b/tests/arthur/data/1.2/11_01.svg @@ -0,0 +1,20 @@ +<?xml version="1.0"?> +<svg width="7cm" height="2cm" viewBox="0 0 700 200" + xmlns="http://www.w3.org/2000/svg" version="1.2" baseProfile="tiny"> + <desc>Gradients apply to leaf nodes + </desc> + <g> + <defs> + <linearGradient xml:id="MyGradient" gradientUnits="objectBoundingBox"> + <stop offset="0" stop-color="#F60" /> + <stop offset="1" stop-color="#FF6" /> + </linearGradient> + </defs> + <rect x="1" y="1" width="698" height="198" + fill="none" stroke="blue" stroke-width="2" /> + <g fill="url(#MyGradient)" > + <rect x="100" y="50" width="200" height="100"/> + <rect x="400" y="50" width="200" height="100"/> + </g> + </g> +</svg> diff --git a/tests/arthur/data/1.2/11_02.svg b/tests/arthur/data/1.2/11_02.svg new file mode 100644 index 0000000..4806892 --- /dev/null +++ b/tests/arthur/data/1.2/11_02.svg @@ -0,0 +1,9 @@ +<?xml version="1.0"?> +<svg xmlns="http://www.w3.org/2000/svg" version="1.2" + viewport-fill="red" baseProfile="tiny"> + <desc> + Everything here has a red background. + The rectangle is not filled, so the red background will show through + </desc> + <rect x="20" y="20" width="100" height="100" fill="none" stroke="black"/> +</svg> diff --git a/tests/arthur/data/1.2/11_03.svg b/tests/arthur/data/1.2/11_03.svg new file mode 100644 index 0000000..219d075 --- /dev/null +++ b/tests/arthur/data/1.2/11_03.svg @@ -0,0 +1,11 @@ +<?xml version="1.0"?> +<svg xmlns="http://www.w3.org/2000/svg" version="1.2" + viewport-fill="yellow" baseProfile="tiny" viewBox="0 0 300 100"> + <desc> + The viewport has a yellow background. + The rectangle is filled and covers the viewport, so the yellow + background will only show through in the "leftovers" if the + aspect ratio of the viewport differs from thatof the viewBox. + </desc> + <rect x="0" y="0" width="300" height="100" fill="red" fill-opacity="0.3" stroke="black"/> +</svg> diff --git a/tests/arthur/data/1.2/13_01.svg b/tests/arthur/data/1.2/13_01.svg new file mode 100644 index 0000000..d7bba1f --- /dev/null +++ b/tests/arthur/data/1.2/13_01.svg @@ -0,0 +1,20 @@ +<?xml version="1.0"?> +<svg width="8cm" height="4cm" viewBox="0 0 800 400" + xmlns="http://www.w3.org/2000/svg" version="1.2" baseProfile="tiny"> + <desc>Example lingrad01 - fill a rectangle using a + linear gradient paint server</desc> + <g> + <defs> + <linearGradient xml:id="MyGradient"> + <stop offset="0.05" stop-color="#F60" /> + <stop offset="0.95" stop-color="#FF6" /> + </linearGradient> + </defs> + <!-- Outline the drawing area in blue --> + <rect fill="none" stroke="blue" + x="1" y="1" width="798" height="398"/> + <!-- The rectangle is filled using a linear gradient paint server --> + <rect fill="url(#MyGradient)" stroke="black" stroke-width="5" + x="100" y="100" width="600" height="200"/> + </g> +</svg> diff --git a/tests/arthur/data/1.2/13_02.svg b/tests/arthur/data/1.2/13_02.svg new file mode 100644 index 0000000..e7d8b7f --- /dev/null +++ b/tests/arthur/data/1.2/13_02.svg @@ -0,0 +1,22 @@ +<?xml version="1.0"?> +<svg width="8cm" height="4cm" viewBox="0 0 800 400" + xmlns="http://www.w3.org/2000/svg" version="1.2" baseProfile="tiny"> + <desc>Example radgrad01 - fill a rectangle by referencing a + radial gradient paint server</desc> + <g> + <defs> + <radialGradient xml:id="MyGradient" gradientUnits="userSpaceOnUse" + cx="400" cy="200" r="300"> + <stop offset="0" stop-color="red" /> + <stop offset="0.5" stop-color="blue" /> + <stop offset="1" stop-color="red" /> + </radialGradient> + </defs> + <!-- Outline the drawing area in blue --> + <rect fill="none" stroke="blue" + x="1" y="1" width="798" height="398"/> + <!-- The rectangle is filled using a radial gradient paint server --> + <rect fill="url(#MyGradient)" stroke="black" stroke-width="5" + x="100" y="100" width="600" height="200"/> + </g> +</svg> diff --git a/tests/arthur/data/1.2/19_01.svg b/tests/arthur/data/1.2/19_01.svg new file mode 100644 index 0000000..794ba6f --- /dev/null +++ b/tests/arthur/data/1.2/19_01.svg @@ -0,0 +1,51 @@ +<?xml version="1.0"?> +<svg width="8cm" height="3cm" viewBox="0 0 800 300" + xmlns="http://www.w3.org/2000/svg" version="1.2" baseProfile="tiny"> + <desc>Example anim01 - demonstrate animation elements</desc> + <rect x="1" y="1" width="798" height="298" + fill="none" stroke="blue" stroke-width="2" /> + <!-- The following illustrates the use of the 'animate' element + to animate a rectangles x, y, and width attributes so that + the rectangle grows to ultimately fill the viewport. --> + <rect xml:id="RectElement" x="300" y="100" width="300" height="100" + fill="rgb(255,255,0)" > + <animate attributeName="x" + begin="0s" dur="9s" fill="freeze" from="300" to="0" /> + <animate attributeName="y" + begin="0s" dur="9s" fill="freeze" from="100" to="0" /> + <animate attributeName="width" + begin="0s" dur="9s" fill="freeze" from="300" to="800" /> + <animate attributeName="height" + begin="0s" dur="9s" fill="freeze" from="100" to="300" /> + </rect> + <!-- Set up a new user coordinate system so that + the text string's origin is at (0,0), allowing + rotation and scale relative to the new origin --> + <g transform="translate(100,100)" > + <!-- The following illustrates the use of the 'set', 'animateMotion', + 'animateColor' and 'animateTransform' elements. The 'text' element + below starts off hidden (i.e., invisible). At 3 seconds, it: + * becomes visible + * continuously moves diagonally across the viewport + * changes color from blue to dark red + * rotates from -30 to zero degrees + * scales by a factor of three. --> + <text xml:id="TextElement" x="0" y="0" + font-family="Verdana" font-size="35.27" visibility="hidden" > + It's alive! + <set attributeName="visibility" to="visible" + begin="3s" dur="6s" fill="freeze" /> + <animateMotion path="M 0 0 L 100 100" + begin="3s" dur="6s" fill="freeze" /> + <animateColor attributeName="fill" + from="rgb(0,0,255)" to="rgb(128,0,0)" + begin="3s" dur="6s" fill="freeze" /> + <animateTransform attributeName="transform" + type="rotate" from="-30" to="0" + begin="3s" dur="6s" fill="freeze" /> + <animateTransform attributeName="transform" + type="scale" from="1" to="3" additive="sum" + begin="3s" dur="6s" fill="freeze" /> + </text> + </g> +</svg> diff --git a/tests/arthur/data/1.2/19_02.svg b/tests/arthur/data/1.2/19_02.svg new file mode 100644 index 0000000..69c55d9 --- /dev/null +++ b/tests/arthur/data/1.2/19_02.svg @@ -0,0 +1,25 @@ +<?xml version="1.0"?> +<svg width="5cm" height="3cm" viewBox="0 0 500 300" + xmlns="http://www.w3.org/2000/svg" version="1.2" baseProfile="tiny" + xmlns:xlink="http://www.w3.org/1999/xlink" > + <desc>Example animMotion01 - demonstrate motion animation computations</desc> + <rect x="1" y="1" width="498" height="298" + fill="none" stroke="blue" stroke-width="2" /> + <!-- Draw the outline of the motion path in blue, along + with three small circles at the start, middle and end. --> + <path xml:id="path1" d="M100,250 C 100,50 400,50 400,250" + fill="none" stroke="blue" stroke-width="7.06" /> + <circle cx="100" cy="250" r="17.64" fill="blue" /> + <circle cx="250" cy="100" r="17.64" fill="blue" /> + <circle cx="400" cy="250" r="17.64" fill="blue" /> + <!-- Here is a triangle which will be moved about the motion path. + It is defined with an upright orientation with the base of + the triangle centered horizontally just above the origin. --> + <path d="M-25,-12.5 L25,-12.5 L 0,-87.5 z" + fill="yellow" stroke="red" stroke-width="7.06" > + <!-- Define the motion path animation --> + <animateMotion dur="6s" repeatCount="indefinite" rotate="auto" > + <mpath xlink:href="#path1"/> + </animateMotion> + </path> +</svg> diff --git a/tests/arthur/data/1.2/animation.svg b/tests/arthur/data/1.2/animation.svg new file mode 100644 index 0000000..7ae56bb --- /dev/null +++ b/tests/arthur/data/1.2/animation.svg @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" + version="1.2" baseProfile="tiny" width="100%" height="100%" viewBox="0 0 580 400"> + + <g fill="rgb(157,0,79)"> + <animation x="20" xlink:href="referencedRect.svg"/> + <animation x="100" xlink:href="referencedRect2.svg"/> + <animation begin="1" x="180" viewport-fill="rgb(255,28,141)" xlink:href="referencedRect.svg"/> + </g> + +</svg>
\ No newline at end of file diff --git a/tests/arthur/data/1.2/cubic02.svg b/tests/arthur/data/1.2/cubic02.svg new file mode 100644 index 0000000..492bb72 --- /dev/null +++ b/tests/arthur/data/1.2/cubic02.svg @@ -0,0 +1,77 @@ +<?xml version="1.0" standalone="no"?> +<svg width="10cm" height="10cm" viewBox="0 0 1000 1000" + xmlns="http://www.w3.org/2000/svg" version="1.2" baseProfile="tiny"> + <title>Example cubic02 - cubic Bezier commands in path data</title> + <desc>Picture showing examples of "C" and "S" commands, + along with annotations showing the control points + and end points</desc> + + <rect fill="none" stroke="blue" stroke-width="1" x="1" y="1" width="998" height="998" /> + + <!-- Path 1 --> + <polyline fill="none" stroke="#888888" stroke-width="2" points="100,200 100,100" /> + <polyline fill="none" stroke="#888888" stroke-width="2" points="400,100 400,200" /> + <path fill="none" stroke="red" stroke-width="5" d="M100,200 C100,100 400,100 400,200" /> + <circle fill="none" stroke="#888888" stroke-width="2" cx="100" cy="200" r="10" /> + <circle fill="none" stroke="#888888" stroke-width="2" cx="400" cy="200" r="10" /> + <circle class="CtlPoint" cx="100" cy="100" r="10" /> + <circle class="CtlPoint" cx="400" cy="100" r="10" /> + <text text-anchor="middle" font-size="22" font-family="Verdana" x="250" y="275">M100,200 C100,100 400,100 400,200</text> + + <!-- Path 2 --> + <polyline fill="none" stroke="#888888" stroke-width="2" points="100,500 25,400" /> + <polyline fill="none" stroke="#888888" stroke-width="2" points="475,400 400,500" /> + <path fill="none" stroke="red" stroke-width="5" d="M100,500 C25,400 475,400 400,500" /> + <circle fill="none" stroke="#888888" stroke-width="2" cx="100" cy="500" r="10" /> + <circle fill="none" stroke="#888888" stroke-width="2" cx="400" cy="500" r="10" /> + <circle fill="#888888" stroke="none" cx="25" cy="400" r="10" /> + <circle fill="#888888" stroke="none" cx="475" cy="400" r="10" /> + <text text-anchor="middle" font-size="22" font-family="Verdana" x="250" y="575">M100,500 C25,400 475,400 400,500</text> + + <!-- Path 3 --> + <polyline fill="none" stroke="#888888" stroke-width="2" points="100,800 175,700" /> + <polyline fill="none" stroke="#888888" stroke-width="2" points="325,700 400,800" /> + <path fill="none" stroke="red" stroke-width="5" d="M100,800 C175,700 325,700 400,800" /> + <circle fill="none" stroke="#888888" stroke-width="2" cx="100" cy="800" r="10" /> + <circle fill="none" stroke="#888888" stroke-width="2" cx="400" cy="800" r="10" /> + <circle fill="#888888" stroke="none" cx="175" cy="700" r="10" /> + <circle fill="#888888" stroke="none" cx="325" cy="700" r="10" /> + <text text-anchor="middle" font-size="22" font-family="Verdana" x="250" y="875">M100,800 C175,700 325,700 400,800</text> + + <!-- Path 4 --> + <polyline fill="none" stroke="#888888" stroke-width="2" points="600,200 675,100" /> + <polyline fill="none" stroke="#888888" stroke-width="2" points="975,100 900,200" /> + <path fill="none" stroke="red" stroke-width="5" d="M600,200 C675,100 975,100 900,200" /> + <circle fill="none" stroke="#888888" stroke-width="2" cx="600" cy="200" r="10" /> + <circle fill="none" stroke="#888888" stroke-width="2" cx="900" cy="200" r="10" /> + <circle fill="#888888" stroke="none" cx="675" cy="100" r="10" /> + <circle fill="#888888" stroke="none" cx="975" cy="100" r="10" /> + <text text-anchor="middle" font-size="22" font-family="Verdana" x="750" y="275">M600,200 C675,100 975,100 900,200</text> + + <!-- Path 5 --> + <polyline fill="none" stroke="#888888" stroke-width="2" points="600,500 600,350" /> + <polyline fill="none" stroke="#888888" stroke-width="2" points="900,650 900,500" /> + <path fill="none" stroke="red" stroke-width="5" d="M600,500 C600,350 900,650 900,500" /> + <circle fill="none" stroke="#888888" stroke-width="2" cx="600" cy="500" r="10" /> + <circle fill="none" stroke="#888888" stroke-width="2" cx="900" cy="500" r="10" /> + <circle fill="#888888" stroke="none" cx="600" cy="350" r="10" /> + <circle fill="#888888" stroke="none" cx="900" cy="650" r="10" /> + <text text-anchor="middle" font-size="22" font-family="Verdana" x="750" y="575">M600,500 C600,350 900,650 900,500</text> + + <!-- Path 6 (C and S command) --> + <polyline fill="none" stroke="#888888" stroke-width="2" points="600,800 625,700" /> + <polyline fill="none" stroke="#888888" stroke-width="2" points="725,700 750,800" /> + <polyline fill="none" stroke="#888888" stroke-width="2" points="750,800 775,900" /> + <polyline fill="none" stroke="#888888" stroke-width="2" points="875,900 900,800" /> + <path fill="none" stroke="red" stroke-width="5" d="M600,800 C625,700 725,700 750,800 + S875,900 900,800" /> + <circle fill="none" stroke="#888888" stroke-width="2" cx="600" cy="800" r="10" /> + <circle fill="none" stroke="#888888" stroke-width="2" cx="750" cy="800" r="10" /> + <circle fill="none" stroke="#888888" stroke-width="2" cx="900" cy="800" r="10" /> + <circle fill="#888888" stroke="none" cx="625" cy="700" r="10" /> + <circle fill="#888888" stroke="none" cx="725" cy="700" r="10" /> + <circle fill="#888888" stroke="none" cx="875" cy="900" r="10" /> + <circle fill="none" stroke="blue" stroke-width="4" cx="775" cy="900" r="9" /> + <text text-anchor="middle" font-size="22" font-family="Verdana" x="750" y="945">M600,800 C625,700 725,700 750,800</text> + <text text-anchor="middle" font-size="22" font-family="Verdana" x="750" y="975">S875,900 900,800</text> +</svg> diff --git a/tests/arthur/data/1.2/fillrule-evenodd.svg b/tests/arthur/data/1.2/fillrule-evenodd.svg new file mode 100644 index 0000000..0fda125 --- /dev/null +++ b/tests/arthur/data/1.2/fillrule-evenodd.svg @@ -0,0 +1,38 @@ +<?xml version="1.0" standalone="no"?> +<svg viewBox="0 0 1200 400" version="1.2" baseProfile="tiny" + xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> + <desc>Example fillrule-evenodd - demonstrates fill-rule:evenodd</desc> + + <rect x="1" y="1" width="1198" height="398" + fill="none" stroke="blue" /> + <defs> + <path id="Triangle" d="M 16,0 L -8,9 v-18 z" fill="black" stroke="none" /> + </defs> + <g fill-rule="evenodd" fill="red" stroke="black" stroke-width="3" > + <path d="M 250,75 L 323,301 131,161 369,161 177,301 z" /> + <use xlink:href="#Triangle" transform="translate(306.21 249) rotate(72)" overflow="visible" /> + <use xlink:href="#Triangle" transform="translate(175.16,193.2) rotate(216)" overflow="visible" /> + <use xlink:href="#Triangle" transform="translate(314.26,161) rotate(0)" overflow="visible" /> + <use xlink:href="#Triangle" transform="translate(221.16,268.8) rotate(144)" overflow="visible" /> + <use xlink:href="#Triangle" transform="translate(233.21,126.98) rotate(288)" overflow="visible" /> + <path d=" + M 600, 81 c 59.196, 0, 107.18, 48.148, 107.18, 107.542 c 0, 59.387 -47.983, 107.535 -107.18, 107.535 c -59.192, 0 -107.178 -48.148 -107.178 -107.535 C 493.322, 129.048, 541.308, 81, 601, 81 z
+ M600,139 c 27.109, 0, 49.081, 22.048, 49.081, 49.249 c 0,27.193 -21.972, 49.242 -49.081, 49.242 c -27.106, 0 -49.082 -22.049 -49.082 -49.242 C 551.418, 161.242, 573.394, 139, 600, 139 z"/>
+ <use xlink:href="#Triangle" transform="translate(600,188) rotate(0) translate(107,0) rotate(90)" overflow="visible" /> + <use xlink:href="#Triangle" transform="translate(600,188) rotate(120) translate(107,0) rotate(90)" overflow="visible" /> + <use xlink:href="#Triangle" transform="translate(600,188) rotate(240) translate(107,0) rotate(90)" overflow="visible" /> + <use xlink:href="#Triangle" transform="translate(600,188) rotate(60) translate(49,0) rotate(90)" overflow="visible" /> + <use xlink:href="#Triangle" transform="translate(600,188) rotate(180) translate(49,0) rotate(90)" overflow="visible" /> + <use xlink:href="#Triangle" transform="translate(600,188) rotate(300) translate(49,0) rotate(90)" overflow="visible" /> + <path d=" + M 950,81 c 59.192, 0, 107.177, 48.148, 107.177, 107.542 c 0, 59.387 -47.984, 107.535 -107.177, 107.535 c -59.196, 0 -107.18 -48.148 -107.18 -107.535 C 843.906, 129.048, 891.89, 81, 950, 81 z
+ M 950, 139 c -27.109, 0 -49.085, 22.048 -49.085, 49.249 c 0, 27.193, 21.976, 49.242, 49.085, 49.242 c 27.106, 0, 49.082 -22.049, 49.082 -49.242 C 1000.168, 161.242, 978.192, 139, 950, 139 z"/>
+ <use xlink:href="#Triangle" transform="translate(950,188) rotate(0) translate(107,0) rotate(90)" overflow="visible" /> + <use xlink:href="#Triangle" transform="translate(950,188) rotate(120) translate(107,0) rotate(90)" overflow="visible" /> + <use xlink:href="#Triangle" transform="translate(950,188) rotate(240) translate(107,0) rotate(90)" overflow="visible" /> + <use xlink:href="#Triangle" transform="translate(950,188) rotate(60) translate(49,0) rotate(-90)" overflow="visible" /> + <use xlink:href="#Triangle" transform="translate(950,188) rotate(180) translate(49,0) rotate(-90)" overflow="visible" /> + <use xlink:href="#Triangle" transform="translate(950,188) rotate(300) translate(49,0) rotate(-90)" overflow="visible" /> + </g> +</svg> + diff --git a/tests/arthur/data/1.2/fillrule-nonzero.svg b/tests/arthur/data/1.2/fillrule-nonzero.svg new file mode 100644 index 0000000..ea71864 --- /dev/null +++ b/tests/arthur/data/1.2/fillrule-nonzero.svg @@ -0,0 +1,38 @@ +<?xml version="1.0" standalone="no"?> +<svg viewBox="0 0 1200 400" version="1.2" baseProfile="tiny" + xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> + <desc>Example fillrule-nonzero - demonstrates fill-rule:nonzero</desc> + + <rect x="1" y="1" width="1198" height="398" + fill="none" stroke="blue" /> + <defs> + <path id="Triangle" d="M 16,0 L -8,9 v-18 z" fill="black" stroke="none" /> + </defs> + <g fill-rule="nonzero" fill="red" stroke="black" stroke-width="3" > + <path d="M 250,75 L 323,301 131,161 369,161 177,301 z" /> + <use xlink:href="#Triangle" transform="translate(306.21 249) rotate(72)" overflow="visible" /> + <use xlink:href="#Triangle" transform="translate(175.16,193.2) rotate(216)" overflow="visible" /> + <use xlink:href="#Triangle" transform="translate(314.26,161) rotate(0)" overflow="visible" /> + <use xlink:href="#Triangle" transform="translate(221.16,268.8) rotate(144)" overflow="visible" /> + <use xlink:href="#Triangle" transform="translate(233.21,126.98) rotate(288)" overflow="visible" /> + <path d=" + M 600, 81 c 59.196, 0, 107.18, 48.148, 107.18, 107.542 c 0, 59.387 -47.983, 107.535 -107.18, 107.535 c -59.192, 0 -107.178 -48.148 -107.178 -107.535 C 493.322, 129.048, 541.308, 81, 601, 81 z
+ M600,139 c 27.109, 0, 49.081, 22.048, 49.081, 49.249 c 0,27.193 -21.972, 49.242 -49.081, 49.242 c -27.106, 0 -49.082 -22.049 -49.082 -49.242 C 551.418, 161.242, 573.394, 139, 600, 139 z"/>
+ <use xlink:href="#Triangle" transform="translate(600,188) rotate(0) translate(107,0) rotate(90)" overflow="visible" /> + <use xlink:href="#Triangle" transform="translate(600,188) rotate(120) translate(107,0) rotate(90)" overflow="visible" /> + <use xlink:href="#Triangle" transform="translate(600,188) rotate(240) translate(107,0) rotate(90)" overflow="visible" /> + <use xlink:href="#Triangle" transform="translate(600,188) rotate(60) translate(49,0) rotate(90)" overflow="visible" /> + <use xlink:href="#Triangle" transform="translate(600,188) rotate(180) translate(49,0) rotate(90)" overflow="visible" /> + <use xlink:href="#Triangle" transform="translate(600,188) rotate(300) translate(49,0) rotate(90)" overflow="visible" /> + <path d=" + M 950,81 c 59.192, 0, 107.177, 48.148, 107.177, 107.542 c 0, 59.387 -47.984, 107.535 -107.177, 107.535 c -59.196, 0 -107.18 -48.148 -107.18 -107.535 C 843.906, 129.048, 891.89, 81, 950, 81 z
+ M 950, 139 c -27.109, 0 -49.085, 22.048 -49.085, 49.249 c 0, 27.193, 21.976, 49.242, 49.085, 49.242 c 27.106, 0, 49.082 -22.049, 49.082 -49.242 C 1000.168, 161.242, 978.192, 139, 950, 139 z"/>
+ <use xlink:href="#Triangle" transform="translate(950,188) rotate(0) translate(107,0) rotate(90)" overflow="visible" /> + <use xlink:href="#Triangle" transform="translate(950,188) rotate(120) translate(107,0) rotate(90)" overflow="visible" /> + <use xlink:href="#Triangle" transform="translate(950,188) rotate(240) translate(107,0) rotate(90)" overflow="visible" /> + <use xlink:href="#Triangle" transform="translate(950,188) rotate(60) translate(49,0) rotate(-90)" overflow="visible" /> + <use xlink:href="#Triangle" transform="translate(950,188) rotate(180) translate(49,0) rotate(-90)" overflow="visible" /> + <use xlink:href="#Triangle" transform="translate(950,188) rotate(300) translate(49,0) rotate(-90)" overflow="visible" /> + </g> +</svg> + diff --git a/tests/arthur/data/1.2/linecap.svg b/tests/arthur/data/1.2/linecap.svg new file mode 100644 index 0000000..af0b824 --- /dev/null +++ b/tests/arthur/data/1.2/linecap.svg @@ -0,0 +1,32 @@ +<?xml version="1.0" standalone="no"?> +<svg width="12cm" height="2cm" viewBox="0 0 1200 200" version="1.2" baseProfile="tiny" + xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> + <desc>Example linecap - demonstrates three stroke-linecap values</desc> + <rect x="1" y="1" width="1198" height="198" fill="none" stroke="blue" /> + <defs> + <line id="line1" x1="-125" x2="125" y1="0" y2="0" fill="none" /> + <g id="circles"> + <circle fill="#ffcccc" stroke="none" id="circle1" cx="-125" cy="0" r="8"/> + <circle fill="#ffcccc" stroke="none" id="circle2" cx="125" cy="0" r="8"/> + </g> + </defs> + <g transform="translate(200,75)"> + <use stroke="black" stroke-width="70" xlink:href="#line1" stroke-linecap="butt"/> + <use stroke="#ffcccc" stroke-width="5" xlink:href="#line1"/> + <use xlink:href="#circles"/> + <text text-anchor="middle" font-size="50" font-family="Verdana" y="90">'butt' cap</text> + </g> + <g transform="translate(600,75)"> + <use stroke="black" stroke-width="70" xlink:href="#line1" stroke-linecap="round"/> + <use stroke="#ffcccc" stroke-width="5" xlink:href="#line1"/> + <use xlink:href="#circles"/> + <text text-anchor="middle" font-size="50" font-family="Verdana" y="90">'round' cap</text> + </g> + <g transform="translate(1000,75)"> + <use stroke="black" stroke-width="70" xlink:href="#line1" stroke-linecap="square"/> + <use stroke="#ffcccc" stroke-width="5" xlink:href="#line1"/> + <use xlink:href="#circles"/> + <text text-anchor="middle" font-size="50" font-family="Verdana" y="90">'square' cap</text> + </g> +</svg> + diff --git a/tests/arthur/data/1.2/linejoin.svg b/tests/arthur/data/1.2/linejoin.svg new file mode 100644 index 0000000..265e733 --- /dev/null +++ b/tests/arthur/data/1.2/linejoin.svg @@ -0,0 +1,29 @@ +<?xml version="1.0" standalone="no"?> +<svg width="12cm" height="3.5cm" viewBox="0 0 1200 350" version="1.2" baseProfile="tiny" + xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> + <desc>Example linecap - demonstrates three stroke-linecap values</desc> + <rect x="1" y="1" width="1198" height="348" fill="none" stroke="blue" /> + <defs> + <path id="path1" d="M -125,150 L 0,0 L 125,150" fill="none" /> + <circle fill="#ffcccc" stroke="none" id="circle1" cx="0" cy="0" r="8"/> + </defs> + <g transform="translate(200,75)"> + <use stroke="black" stroke-width="70" xlink:href="#path1" stroke-linejoin="miter"/> + <use stroke="#ffcccc" stroke-width="5" xlink:href="#path1"/> + <use xlink:href="#circle1"/> + <text text-anchor="middle" font-size="50" font-family="Verdana" y="230">'miter' join</text> + </g> + <g transform="translate(600,75)"> + <use stroke="black" stroke-width="70" xlink:href="#path1" stroke-linejoin="round"/> + <use stroke="#ffcccc" stroke-width="5" xlink:href="#path1"/> + <use xlink:href="#circle1"/> + <text text-anchor="middle" font-size="50" font-family="Verdana" y="230">'round' join</text> + </g> + <g transform="translate(1000,75)"> + <use stroke="black" stroke-width="70" xlink:href="#path1" stroke-linejoin="bevel"/> + <use stroke="#ffcccc" stroke-width="5" xlink:href="#path1"/> + <use xlink:href="#circle1"/> + <text text-anchor="middle" font-size="50" font-family="Verdana" y="230">'bevel' join</text> + </g> +</svg> + diff --git a/tests/arthur/data/1.2/media01.svg b/tests/arthur/data/1.2/media01.svg new file mode 100644 index 0000000..7c2a349 --- /dev/null +++ b/tests/arthur/data/1.2/media01.svg @@ -0,0 +1,20 @@ + +<svg width="100%" height="100%" version="1.2" baseProfile="tiny" + xmlns="http://www.w3.org/2000/svg" + xmlns:xlink="http://www.w3.org/1999/xlink"> + + <desc>SVG audio example</desc> + + <audio xlink:href="ouch.ogg" audio-level="0.7" type="audio/vorbis" + begin="mybutton.click" repeatCount="3"/> + + <g xml:id="mybutton"> + <rect width="150" height="50" x="20" y="20" rx="10" + fill="#ffd" stroke="#933" stroke-width="5"/> + <text x="95" y="55" text-anchor="middle" font-size="30" + fill="#933">Press Me</text> + </g> + + <rect x="0" y="0" width="190" height="90" fill="none" stroke="#777"/> + +</svg>
\ No newline at end of file diff --git a/tests/arthur/data/1.2/media02.svg b/tests/arthur/data/1.2/media02.svg new file mode 100644 index 0000000..99fa8a0 --- /dev/null +++ b/tests/arthur/data/1.2/media02.svg @@ -0,0 +1,13 @@ +<svg xmlns="http://www.w3.org/2000/svg" version="1.2" baseProfile="tiny" + xmlns:xlink="http://www.w3.org/1999/xlink" + width="420" height="340" viewBox="0 0 420 340"> + <desc>SVG 1.2 video example</desc> + <g> + <circle cx="0" cy="0" r="170" fill="#da4" fill-opacity="0.3"/> + <video xlink:href="noonoo.avi" audio-level=".8" type="video/x-msvideo" + width="320" height="240" x="50" y="50" repeatCount="indefinite"/> + <circle cx="420" cy="340" r="170" fill="#927" fill-opacity="0.3"/> + <rect x="1" y="1" width="418" height="338" fill="none" + stroke="#777" stroke-width="1"/> + </g> +</svg> diff --git a/tests/arthur/data/1.2/media03.svg b/tests/arthur/data/1.2/media03.svg new file mode 100644 index 0000000..2b3060b --- /dev/null +++ b/tests/arthur/data/1.2/media03.svg @@ -0,0 +1,13 @@ + +<svg xmlns="http://www.w3.org/2000/svg" + xmlns:xlink="http://www.w3.org/1999/xlink" + version="1.2" baseProfile="tiny"> + <desc>Example of two animation elements pointing to the same content.</desc> + + <animation begin="1" dur="3" repeatCount="1.5" fill="freeze" + x="100" y="100" width="50" height="50" + xlink:href="bouncingBall.svg"/> + + <animation begin="2" x="300" y="100" width="50" height="50" + xlink:href="bouncingBall.svg"/> +</svg> diff --git a/tests/arthur/data/1.2/media04.svg b/tests/arthur/data/1.2/media04.svg new file mode 100644 index 0000000..5c39652 --- /dev/null +++ b/tests/arthur/data/1.2/media04.svg @@ -0,0 +1,24 @@ +<svg version="1.2" baseProfile="tiny" xmlns="http://www.w3.org/2000/svg" + xmlns:xlink="http://www.w3.org/1999/xlink" + width="100%" height="100%" viewBox="0 0 400 300"> + <desc>Example of switching on the http://www.w3.org/TR/SVG12/feature#TransformedVideo feature string</desc> + <switch> + + <!-- Transformed video group --> + <g requiredFeatures="http://www.w3.org/TR/SVG12/feature#TransformedVideo" + transform="translate(-21,-34) scale(1.24) rotate(-30)"> + <rect x="6" y="166" width="184" height="140" fill="none" stroke="blue" + stroke-width="4" /> + <video xlink:href="ski.avi" audio-level=".8" type="video/x-msvideo" + x="10" y="170" width="176" height="132"/> + </g> + + <!-- Untransformed video group --> + <g> + <rect x="6" y="166" width="184" height="140" fill="none" stroke="blue" + stroke-width="4"/> + <video xlink:href="ski.avi" audio-level=".8" type="video/x-msvideo" + x="10" y="170"/> + </g> + </switch> +</svg> diff --git a/tests/arthur/data/1.2/media05.svg b/tests/arthur/data/1.2/media05.svg new file mode 100644 index 0000000..e890b02 --- /dev/null +++ b/tests/arthur/data/1.2/media05.svg @@ -0,0 +1,27 @@ +<?xml version="1.0"?> +<svg version="1.2" baseProfile="tiny" xmlns="http://www.w3.org/2000/svg" + xmlns:xlink="http://www.w3.org/1999/xlink" + width="100%" height="100%" viewBox="0 0 400 300"> + <desc>Example of switching on the http://www.w3.org/TR/SVG12/feature#ComposedVideo feature string</desc> + <rect x="2" y="2" width="396" height="296" fill="none" stroke="black" + stroke-width="2" /> + <rect x="106" y="66" width="184" height="140" fill="none" stroke="blue" + stroke-width="4" /> + + <switch> + + <!-- Composited video group --> + <g transform="translate(100 0)" requiredFeatures="http://www.w3.org/TR/SVG12/feature#ComposedVideo"> + <video xlink:href="ski.avi" audio-level=".8" type="video/x-msvideo" + x="10" y="70" width="176" height="132"/> + <text x="20" y="100" fill-opacity="0.5" fill="blue" font-size="20">Composited title.</text> + </g> + + <!-- Overlayed video group --> + <g transform="translate(100 0)" font-size="18"> + <video xlink:href="ski.avi" audio-level=".8" type="video/x-msvideo" + x="10" y="70" overlay="top" width="176" height="132"/> + <text x="15" y="60" fill="blue" fill-opacity="0.5" >Non-composited title.</text> + </g> + </switch> +</svg> diff --git a/tests/arthur/data/1.2/mpath01.svg b/tests/arthur/data/1.2/mpath01.svg new file mode 100644 index 0000000..b77cea6 --- /dev/null +++ b/tests/arthur/data/1.2/mpath01.svg @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<svg version="1.2" baseProfile="tiny" xmlns="http://www.w3.org/2000/svg" + xmlns:xlink="http://www.w3.org/1999/xlink" + width="100%" height="100%" viewBox="0 0 80 60"> + <desc>mpath example</desc> + <path xml:id="mpathRef" d="M15,43 C15,43 36,20 65,33" fill="none" stroke="black" stroke-width="1"/> + <animateMotion begin="0s" dur="6s" calcMode="linear" fill="freeze"> + <mpath xlink:href="#mpathRef"/> + </animateMotion> +</svg> diff --git a/tests/arthur/data/1.2/non-scaling-stroke.svg b/tests/arthur/data/1.2/non-scaling-stroke.svg new file mode 100644 index 0000000..fe6af38 --- /dev/null +++ b/tests/arthur/data/1.2/non-scaling-stroke.svg @@ -0,0 +1,15 @@ +<?xml version="1.0"?> +<svg width="6cm" height="4cm" viewBox="0 0 600 400" version="1.2" baseProfile="tiny" + xmlns="http://www.w3.org/2000/svg" viewport-fill="rgb(255,150,200)"> + <desc>Example non-scaling stroke</desc> + <rect x="1" y="1" width="598" height="398" fill="none" stroke="black" /> + + <g transform="scale(9,1)"> + <line stroke="black" stroke-width="5" x1="10" y1="50" x2="10" y2="350"/> + <line vector-effect="non-scaling-stroke" stroke="black" stroke-width="5" + x1="32" y1="50" x2="32" y2="350"/> + <line vector-effect="none" stroke="black" stroke-width="5" + x1="55" y1="50" x2="55" y2="350"/> + </g> + +</svg> diff --git a/tests/arthur/data/1.2/noonoo.svg b/tests/arthur/data/1.2/noonoo.svg new file mode 100644 index 0000000..9e601bd --- /dev/null +++ b/tests/arthur/data/1.2/noonoo.svg @@ -0,0 +1,13 @@ +<svg xmlns="http://www.w3.org/2000/svg" version="1.2" baseProfile="tiny" + xmlns:xlink="http://www.w3.org/1999/xlink" + width="420" height="340" viewBox="0 0 420 340"> + <desc>SVG 1.2 video example</desc> + <g> + <circle cx="0" cy="0" r="170" fill="#da4" fill-opacity="0.3"/> + <video xlink:href="noonoo.avi" audio-level=".8" type="video/x-msvideo" + width="320" height="240" x="50" y="50" repeatCount="indefinite"/> + <circle cx="420" cy="340" r="170" fill="#927" fill-opacity="0.3"/> + <rect x="1" y="1" width="418" height="338" fill="none" + stroke="#777" stroke-width="1"/> + </g> +</svg> diff --git a/tests/arthur/data/1.2/referencedRect.svg b/tests/arthur/data/1.2/referencedRect.svg new file mode 100644 index 0000000..67473aa --- /dev/null +++ b/tests/arthur/data/1.2/referencedRect.svg @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" + version="1.2" baseProfile="tiny" + id="animationRef" width="150" height="50" viewBox="0 0 150 50" fill="inherit"> + + <rect id="aMovingRect" width="50" height="50" rx="5" ry="5" fill="inherit" stroke-width="3" stroke="black"> + <animateTransform attributeName="transform" type="translate" values="0,0;0,100" begin="0" dur="2" fill="freeze"/> + </rect> +</svg> diff --git a/tests/arthur/data/1.2/referencedRect2.svg b/tests/arthur/data/1.2/referencedRect2.svg new file mode 100644 index 0000000..383703f --- /dev/null +++ b/tests/arthur/data/1.2/referencedRect2.svg @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" + version="1.2" baseProfile="tiny" + id="animationRef" width="150" height="50" viewBox="0 0 150 50" fill="inherit"> + + <rect id="aMovingRect" width="50" height="50" rx="5" ry="5" fill="rgb(255,28,141)" stroke-width="3" stroke="black"> + <animateTransform attributeName="transform" type="translate" values="0,0;0,100" begin="0" dur="2" fill="freeze"/> + </rect> +</svg> diff --git a/tests/arthur/data/1.2/solidcolor.svg b/tests/arthur/data/1.2/solidcolor.svg new file mode 100644 index 0000000..0fc59bb --- /dev/null +++ b/tests/arthur/data/1.2/solidcolor.svg @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8"?> +<svg version="1.2" baseProfile="tiny" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" +xml:id="svg-root" width="480" height="360" viewBox="0 0 480 360"> + <title><solidColor> Example</title> + + <defs> + <solidColor xml:id="solidMaroon" solid-color="maroon" solid-opacity="0.7"/> + </defs> + + <g> + <circle transform="translate(100, 150)" fill="url(#solidMaroon)" r="30" /> + <rect fill="url(#solidMaroon)" transform="translate(190, 150)" x="-30" y="-30" width="60" height="60" /> + <path fill="url(#solidMaroon)" transform="translate(270, 150)" d="M 0 -30 L 30 30 L -30 30 Z" /> + <text fill="url(#solidMaroon)" transform="translate(340, 150)" y="21" font-weight="bold" font-size="60">A</text> + </g> +</svg> diff --git a/tests/arthur/data/1.2/textArea01.svg b/tests/arthur/data/1.2/textArea01.svg new file mode 100644 index 0000000..79fcd0a --- /dev/null +++ b/tests/arthur/data/1.2/textArea01.svg @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<svg version="1.2" baseProfile="tiny" viewBox="0 0 220 320" + xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> + <title>Basic textflow</title> + <textArea font-size="25" font-family="Georgia" x="10" y="10" width="200" + height="300">Tomorrow, and tomorrow, and + tomorrow; creeps in this petty pace from day to day, until the last syll­able of recorded + time. And all our yesterdays have lighted fools the way to dusty death.</textArea> + <rect x="5" y="5" width="210" height="310" stroke-width="3" stroke="#777"/> +</svg> diff --git a/tests/arthur/data/1.2/timed-lyrics.svg b/tests/arthur/data/1.2/timed-lyrics.svg new file mode 100644 index 0000000..715cd03 --- /dev/null +++ b/tests/arthur/data/1.2/timed-lyrics.svg @@ -0,0 +1,22 @@ +<?xml version="1.0"?>
+
+<svg viewBox="0 0 400 100" height="100%" width="100%"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:xlink="http://www.w3.org/1999/xlink"
+ version="1.2" baseProfile="tiny">
+
+ <desc>This document contains the textual lyrics to synchronize with some video content in the referencing document</desc>
+
+ <g fill="blue" font-family="Arial" font-size="10" transform="translate(20, 20)">
+ <text id="Text0" display="none">This is some text</text>
+ <set xlink:href="#Text0" attributeName="display" to="inline" begin="0" end="1"/>
+ <text id="Text10" display="none">simulating some lyrics</text>
+ <set xlink:href="#Text10" attributeName="display" to="inline" begin="1.1" end="2"/>
+ <text id="Text20" display="none">displayed synchronously</text>
+ <set xlink:href="#Text20" attributeName="display" to="inline" begin="2.1" end="3"/>
+ <text id="Text30" display="none">with some video</text>
+ <set xlink:href="#Text30" attributeName="display" to="inline" begin="3.1" end="4"/>
+ <text id="Text40" display="none">in a different document</text>
+ <set xlink:href="#Text40" attributeName="display" to="inline" begin="4.1" end="5"/>
+ </g>
+</svg>
diff --git a/tests/arthur/data/1.2/use.svg b/tests/arthur/data/1.2/use.svg new file mode 100644 index 0000000..ae0bce6 --- /dev/null +++ b/tests/arthur/data/1.2/use.svg @@ -0,0 +1,22 @@ +<?xml version="1.0" encoding="UTF-8"?> +<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" + version="1.2" baseProfile="tiny" width="100%" height="100%" viewBox="0 0 580 400"> + <defs> + <g fill="green"> + <rect id="aMovingRect" width="50" height="50" rx="5" ry="5" fill="inherit" stroke-width="3" stroke="black"> + <animateTransform attributeName="transform" type="translate" values="0,0;0,100" begin="0" dur="2" fill="freeze"/> + </rect> + </g> + </defs> + + <g fill="rgb(157,0,79)"> + <use x="20" xlink:href="#aMovingRect"/> + + <use x="100" fill="rgb(255,28,141)" xlink:href="#aMovingRect"/> + + <use x="180" xlink:href="referencedRect.svg#aMovingRect"/> + + <use x="260" fill="rgb(255,28,141)" xlink:href="referencedRect.svg#aMovingRect"/> + </g> + +</svg>
\ No newline at end of file |