[LON-CAPA-cvs] cvs: loncom /interface lonpreferences.pm /xml lontexconvert.pm

www www@source.lon-capa.org
Wed, 12 Aug 2009 20:43:25 -0000


www		Wed Aug 12 20:43:25 2009 EDT

  Modified files:              
    /loncom/interface	lonpreferences.pm 
    /loncom/xml	lontexconvert.pm 
  Log:
  Raw mode for formula display
  
  
Index: loncom/interface/lonpreferences.pm
diff -u loncom/interface/lonpreferences.pm:1.167 loncom/interface/lonpreferences.pm:1.168
--- loncom/interface/lonpreferences.pm:1.167	Thu Jul  9 19:28:36 2009
+++ loncom/interface/lonpreferences.pm	Wed Aug 12 20:43:18 2009
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Preferences
 #
-# $Id: lonpreferences.pm,v 1.167 2009/07/09 19:28:36 droeschl Exp $
+# $Id: lonpreferences.pm,v 1.168 2009/08/12 20:43:18 www Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -217,7 +217,8 @@
 		     'tth' => 'tth (TeX to HTML)',
 		     #'ttm' => 'TeX to MathML',
 		     'jsMath' => 'jsMath',
-		     'mimetex' => 'mimetex (Convert to Images)'
+		     'mimetex' => 'mimetex (Convert to Images)',
+                     'raw' => 'Raw (Screen Reader)'
                      );
     my $selectionbox=&Apache::loncommon::select_form($texengine,'texengine',
 						     %mathchoices);
Index: loncom/xml/lontexconvert.pm
diff -u loncom/xml/lontexconvert.pm:1.97 loncom/xml/lontexconvert.pm:1.98
--- loncom/xml/lontexconvert.pm:1.97	Wed Aug 12 20:31:08 2009
+++ loncom/xml/lontexconvert.pm	Wed Aug 12 20:43:25 2009
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # TeX Conversion Module
 #
-# $Id: lontexconvert.pm,v 1.97 2009/08/12 20:31:08 www Exp $
+# $Id: lontexconvert.pm,v 1.98 2009/08/12 20:43:25 www Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -316,6 +316,8 @@
 	return &jsMath_converted($string);
     } elsif ($mode =~ /mimetex/i) {
 	return &mimetex_converted($string);
+    } elsif ($mode =~ /raw/i) {
+        return $$string;
     }
     return &tth_converted($string);
 }