[LON-CAPA-cvs] cvs: loncom(version_0_6) /xml londefdef.pm

albertel lon-capa-cvs@mail.lon-capa.org
Fri, 14 Mar 2003 21:23:20 -0000


albertel		Fri Mar 14 16:23:20 2003 EDT

  Modified files:              (Branch: version_0_6)
    /loncom/xml	londefdef.pm 
  Log:
  - backporting version 1.110 and 1.120 (addition of tthoption)
  
  
Index: loncom/xml/londefdef.pm
diff -u loncom/xml/londefdef.pm:1.106 loncom/xml/londefdef.pm:1.106.2.1
--- loncom/xml/londefdef.pm:1.106	Tue Nov 19 10:13:37 2002
+++ loncom/xml/londefdef.pm	Fri Mar 14 16:23:20 2003
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Tags Default Definition Module 
 #
-# $Id: londefdef.pm,v 1.106 2002/11/19 15:13:37 sakharuk Exp $
+# $Id: londefdef.pm,v 1.106.2.1 2003/03/14 21:23:20 albertel Exp $
 # 
 #
 # Copyright Michigan State University Board of Trustees
@@ -52,7 +52,7 @@
 
 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','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','tthoption','u','ul','var','wbr'));
 
 }
 
@@ -108,6 +108,28 @@
   }
   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    
 sub start_html {
     my ($target,$token) = @_;