X-Git-Url: https://hackdaworld.org/gitweb/?a=blobdiff_plain;f=parse.pl;h=df1e306a967cac7a0c88e1ca4096975b48387364;hb=586b7f956420f5bfb962017228a1ece9f1002396;hp=a06ff05d04483f2375cf1699b8dd0a2c8f818f15;hpb=f6ebf37351034e1632eabdd0aded671cc35d4656;p=lectures%2Fdfb-slides.git diff --git a/parse.pl b/parse.pl index a06ff05..df1e306 100755 --- a/parse.pl +++ b/parse.pl @@ -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"; + $topic=0; push(@content," 23"); @@ -50,8 +63,22 @@ foreach(@content) { # unterpunkt if(/^ \d/) { if(@slide) { - print "\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 "\n"; + print STDERR "$topics[$topic] $action\n"; print "
$topics[$topic]
\n\n"; foreach(@slide) { if(/^ \+ /) {