Return to londefdef.pm CVS log | Up to [LON-CAPA] / loncom / xml |
version 1.106.2.1, 2003/03/14 21:23:20 | version 1.107, 2003/01/16 02:55:05 |
---|---|
Line 52 use Image::Magick; | Line 52 use Image::Magick; |
BEGIN { | BEGIN { |
&Apache::lonxml::register('Apache::londefdef',('a','abbr','acronym','address','allow','applet','area','b','base','basefont','bgo','bgsound','big','blink','blockquote','blankspace','body','br','button','caption','center','cite','code','col','colgroup','dd','del','dfn','dir','div','dl','dt','em','embed','externallink','fieldset','font','form','frame','frameset','h1','h2','h3','h4','h5','h6','head','hr','html','i','iframe','img','input','ins','insert','isindex','kbd','keygen','label','layer','legend','li','link','m','map','marquee','menu','meta','multicol','nobr','noembed','noframes','nolayer','noscript','object','ol','optgroup','option','output','p','param','pre','q','s','samp','select','server','small','spacer','span','strike','strong','sub','sup','table','tbody','td','textarea','tfoot','th','thead','title','tr','tt','tthoption','u','ul','var','wbr')); | &Apache::lonxml::register('Apache::londefdef',('a','abbr','acronym','address','allow','applet','area','b','base','basefont','bgo','bgsound','big','blink','blockquote','blankspace','body','br','button','caption','center','cite','code','col','colgroup','dd','del','dfn','dir','div','dl','dt','em','embed','externallink','fieldset','font','form','frame','frameset','h1','h2','h3','h4','h5','h6','head','hr','html','i','iframe','img','input','ins','insert','isindex','kbd','keygen','label','layer','legend','li','link','m','map','marquee','menu','meta','multicol','nobr','noembed','noframes','nolayer','noscript','object','ol','optgroup','option','output','p','param','pre','q','s','samp','select','server','small','spacer','span','strike','strong','sub','sup','table','tbody','td','textarea','tfoot','th','thead','title','tr','tt','u','ul','var','wbr')); |
} | } |
Line 108 sub end_m { | Line 108 sub end_m { |
} | } |
return $currentstring; | return $currentstring; |
} | } |
sub start_tthoption { | |
my ($target,$token,$tagstack,$parstack,$parser,$safeeval) = @_; | |
my $result; | |
if ($target eq 'web') { | |
my $inside = &Apache::lonxml::get_all_text("/tthoption",$parser); | |
$inside=~s/^\s*//; | |
if ($ENV{'browser.mathml'}) { | |
&tth::ttmoptions($inside); | |
} else { | |
&tth::tthoptions($inside); | |
} | |
} | |
return $result; | |
} | |
sub end_tthoption { | |
my ($target,$token) = @_; | |
my $result; | |
return $result; | |
} | |
#-- <html> tag | #-- <html> tag |
sub start_html { | sub start_html { |
my ($target,$token) = @_; | my ($target,$token) = @_; |
Line 1634 sub start_table { | Line 1612 sub start_table { |
if (-e $newsrc) { | if (-e $newsrc) { |
#eps counterpart for image exist | #eps counterpart for image exist |
if ($path) { | if ($path) { |
$currentstring .= '\vskip 1 mm \noindent\graphicspath{{'.$path.'}}\fbox{\includegraphics[width='.$width_param.' mm]{'.$file.'}} '; | $currentstring .= '\vskip 1 mm \noindent\graphicspath{{'.$path.'}}\includegraphics[width='.$width_param.' mm]{'.$file.'} '; |
} | } |
} else { | } else { |
#there is no eps counterpart for image - check for ps one | #there is no eps counterpart for image - check for ps one |
Line 1643 sub start_table { | Line 1621 sub start_table { |
#ps counterpart for image exist | #ps counterpart for image exist |
$file =~ s/\.eps$/\.ps/; | $file =~ s/\.eps$/\.ps/; |
if ($path) { | if ($path) { |
$currentstring .= '\vskip 1 mm \noindent\graphicspath{{'.$path.'}}\fbox{\includegraphics[width='.$width_param.' mm]{'.$file.'}} '; | $currentstring .= '\vskip 1 mm \noindent\graphicspath{{'.$path.'}}\includegraphics[width='.$width_param.' mm]{'.$file.'} '; |
} | } |
} else { | } else { |
#there aren't eps or ps - so create eps | #there aren't eps or ps - so create eps |
Line 1651 sub start_table { | Line 1629 sub start_table { |
my $filename = "/home/httpd/prtspool/$ENV{'user.name'}_$ENV{'user.domain'}_printout.dat"; | my $filename = "/home/httpd/prtspool/$ENV{'user.name'}_$ENV{'user.domain'}_printout.dat"; |
$temp_file = Apache::File->new('>>'.$filename); | $temp_file = Apache::File->new('>>'.$filename); |
print $temp_file "$src\n"; | print $temp_file "$src\n"; |
$currentstring .= '\vskip 1 mm \graphicspath{{/home/httpd/prtspool/}}\fbox{\includegraphics[width='.$width_param.' mm]{'.$file.'}} '; | $currentstring .= '\vskip 1 mm \graphicspath{{/home/httpd/prtspool/}}\includegraphics[width='.$width_param.' mm]{'.$file.'} '; |
} | } |
} | } |
} else { | } else { |