]> hackdaworld.org Git - lectures/dfb-slides.git/commitdiff
added random slide effects
authorhunz <hunz>
Sat, 22 Mar 2003 09:00:36 +0000 (09:00 +0000)
committerhunz <hunz>
Sat, 22 Mar 2003 09:00:36 +0000 (09:00 +0000)
parse.pl
wlan1/wlan1.xml

index a06ff05d04483f2375cf1699b8dd0a2c8f818f15..42f453f7f1ba91d6d5a595d75a4ec11dafe70dec 100755 (executable)
--- a/parse.pl
+++ b/parse.pl
@@ -50,8 +50,22 @@ foreach(@content) {
        # unterpunkt
        if(/^ \d/) {
                if(@slide) {
-                       print "<slide>\n";
-                       print STDERR "$topics[$topic]\n";
+                       $action=$actions[int(rand($#actions))];
+                       if(length($action)>0) {
+                               if(int(rand(2))==1) {
+                                       $action.=", blend";
+                               }
+                       }
+                       else {
+                               if(int(rand(2))==1) {
+                                       $action.="blend";
+                               }
+                       }
+                       if(length($action)>0) {
+                               $action=" effect=\"$action\"";
+                       }
+                       print "<slide$action>\n";
+                       print STDERR "$topics[$topic] $action\n";
                        print "<header size=\"20\" fgcolor=\"#22FF22\">$topics[$topic]</header>\n<text></text>\n";
                        foreach(@slide) {
                                if(/^  \+ /) {
index 38713edb0ed929f0a382d3dbf5b169e5ec2bd88a..928e07bab003affeb3a15392c43c5df6ee84a22a 100644 (file)
@@ -3,7 +3,7 @@
         face="../ttf/decker.ttf" size="15"
         bullet="../img/bullet.png"
         screen_width="1024" screen_height="768">
-<slide>
+<slide effect="slide bottom left, blend">
 <header size="20" fgcolor="#22FF22"> 1.1 Was ist Wireless LAN?</header>
 <text></text>
 <text></text>
@@ -16,7 +16,7 @@
 <listitem fgcolor="#ff00cc" size="20">   Reichweite 50 - 300m</listitem>
 </slide>
 
-<slide>
+<slide effect="slide top">
 <header size="20" fgcolor="#22FF22"> 1.2 WaveLAN Hardware</header>
 <text></text>
 <text></text>
@@ -36,7 +36,7 @@
 <text>    </text>
 </slide>
 
-<slide>
+<slide effect="slide top right">
 <header size="20" fgcolor="#22FF22"> 2.1 Begriffserklaerungen</header>
 <text></text>
 <text></text>
@@ -49,7 +49,7 @@
 <listitem size="20">    4 Keys moeglich</listitem>
 </slide>
 
-<slide>
+<slide effect="slide bottom">
 <header size="20" fgcolor="#22FF22"> 2.2 Managed Mode</header>
 <text></text>
 <text></text>
@@ -68,7 +68,7 @@
 <text>    Bsp.: {Client 1} ~~~ (AP 1)---[Ethernet]---(AP 2) ~~~ {Client 2}</text>
 </slide>
 
-<slide>
+<slide effect="slide top right">
 <header size="20" fgcolor="#22FF22"> 2.3 AdHoc Mode</header>
 <text></text>
 <text></text>
@@ -81,7 +81,7 @@
 <text>  </text>
 </slide>
 
-<slide>
+<slide effect="slide top right">
 <header size="20" fgcolor="#22FF22"> 2.4 WDS</header>
 <text></text>
 <text></text>
@@ -93,7 +93,7 @@
 <text>    Bsp.: [Ethernet 1]---(AP 1) ~~~ (AP 2)---[Ethernet 2]</text>
 </slide>
 
-<slide>
+<slide effect="blend">
 <header size="20" fgcolor="#22FF22"> 3.1 Vorraussetzungen</header>
 <text></text>
 <text></text>
 <listitem size="20">    start/stop: /etc/init.d/pcmcia start/stop</listitem>
 </slide>
 
-<slide>
+<slide effect="slide top left, blend">
 <header size="20" fgcolor="#22FF22"> 3.2 Client Setup</header>
 <text></text>
 <text></text>
 <text>    ifconfig eth0 192.168.1.5 up</text>
 </slide>
 
-<slide>
+<slide effect="slide left, blend">
 <header size="20" fgcolor="#22FF22"> 3.3 AP Setup</header>
 <text></text>
 <text></text>