[cairo-commit] svgslides/example example-inverse.svg, 1.1, 1.2 example-title.svg, 1.2, 1.3 example.svg, 1.1, 1.2 example.xml, 1.3, 1.4

Carl Worth commit at pdx.freedesktop.org
Tue Apr 26 11:47:17 PDT 2005


Committed by: cworth

Update of /cvs/cairo/svgslides/example
In directory gabe:/tmp/cvs-serv2141/example

Modified Files:
	example-inverse.svg example-title.svg example.svg example.xml 
Log Message:

        * example/example-inverse.svg:
        * example/example-title.svg:
        * example/example.svg: Add URL and presentation title to theme.

        * example/example.xml: Add URL. Add slide to demonstrate
        alignment.

        * src/svgslides-4suite: Add support for a slide-number
        variable. Add support for left/center/right alignment of list
        items. Add support for spitting out an SVG group tag.


Index: example-inverse.svg
===================================================================
RCS file: /cvs/cairo/svgslides/example/example-inverse.svg,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- example-inverse.svg	18 Apr 2005 06:28:27 -0000	1.1
+++ example-inverse.svg	26 Apr 2005 18:47:14 -0000	1.2
@@ -5,15 +5,21 @@
    xmlns:ss="http://www.svgslides.org/svgslides0.1"
    >
 
-  <rect x="0" y="0" width="1024" height="768" fill="black" />
+  <rect x="0" y="0" width="1024" height="768" fill="black"/>
 
-  <text fill="white" ss:variable="title" x="512" y="80" font-size="80" text-anchor="middle">Slide Title</text>
+  <g fill="white">
+    <text ss:variable="presentation" x="8" y="28" font-size="20">Presentation Title</text>
 
-  <g ss:region="default">
-    <rect x="100" y="120" width="824" height="550" fill="none" stroke="blue"/>
-    <text fill="white" font-size="40" x="100" y="160">Author, Date, etc.</text>
-  </g>
+    <text ss:variable="title" x="512" y="160" font-size="80" text-anchor="middle">Slide Title</text>
 
-  <text ss:variable="footer" x="100" y="700" font-size="20" fill="green">Footer</text>
+    <g ss:region="default">
+      <rect x="100" y="200" width="824" height="530" fill="none" stroke="blue"/>
+      <text font-size="40" x="100" y="240">Default region</text>
+    </g>
+
+    <text ss:variable="URL" x="8" y="760" font-size="20">http://example.com</text>
+
+    <text ss:variable="slide-number" x="1016" y="760" text-anchor="end" font-size="20">XX</text>
+  </g>
 
 </svg>

Index: example-title.svg
===================================================================
RCS file: /cvs/cairo/svgslides/example/example-title.svg,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- example-title.svg	20 Apr 2005 01:58:27 -0000	1.2
+++ example-title.svg	26 Apr 2005 18:47:14 -0000	1.3
@@ -5,11 +5,11 @@
    xmlns:ss="http://www.svgslides.org/svgslides0.1"
    >
 
-  <text ss:variable="presentation" x="512" y="80" font-size="80" text-anchor="middle">Slide Title</text>
+  <text ss:variable="presentation" x="512" y="160" font-size="80" text-anchor="middle">Slide Title</text>
 
   <g ss:region="default" text-anchor="middle">
-    <rect x="512" y="250" width="2" height="400" fill="none" stroke="blue"/>
-    <text fill="black" font-size="40" x="512" y="290">Default region</text>
+    <rect x="512" y="320" width="2" height="400" fill="none" stroke="blue"/>
+    <text fill="black" font-size="40" x="512" y="360">Default region</text>
   </g>
 
 </svg>

Index: example.svg
===================================================================
RCS file: /cvs/cairo/svgslides/example/example.svg,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- example.svg	18 Apr 2005 06:28:27 -0000	1.1
+++ example.svg	26 Apr 2005 18:47:14 -0000	1.2
@@ -5,13 +5,19 @@
    xmlns:ss="http://www.svgslides.org/svgslides0.1"
    >
 
-  <text ss:variable="title" x="512" y="80" font-size="80" text-anchor="middle">Slide Title</text>
+  <g fill="black">
+    <text ss:variable="presentation" x="8" y="28" font-size="20">Presentation Title</text>
 
-  <g ss:region="default">
-    <rect x="100" y="120" width="824" height="550" fill="none" stroke="blue"/>
-    <text fill="black" font-size="40" x="100" y="160">Default region</text>
-  </g>
+    <text ss:variable="title" x="512" y="160" font-size="80" text-anchor="middle">Slide Title</text>
 
-  <text ss:variable="footer" x="100" y="700" font-size="20" fill="green">Footer</text>
+    <g ss:region="default">
+      <rect x="100" y="200" width="824" height="530" fill="none" stroke="blue"/>
+      <text font-size="40" x="100" y="240">Default region</text>
+    </g>
+
+    <text ss:variable="URL" x="8" y="760" font-size="20">http://example.com</text>
+
+    <text ss:variable="slide-number" x="1016" y="760" text-anchor="end" font-size="20">XX</text>
+  </g>
 
 </svg>

Index: example.xml
===================================================================
RCS file: /cvs/cairo/svgslides/example/example.xml,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- example.xml	20 Apr 2005 01:58:27 -0000	1.3
+++ example.xml	26 Apr 2005 18:47:14 -0000	1.4
@@ -3,12 +3,13 @@
 	   xmlns:svg="http://www.w3.org/2000/svg"
 	   >
 
-  <slides theme="example" presentation="Example Presentation">
+  <slides theme="example" presentation="Example Presentation"
+	  URL="http://example.com">
 
     <slide variant="title">
       <ul>
 	<lc>Carl Worth</lc>
-	<lc>2005-04-18</lc>
+	<lc>2005-04-21</lc>
       </ul>
     </slide>
 
@@ -41,5 +42,33 @@
       </ul>
     </slide>
 
+    <slide title="Alignment">
+      <ul>
+	<lc align="left">Left alignment</lc>
+	<lc align="center">Center alignment</lc>
+	<lc align="right">Right alignment</lc>
+      </ul>
+    </slide>
+
+    <slide title="Multiple Regions (broken)"
+	   variant="left-right">
+      <region name="left">
+	<ul>
+	  <lc align="center">Left</lc>
+	  <li>foo</li>
+	  <li>bar</li>
+	  <li>baz</li>
+	</ul>
+      </region>
+      <region name="right">
+	<ul>
+	  <lc align="center">Right</lc>
+	  <li>this</li>
+	  <li>that</li>
+	  <li>the other</li>
+	</ul>
+      </region>
+    </slide>
+
   </slides>
 </svgslides>




More information about the cairo-commit mailing list