[lasem] [SVG] SVG 1.2 sample files.



commit bd900645ca3d3ec76c7409032004f98923f2aec8
Author: Emmanuel Pacaud <emmanuel pacaud lapp in2p3 fr>
Date:   Mon Jun 8 11:24:07 2009 +0200

    [SVG] SVG 1.2 sample files.
---
 test/svg/svg1.2/comp-op-porterduff.png |  Bin 0 -> 68940 bytes
 test/svg/svg1.2/comp-op-porterduff.svg |  298 ++++++++++++++++++++++++++++++++
 test/svg/svg1.2/goflow.png             |  Bin 0 -> 38824 bytes
 test/svg/svg1.2/goflow.svg             |   57 ++++++
 test/svg/svg1.2/simpleflow.png         |  Bin 0 -> 10910 bytes
 test/svg/svg1.2/simpleflow.svg         |   18 ++
 6 files changed, 373 insertions(+), 0 deletions(-)

diff --git a/test/svg/svg1.2/comp-op-porterduff.png b/test/svg/svg1.2/comp-op-porterduff.png
new file mode 100644
index 0000000..2344584
Binary files /dev/null and b/test/svg/svg1.2/comp-op-porterduff.png differ
diff --git a/test/svg/svg1.2/comp-op-porterduff.svg b/test/svg/svg1.2/comp-op-porterduff.svg
new file mode 100644
index 0000000..d165473
--- /dev/null
+++ b/test/svg/svg1.2/comp-op-porterduff.svg
@@ -0,0 +1,298 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<svg version="1.2" baseProfile="full" xmlns="http://www.w3.org/2000/svg"; xmlns:xlink="http://www.w3.org/1999/xlink"; width="100%" height="100%" viewBox="0 0 640 640">
+<!-- added namespace declaration in above svg element, stelt, 2006 -->
+    <defs>
+        <radialGradient id="g1" gradientUnits="objectBoundingBox"
+            cx="0" cy="0" r="1.5">
+            <stop offset="0" stop-color="#ffee00" />
+            <stop offset="1" stop-color="#f80" />
+        </radialGradient>
+        <radialGradient id="g2" gradientUnits="objectBoundingBox"
+            cx="0" cy="0" r="1.5">
+            <stop offset="0" stop-color="#0ef" />
+            <stop offset="1" stop-color="#08f" />
+        </radialGradient>
+
+        <circle id="c" r="30" 
+            fill="url(#g1)" stroke="black" opacity="0.5" />
+        <rect id="d" width="55" height="45" 
+            fill="url(#g2)" stroke="black" opacity="0.5" />
+        <circle id="a" r="30" 
+            fill="url(#g1)" stroke="black" />
+        <rect id="b" width="55" height="45" 
+            fill="url(#g2)" stroke="black" />
+    </defs>
+    
+    <text x="260" y="50" font-family="verdana" font-size="20" fill="black">Opaque</text>
+    
+    <g transform="translate(0 40)">
+
+        <!-- clear -->
+        <g transform="translate(20, 40)">
+            <text x="20" y="0" font-family="verdana" font-size="16" fill="black">
+                clear
+            </text>
+            <g enable-background="new">
+                <use x="30" y="40" xlink:href="#a" />
+                <use x="25" y="35" xlink:href="#b" comp-op="clear" />
+            </g>
+        </g>
+
+        <!-- src -->
+        <g transform="translate(120, 40)">
+            <text x="20" y="0" font-family="verdana" font-size="16" fill="black">
+                src
+            </text>
+            <g enable-background="new">
+                <use x="30" y="40" xlink:href="#a" />
+                <use x="25" y="35" xlink:href="#b" comp-op="src" />
+            </g>
+        </g>
+
+        <!-- dest -->
+        <g transform="translate(220, 40)">
+            <text x="20" y="0" font-family="verdana" font-size="16" fill="black">
+                dst
+            </text>
+            <g enable-background="new">
+                <use x="30" y="40" xlink:href="#a" />
+                <use x="25" y="35" xlink:href="#b" comp-op="dst" />
+            </g>
+        </g>
+
+        <!-- src-over -->
+        <g transform="translate(320, 40)">
+            <text x="20" y="0" font-family="verdana" font-size="16" fill="black">
+                src-over
+            </text>
+            <g enable-background="new">
+                <use x="30" y="40" xlink:href="#a" />
+                <use x="25" y="35" xlink:href="#b" comp-op="src-over" />
+            </g>
+        </g>
+
+        <!-- dst-over -->
+        <g transform="translate(420, 40)">
+            <text x="20" y="0" font-family="verdana" font-size="16" fill="black">
+                dst-over
+            </text>
+            <g enable-background="new">
+                <use x="30" y="40" xlink:href="#a" />
+                <use x="25" y="35" xlink:href="#b" comp-op="dst-over" />
+            </g>
+        </g>
+
+        <!-- src-in -->
+        <g transform="translate(520, 40)">
+            <text x="20" y="0" font-family="verdana" font-size="16" fill="black">
+                src-in
+            </text>
+            <g enable-background="new">
+                <use x="30" y="40" xlink:href="#a" />
+                <use x="25" y="35" xlink:href="#b" comp-op="src-in" />
+            </g>
+        </g>
+
+        <!-- dst-in -->
+        <g transform="translate(20, 160)">
+            <text x="20" y="0" font-family="verdana" font-size="16" fill="black">
+                dst-in
+            </text>
+            <g enable-background="new">
+                <use x="30" y="40" xlink:href="#a" />
+                <use x="25" y="35" xlink:href="#b" comp-op="dst-in" />
+            </g>
+        </g>
+
+        <!-- src-out -->
+        <g transform="translate(120, 160)">
+            <text x="20" y="0" font-family="verdana" font-size="16" fill="black">
+                src-out
+            </text>
+            <g enable-background="new">
+                <use x="30" y="40" xlink:href="#a" />
+                <use x="25" y="35" xlink:href="#b" comp-op="src-out" />
+            </g>
+        </g>
+
+        <!-- dst-out -->
+        <g transform="translate(220, 160)">
+            <text x="20" y="0" font-family="verdana" font-size="16" fill="black">
+                dst-out
+            </text>
+            <g enable-background="new">
+                <use x="30" y="40" xlink:href="#a" />
+                <use x="25" y="35" xlink:href="#b" comp-op="dst-out" />
+            </g>
+        </g>
+
+        <!-- src-atop -->
+        <g transform="translate(320, 160)">
+            <text x="20" y="0" font-family="verdana" font-size="16" fill="black">
+                src-atop
+            </text>
+            <g enable-background="new">
+                <use x="30" y="40" xlink:href="#a" />
+                <use x="25" y="35" xlink:href="#b" comp-op="src-atop" />
+            </g>
+        </g>
+
+        <!-- dst-atop -->
+        <g transform="translate(420, 160)">
+            <text x="20" y="0" font-family="verdana" font-size="16" fill="black">
+                dst-atop
+            </text>
+            <g enable-background="new">
+                <use x="30" y="40" xlink:href="#a" />
+                <use x="25" y="35" xlink:href="#b" comp-op="dst-atop" />
+            </g>
+        </g>
+
+        <!-- xor -->
+        <g transform="translate(520, 160)">
+            <text x="20" y="0" font-family="verdana" font-size="16" fill="black">
+                xor
+            </text>
+            <g enable-background="new">
+                <use x="30" y="40" xlink:href="#a" />
+                <use x="25" y="35" xlink:href="#b" comp-op="xor" />
+            </g>
+        </g>
+    </g>
+
+    <text x="220" y="320" font-family="verdana" font-size="20" fill="black">Partially Transparent</text>
+
+    <g transform="translate(0 80)">
+        <!-- clear -->
+        <g transform="translate(20, 280)">
+            <text x="20" y="0" font-family="verdana" font-size="16" fill="black">
+                clear
+            </text>
+            <g enable-background="new">
+                <use x="30" y="40" xlink:href="#c" />
+                <use x="25" y="35" xlink:href="#d" comp-op="clear" />
+            </g>
+        </g>
+
+        <!-- src -->
+        <g transform="translate(120, 280)">
+            <text x="10" y="0" font-family="verdana" font-size="16" fill="black">
+                src
+            </text>
+            <g enable-background="new">
+                <use x="30" y="40" xlink:href="#c" />
+                <use x="25" y="35" xlink:href="#d" comp-op="src" />
+            </g>
+        </g>
+
+        <!-- dst -->
+        <g transform="translate(220, 280)">
+            <text x="20" y="0" font-family="verdana" font-size="16" fill="black">
+                dst
+            </text>
+            <g enable-background="new">
+                <use x="30" y="40" xlink:href="#c" />
+                <use x="25" y="35" xlink:href="#d" comp-op="dst" />
+            </g>
+        </g>
+
+        <!-- src-over -->
+        <g transform="translate(320, 280)">
+            <text x="10" y="0" font-family="verdana" font-size="16" fill="black">
+                src-over
+            </text>
+            <g enable-background="new">
+                <use x="30" y="40" xlink:href="#c" />
+                <use x="25" y="35" xlink:href="#d" comp-op="src-over" />
+            </g>
+        </g>
+
+        <!-- darken -->
+        <g transform="translate(420, 280)">
+            <text x="10" y="0" font-family="verdana" font-size="16" fill="black">
+                dst-over
+            </text>
+            <g enable-background="new">
+                <use x="30" y="40" xlink:href="#c" />
+                <use x="25" y="35" xlink:href="#d" comp-op="dst-over" />
+            </g>
+        </g>
+
+        <!-- src-in -->
+        <g transform="translate(520, 280)">
+            <text x="10" y="0" font-family="verdana" font-size="16" fill="black">
+                src-in
+            </text>
+            <g enable-background="new">
+                <use x="30" y="40" xlink:href="#c" />
+                <use x="25" y="35" xlink:href="#d" comp-op="src-in" />
+            </g>
+        </g>
+
+        <!-- dst-in -->
+        <g transform="translate(20, 400)">
+            <text x="0" y="0" font-family="verdana" font-size="16" fill="black">
+                dst-in
+            </text>
+            <g enable-background="new">
+                <use x="30" y="40" xlink:href="#c" />
+                <use x="25" y="35" xlink:href="#d" comp-op="dst-in" />
+            </g>
+        </g>
+
+        <!-- src-out -->
+        <g transform="translate(120, 400)">
+            <text x="0" y="0" font-family="verdana" font-size="16" fill="black">
+                src-out
+            </text>
+            <g enable-background="new">
+                <use x="30" y="40" xlink:href="#c" />
+                <use x="25" y="35" xlink:href="#d" comp-op="src-out" />
+            </g>
+        </g>
+
+        <!-- dst-out -->
+        <g transform="translate(220, 400)">
+            <text x="0" y="0" font-family="verdana" font-size="16" fill="black">
+                dst-out
+            </text>
+            <g enable-background="new">
+                <use x="30" y="40" xlink:href="#c" />
+                <use x="25" y="35" xlink:href="#d" comp-op="dst-out" />
+            </g>
+        </g>
+
+        <!-- src-atop -->
+        <g transform="translate(320, 400)">
+            <text x="0" y="0" font-family="verdana" font-size="16" fill="black">
+                src-atop
+            </text>
+            <g enable-background="new">
+                <use x="30" y="40" xlink:href="#c" />
+                <use x="25" y="35" xlink:href="#d" comp-op="src-atop" />
+            </g>
+        </g>
+
+        <!-- dst-atop -->
+        <g transform="translate(420, 400)">
+            <text x="0" y="0" font-family="verdana" font-size="16" fill="black">
+                dst-atop
+            </text>
+            <g enable-background="new">
+                <use x="30" y="40" xlink:href="#c" />
+                <use x="25" y="35" xlink:href="#d" comp-op="dst-atop" />
+            </g>
+        </g>
+
+        <!-- xor -->
+        <g transform="translate(520, 400)">
+            <text x="0" y="0" font-family="verdana" font-size="16" fill="black">
+                xor
+            </text>
+            <g enable-background="new">
+                <use x="30" y="40" xlink:href="#c" />
+                <use x="25" y="35" xlink:href="#d" comp-op="xor" />
+            </g>
+        </g>
+    </g>
+</svg>
diff --git a/test/svg/svg1.2/goflow.png b/test/svg/svg1.2/goflow.png
new file mode 100644
index 0000000..4d4814f
Binary files /dev/null and b/test/svg/svg1.2/goflow.png differ
diff --git a/test/svg/svg1.2/goflow.svg b/test/svg/svg1.2/goflow.svg
new file mode 100644
index 0000000..35fa1ff
--- /dev/null
+++ b/test/svg/svg1.2/goflow.svg
@@ -0,0 +1,57 @@
+<?xml version="1.0"?>
+<svg xmlns:svg="http://www.w3.org/2000/svg"; xmlns:xlink="http://www.w3.org/1999/xlink"; width="100%" height="100%" viewBox="0 -200 700 700">
+  <title>Multilingual textflow</title>
+  <desc>Text flow with Japanese text, and styled spans.</desc>
+  <flowRoot>
+    <flowRegion>
+      <use xlink:href="#G"/>
+      <use xlink:href="#O"/>
+      <use xlink:href="#bang"/>
+    </flowRegion>
+    <flowDiv font-size="9">
+      <flowPara>
+           The paragraph contains <flowSpan fill="red">spans of text styled 
+           differently</flowSpan> as well as 
+           forced <flowLine/>line breaks. The text flows from one child of the 're&#xAD;gion' 
+           element to another. This example has three regions, shaped like 
+           the letters 'G', 'O' and '!" respectively.
+        </flowPara>
+      <flowPara fill="#707">The text flow algorithm 
+            wraps on spaces if it can
+           find them, otherwise it will break in the middle
+           of a word. This is needed for Japanese and 
+           Chinese text where there are no spaces between 
+           words like this:
+           <flowSpan xml:lang="ja-JP" font-family="'MS Gothic', hiragino,
+               ï¼­ï¼³ ã?´ã?·ã??ã?¯,'MS Mincho',ï¼­ï¼³ æ??æ??,' Arial Unicode MS'
+               ">ã?ªã??ã??ã?¿ã??ã?ªæ?¥æ?¬èª?ã??話ã??ã?¦ã??ã??ã?ªã??ã?®ã??ï¼?</flowSpan>
+      </flowPara>
+      <flowPara fill="green">
+            If you need to implement Japanese
+          <flowSpan font-style="italic">kinsoku</flowSpan> rules for 
+          line breaking, you will have to insert Unicode zero-width-joiner (zwj) 
+          characters to  forbid certain line breaks  when generating the text.
+        </flowPara>
+      <flowPara fill="blue">Here is a third paragraph. The text is in blue to 
+      show where the second paragraph ends and a third one begins. It will 
+      not win any design awards.</flowPara>
+    </flowDiv>
+  </flowText>
+  <g fill="none" stroke="green" stroke-width="1">
+    <path id="G" d="M133.5,110.4c0-10.6-1.2-17.7-3.5-21.1c-2.3-3.4-6.5-5.7-12.5-6.8v-7h91v7c-6,1.1-10.2,3.4-12.5,6.8
+				c-2.3,3.4-3.5,10.4-3.5,21.1v37.5c0,10.6,1.1,17.6,3.4,20.9s6.5,5.5,12.6,6.7v6.5H166c-9.5,0-20,0.3-31.5,0.8s-18.3,0.8-20.4,0.8
+				c-35.4,0-63.2-8.8-83.6-26.5C10.2,139.4,0,115.3,0,84.8c0-26.4,8.3-47,24.9-61.7C41.5,8.4,64.7,1,94.6,1c9.1,0,19.2,0.9,30.3,2.8
+				c11.1,1.8,17.9,2.8,20.5,2.8c2.5,0,5.3-0.5,8.3-1.5c3-1,6.7-2.7,11-5.1l8.9,58h-6.9c-7.7-11.9-15.9-20.6-24.8-26.2
+				c-8.8-5.6-18.9-8.3-30.1-8.3c-16.8,0-30.1,5.4-39.8,16.1c-9.7,10.8-14.5,25.5-14.5,44.1c0,22.9,5.3,42,16,57.3
+				c10.7,15.3,23.7,23,39,23c7.8,0,13.3-1.7,16.4-5.1c3.1-3.4,4.6-10.9,4.6-22.5V110.4z"/>
+    <path id="O" d="M223.1,93.4c0-26.4,9.9-48.5,29.8-66.2c19.9-17.8,44.5-26.6,73.8-26.6c29.3,0,54,8.9,73.9,26.6
+				c19.9,17.8,29.9,39.8,29.9,66.2c0,26.4-9.9,48.4-29.8,66.1s-44.6,26.5-74,26.5c-29.3,0-54-8.8-73.8-26.5S223.1,119.8,223.1,93.4z
+				 M323.8,23.5c-12,0-21.3,5-28.1,14.9c-6.7,9.9-10.1,23.8-10.1,41.4c0,25.2,4.1,45.3,12.4,60.5s19.2,22.7,32.7,22.7
+				c11.9,0,21.2-4.9,27.9-14.8c6.7-9.9,10-23.7,10-41.5c0-25.1-4.1-45.2-12.4-60.4C348,31.1,337.2,23.5,323.8,23.5z"/>
+    <path id="bang" d="M458.5,127c2.1-11.7,3.6-21.9,4.5-30.6c0.9-8.7,1.3-16.6,1.3-23.7c0-10.1-1-20.7-2.9-31.8s-5-23.2-9.2-36.4h74
+				c-6,13.5-10.4,26.8-13.1,40.1C510.4,58,509,72.1,509,87.1c0,3.4,0.2,8.2,0.5,14.4s0.8,13.3,1.5,21.3c-4.5-0.9-8.4-1.6-11.7-2.1
+				s-6.1-0.7-8.5-0.7c-6.7,0-12.6,0.6-17.6,1.7C468.1,122.8,463.2,124.5,458.5,127z M484.7,130.5c9.6,0,17.4,2.5,23.2,7.6
+				c5.9,5,8.8,11.7,8.8,19.9c0,8.2-2.9,14.8-8.8,19.9c-5.9,5.1-13.6,7.6-23.2,7.6s-17.3-2.5-23.2-7.6c-5.8-5-8.8-11.7-8.8-19.9
+				c0-8.3,2.9-14.9,8.8-19.9C467.3,133,475.1,130.5,484.7,130.5z"/>
+  </g>
+</svg>
diff --git a/test/svg/svg1.2/simpleflow.png b/test/svg/svg1.2/simpleflow.png
new file mode 100644
index 0000000..67c87bd
Binary files /dev/null and b/test/svg/svg1.2/simpleflow.png differ
diff --git a/test/svg/svg1.2/simpleflow.svg b/test/svg/svg1.2/simpleflow.svg
new file mode 100644
index 0000000..bbfad55
--- /dev/null
+++ b/test/svg/svg1.2/simpleflow.svg
@@ -0,0 +1,18 @@
+<?xml version="1.0"?>
+<svg xmlns:svg="http://www.w3.org/2000/svg"; xmlns:xlink="http://www.w3.org/1999/xlink"; 
+  width="100%" height="100%" viewBox="0 0 300 310">
+  <title>Basic textflow</title>
+  <rect x="0" y="0" width="100%" height="100%" fill="yellow"/>
+  <flowRoot font-size="16">
+    <flowRegion>
+      <path d="M100,50L50,300L250,300L300,50z"/>
+    </flowRegion>
+    <flowDiv>
+      <flowPara>Tomorrow, and tomorrow, and tomorrow; creeps in this 
+       petty pace from day to day, until the last syllable of recorded time. 
+       And all our yesterdays have lighted fools the way to dusty death.
+     </flowPara>
+    </flowDiv>
+  </flow>
+  <path d="M90,40L40,270L260,270L210,40z" fill="none" stroke="black" stroke-width="5"/>
+</svg>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]