X-Git-Url: https://hackdaworld.org/gitweb/?p=lectures%2Fdfb-slides.git;a=blobdiff_plain;f=parse.pl;h=0f07155672b31a2c7d46113b567e7b0b2a251a43;hp=df1e306a967cac7a0c88e1ca4096975b48387364;hb=b151283c5095fe1362b981ade94e824a6fc6ec66;hpb=586b7f956420f5bfb962017228a1ece9f1002396 diff --git a/parse.pl b/parse.pl index df1e306..0f07155 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"; -@topics=(); +open(IN,"../head2xml header|") or die "no head2xml / header!!\n"; +while() { + print $_; +} +close(IN); foreach(@content) { if((/^\d/) or (/^ \d/)) { @@ -29,7 +34,7 @@ foreach(@content) { } } -print "\n"; +print "\n\n"; print "
Inhalt
\n\n"; foreach(@topics) { if(/^\d/) { @@ -41,7 +46,7 @@ foreach(@topics) { } print "$_\n"; } -print "
\n"; +print "
\n\n"; $topic=0; @@ -49,6 +54,7 @@ push(@content," 23"); foreach(@content) { s/\#.*//; + if(not /^\s+$/) { s/&/&/g; s//>/; @@ -112,5 +118,6 @@ foreach(@content) { push(@slide,$_); } } +} print "
\n"; \ No newline at end of file