X-Git-Url: https://hackdaworld.org/gitweb/?p=lectures%2Fdfb-slides.git;a=blobdiff_plain;f=parse.pl;h=0f07155672b31a2c7d46113b567e7b0b2a251a43;hp=fb51509a918879a28d60136eeb0ff4083c44c073;hb=b151283c5095fe1362b981ade94e824a6fc6ec66;hpb=1725e9877e275c3da73250ac5d373eaf532c6027 diff --git a/parse.pl b/parse.pl index fb51509..0f07155 100755 --- a/parse.pl +++ b/parse.pl @@ -4,6 +4,7 @@ chomp @content; @slide=(); +@topics=(); @actions=( "", "slide top", @@ -21,7 +22,11 @@ print "\n\n"; -@topics=(); +open(IN,"../head2xml header|") or die "no head2xml / header!!\n"; +while() { + print $_; +} +close(IN); foreach(@content) { if((/^\d/) or (/^ \d/)) { @@ -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