X-Git-Url: https://hackdaworld.org/gitweb/?p=lectures%2Fdfb-slides.git;a=blobdiff_plain;f=parse.pl;h=fb51509a918879a28d60136eeb0ff4083c44c073;hp=0dbf9a076a416c20e144bcd4a952b5f5680309a5;hb=1725e9877e275c3da73250ac5d373eaf532c6027;hpb=56d4b0f73d20f1104a304573aac565db10446262 diff --git a/parse.pl b/parse.pl index 0dbf9a0..fb51509 100755 --- a/parse.pl +++ b/parse.pl @@ -16,7 +16,7 @@ chomp @content; "slide right"); print "\n"; -print "\n"; @@ -26,10 +26,23 @@ print "\n"; +print "
Inhalt
\n\n"; +foreach(@topics) { + if(/^\d/) { + print "\n"; + $add="fgcolor=\"#ff00cc\""; + } + else { + $add=""; + } + print "$_\n"; +} +print "\n\n"; + $topic=0; push(@content," 23"); @@ -50,9 +63,22 @@ foreach(@content) { # unterpunkt if(/^ \d/) { if(@slide) { - print "\n"; - pop(@slide); - 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 "\n"; + print STDERR "$topics[$topic] $action\n"; print "
$topics[$topic]
\n\n"; foreach(@slide) { if(/^ \+ /) {