X-Git-Url: https://hackdaworld.org/gitweb/?p=lectures%2Fdfb-slides.git;a=blobdiff_plain;f=parse.pl;h=ba9709040786c0e1f35ffd3654117e490fc7ac09;hp=fb51509a918879a28d60136eeb0ff4083c44c073;hb=HEAD;hpb=1725e9877e275c3da73250ac5d373eaf532c6027 diff --git a/parse.pl b/parse.pl index fb51509..ba97090 100755 --- a/parse.pl +++ b/parse.pl @@ -4,6 +4,7 @@ chomp @content; @slide=(); +@topics=(); @actions=( "", "slide top", @@ -16,12 +17,16 @@ chomp @content; "slide right"); print "\n"; -print "\n\n"; -@topics=(); +open(IN,"../head2xml header|") or die "no head2xml / header!!\n"; +while() { + print $_; +} +close(IN); foreach(@content) { if((/^\d/) or (/^ \d/)) { @@ -30,11 +35,11 @@ foreach(@content) { } print "\n\n"; -print "
Inhalt
\n\n"; +print "
Inhalt
\n\n"; foreach(@topics) { if(/^\d/) { print "\n"; - $add="fgcolor=\"#ff00cc\""; + $add="fgcolor=\"#FF0000\""; } else { $add=""; @@ -49,6 +54,7 @@ push(@content," 23"); foreach(@content) { s/\#.*//; + if(not /^\s+$/) { s/&/&/g; s//>/; @@ -79,11 +85,11 @@ foreach(@content) { } print "\n"; print STDERR "$topics[$topic] $action\n"; - print "
$topics[$topic]
\n\n"; + print "
$topics[$topic]
\n\n"; foreach(@slide) { if(/^ \+ /) { s/\+//; - print "\n$_\n"; + print "\n$_\n"; } elsif(/ \+ /) { s/\+//; @@ -112,5 +118,6 @@ foreach(@content) { push(@slide,$_); } } +} print "
\n"; \ No newline at end of file