Diff for /loncom/xml/londefdef.pm between versions 1.14 and 1.15

version 1.14, 2001/01/04 19:15:20 version 1.15, 2001/01/05 19:20:01
Line 10  use strict; Line 10  use strict;
 use Apache::lonxml;  use Apache::lonxml;
   
 sub BEGIN {  sub BEGIN {
     &Apache::lonxml::register('Apache::londefdef',('m','html','head','map','applet','select','option','input','textarea','form','meta','title','body','center','b','strong','table','dt','h1','h2','h3','h4','h5','h6','cite','i','address','dd','dl','dir','ol','ul','menu','dfn','kbd','tt','code','em','q','p','br','big','small','basefont','font','s','sub','strike','sup','hr','a','li','u','output','param','applet','img','embed'));  
       &Apache::lonxml::register('Apache::londefdef',('m','html','head','map','applet','select','option','input','textarea','form','meta','title','body','center','b','strong','table','dt','h1','h2','h3','h4','h5','h6','cite','i','address','dd','dl','dir','ol','ul','menu','dfn','kbd','tt','code','em','q','p','br','big','small','basefont','font','s','sub','strike','sup','hr','a','li','u','output','param','applet','img','embed','tr','td'));
   
 }  }
   
 #===================================================================== TAG SUBROUTINES  #===================================================================== TAG SUBROUTINES
Line 631  sub BEGIN { Line 633  sub BEGIN {
             if ($target eq 'web') {              if ($target eq 'web') {
        $currentstring .= $token->[4];         $currentstring .= $token->[4];
     } elsif ($target eq 'tex') {      } elsif ($target eq 'tex') {
  $currentstring .= "{ \\emph ";   $currentstring .= "\\emph{";
     }       } 
            return $currentstring;             return $currentstring;
  }   }
Line 905  sub BEGIN { Line 907  sub BEGIN {
                 my  $tempor_var = $stackref->[$#$stackref];                  my  $tempor_var = $stackref->[$#$stackref];
  if (index($tempor_var,'name') != -1 ) {   if (index($tempor_var,'name') != -1 ) {
     $tempor_var =~ s/name=([^,]*),/$1/g;      $tempor_var =~ s/name=([^,]*),/$1/g;
         $currentstring .= " \\label{$tempor_var}";  #        $currentstring .= " \\label{$tempor_var}";
         } elsif (index($tempor_var,'href') != -1 ) {          } elsif (index($tempor_var,'href') != -1 ) {
     $tempor_var =~ s/href=([^,]*),/$1/g;      $tempor_var =~ s/href=([^,]*),/$1/g;
         $currentstring .= " \\ref{$tempor_var}";          $currentstring .= " \\ref{$tempor_var}";
Line 920  sub BEGIN { Line 922  sub BEGIN {
             if ($target eq 'web') {              if ($target eq 'web') {
               $currentstring = $token->[4];                     $currentstring = $token->[4];     
     } elsif ($target eq 'tex') {      } elsif ($target eq 'tex') {
                 my  $tempor_var = $stackref->[$#$stackref-1];                  my  $tempor_var = $stackref->[$#$stackref];
                 if (index($tempor_var,'circle') != -1 ) {                  if (index($tempor_var,'circle') != -1 ) {
           $currentstring .= " \\item[o] ";            $currentstring .= " \\item[o] ";
         } elsif (index($tempor_var,'square') != -1 ) {          } elsif (index($tempor_var,'square') != -1 ) {
                $currentstring .= " \\item[$\Box$] ";                 $currentstring .= " \\item[$\Box$] ";
         } else {          } elsif ($tempor_var ne '') { 
          $_ = $tempor_var;
                          m/my\s*([^=]*)=/;
          $currentstring .= " \\item[$1] ";
    } else {
     $currentstring .= " \\item ";      $currentstring .= " \\item ";
         }            }  
     }       } 
Line 1110  sub BEGIN { Line 1116  sub BEGIN {
             if ($target eq 'web') {              if ($target eq 'web') {
               $currentstring = $token->[4];                     $currentstring = $token->[4];     
     } elsif ($target eq 'tex') {      } elsif ($target eq 'tex') {
               $currentstring = " \\begin{tabular} ";                  $currentstring = "";  
     }       } 
    return $currentstring;     return $currentstring;
  }   }
Line 1120  sub BEGIN { Line 1126  sub BEGIN {
             if ($target eq 'web') {              if ($target eq 'web') {
               $currentstring = $token->[2];                     $currentstring = $token->[2];     
     } elsif ($target eq 'tex') {      } elsif ($target eq 'tex') {
               $currentstring = " \\end{tabular}";                  $currentstring = "";  
       } 
      return $currentstring;
    }
   #------------------------------------------------------------------------- <tr> tag
           sub start_tr {
       my ($target,$token) = @_;
               my $currentstring = '';
               if ($target eq 'web') {
                 $currentstring = $token->[4];     
       } elsif ($target eq 'tex') {
         $currentstring = '';
       } 
      return $currentstring;
    }
           sub end_tr {
       my ($target,$token) = @_;
               my $currentstring = '';
               if ($target eq 'web') {
                 $currentstring = $token->[2];     
       } elsif ($target eq 'tex') {
                 $currentstring = "";  
       } 
      return $currentstring;
    }
   #------------------------------------------------------------------------- <td> tag
           sub start_td {
       my ($target,$token) = @_;
               my $currentstring = '';
               if ($target eq 'web') {
                 $currentstring = $token->[4];     
       } elsif ($target eq 'tex') {
         $currentstring = '';
       } 
      return $currentstring;
    }
           sub end_td {
       my ($target,$token) = @_;
               my $currentstring = '';
               if ($target eq 'web') {
                 $currentstring = $token->[2];     
       } elsif ($target eq 'tex') {
                 $currentstring = "";  
     }       } 
    return $currentstring;     return $currentstring;
  }   }
   
 # -------------------------------------------------------------------------- <img> tag  # -------------------------------------------------------------------------- <img> tag
   
         sub start_img {          sub start_img {

Removed from v.1.14  
changed lines
  Added in v.1.15


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>