jorr
[lectures/dfb-slides.git] / parse.pl
index fb51509..0f07155 100755 (executable)
--- a/parse.pl
+++ b/parse.pl
@@ -4,6 +4,7 @@
 chomp @content;
 
 @slide=();
+@topics=();
 
 @actions=( "",
                            "slide top",
@@ -21,7 +22,11 @@ print "\n<slides bgcolor=\"#222266\" fgcolor=\"#9999ff\"
         bullet=\"../img/bullet.png\"
         screen_width=\"1024\" screen_height=\"768\">\n";
 
-@topics=();
+open(IN,"../head2xml header|") or die "no head2xml / header!!\n";
+while(<IN>) {
+       print $_;
+}
+close(IN);
 
 foreach(@content) {
        if((/^\d/) or (/^ \d/)) {
@@ -49,6 +54,7 @@ push(@content," 23");
 
 foreach(@content) {
        s/\#.*//;
+       if(not /^\s+$/) {
        s/&/&amp;/g;
        s/</&lt;/;
        s/>/&gt;/;
@@ -112,5 +118,6 @@ foreach(@content) {
                push(@slide,$_);
        }
 }
+}
 
 print "</slides>\n";
\ No newline at end of file