version 1.91, 2001/06/12 21:10:22
|
version 1.93, 2001/06/13 20:02:28
|
Line 10
|
Line 10
|
# 5/26 Gerd Kortemeyer |
# 5/26 Gerd Kortemeyer |
# 5/27 H. K. Ng |
# 5/27 H. K. Ng |
# 6/2,6/3,6/8,6/9 Gerd Kortemeyer |
# 6/2,6/3,6/8,6/9 Gerd Kortemeyer |
|
# 6/12,6/13 H. K. Ng |
|
|
package Apache::lonxml; |
package Apache::lonxml; |
use vars |
use vars |
Line 215 sub printalltags {
|
Line 216 sub printalltags {
|
} |
} |
|
|
sub xmlparse { |
sub xmlparse { |
# $Apache::lonxml::debug=1; |
|
my ($target,$content_file_string,$safeinit,%style_for_target) = @_; |
my ($target,$content_file_string,$safeinit,%style_for_target) = @_; |
if ($target eq 'meta') { |
if ($target eq 'meta') { |
$Apache::lonxml::redirection = 0; |
$Apache::lonxml::redirection = 0; |
Line 417 sub callsub {
|
Line 417 sub callsub {
|
{ |
{ |
my $sub1; |
my $sub1; |
no strict 'refs'; |
no strict 'refs'; |
if ($target eq 'edit' && $token->[0] eq 'S') { |
|
$currentstring = &Apache::edit::tag_start($target,$token,$tagstack, |
|
$parstack,$parser, |
|
$safeeval,$style); |
|
} |
|
my $tag=$token->[1]; |
my $tag=$token->[1]; |
my $space=$Apache::lonxml::alltags{$tag}; |
my $space=$Apache::lonxml::alltags{$tag}; |
if (!$space) { |
if (!$space) { |
Line 507 sub init_safespace {
|
Line 502 sub init_safespace {
|
$safehole->wrap(\&Math::Random::random_noncentral_f,$safeeval,'&math_random_noncentral_f'); |
$safehole->wrap(\&Math::Random::random_noncentral_f,$safeeval,'&math_random_noncentral_f'); |
$safehole->wrap(\&Math::Random::random_normal,$safeeval,'&math_random_normal'); |
$safehole->wrap(\&Math::Random::random_normal,$safeeval,'&math_random_normal'); |
$safehole->wrap(\&Math::Random::random_permutation,$safeeval,'&math_random_permutation'); |
$safehole->wrap(\&Math::Random::random_permutation,$safeeval,'&math_random_permutation'); |
# $safehole->wrap(\&Math::Random::random_permuted_index,$safeeval,'&math_random_permuted_index'); |
$safehole->wrap(\&Math::Random::random_permuted_index,$safeeval,'&math_random_permuted_index'); |
$safehole->wrap(\&Math::Random::random_uniform,$safeeval,'&math_random_uniform'); |
$safehole->wrap(\&Math::Random::random_uniform,$safeeval,'&math_random_uniform'); |
$safehole->wrap(\&Math::Random::random_poisson,$safeeval,'&math_random_poisson'); |
$safehole->wrap(\&Math::Random::random_poisson,$safeeval,'&math_random_poisson'); |
$safehole->wrap(\&Math::Random::random_uniform_integer,$safeeval,'&math_random_uniform_integer'); |
$safehole->wrap(\&Math::Random::random_uniform_integer,$safeeval,'&math_random_uniform_integer'); |
Line 855 sub register_insert {
|
Line 850 sub register_insert {
|
my $line = $data[$i]; |
my $line = $data[$i]; |
if ( $line =~ /^\#/ || $line =~ /^\s*\n/) { next; } |
if ( $line =~ /^\#/ || $line =~ /^\s*\n/) { next; } |
if ( $line =~ /TABLE/ ) { last; } |
if ( $line =~ /TABLE/ ) { last; } |
my ($tag,$descrip,$function,$show) = split(/,/, $line); |
my ($tag,$descrip,$color,$function,$show) = split(/,/, $line); |
$insertlist{"$tagnum.tag"} = $tag; |
$insertlist{"$tagnum.tag"} = $tag; |
$insertlist{"$tagnum.description"} = $descrip; |
$insertlist{"$tagnum.description"} = $descrip; |
|
$insertlist{"$tagnum.color"} = $color; |
$insertlist{"$tagnum.function"} = $function; |
$insertlist{"$tagnum.function"} = $function; |
$insertlist{"$tagnum.show"}= $show; |
$insertlist{"$tagnum.show"}= $show; |
|
$insertlist{"$tag.num"}=$tagnum; |
$tagnum++; |
$tagnum++; |
} |
} |
$i++; #skipping TABLE line |
$i++; #skipping TABLE line |