[LON-CAPA-cvs] cvs: loncom /interface lonprintout.pm /xml londefdef.pm

foxr lon-capa-cvs-allow@mail.lon-capa.org
Mon, 28 Apr 2008 10:52:33 -0000


foxr		Mon Apr 28 06:52:33 2008 EDT

  Modified files:              
    /loncom/interface	lonprintout.pm 
    /loncom/xml	londefdef.pm 
  Log:
  1. upate to the new scheme of entity translation.
  2. Add the following packages to the header:
  \usepackage[T1]{fontenc}  - Some entites only exist in this font.
  \usepackage{latexsym}     - Some math entities only live in this pkgs.
  
  
Index: loncom/interface/lonprintout.pm
diff -u loncom/interface/lonprintout.pm:1.530 loncom/interface/lonprintout.pm:1.531
--- loncom/interface/lonprintout.pm:1.530	Tue Apr 22 06:24:24 2008
+++ loncom/interface/lonprintout.pm	Mon Apr 28 06:52:03 2008
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Printout
 #
-# $Id: lonprintout.pm,v 1.530 2008/04/22 10:24:24 foxr Exp $
+# $Id: lonprintout.pm,v 1.531 2008/04/28 10:52:03 foxr Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -39,6 +39,8 @@
 use Apache::lonnavmaps;
 use Apache::admannotations;
 use Apache::lonenc;
+use Apache::entities;
+
 use HTTP::Response;
 
 use LONCAPA::map();
@@ -507,7 +509,13 @@
     }
 }
 
+
 sub character_chart {
+    my $result = shift;
+    return  &Apache::entities::replace_entities($result);
+}
+
+sub old_character_chart {
     my $result = shift;	
     $result =~ s/&\#0?0?(7|9);//g;
     $result =~ s/&\#0?(10|13);//g;
@@ -1143,6 +1151,8 @@
 	     '\usepackage{wrapfig}'.
 	     '\usepackage{picins}\usepackage{calc}'."\n".
 	     '\usepackage[utf8]{inputenc}'."\n".
+	     '\usepackage[T1]{fontenc}'."\n".
+	     '\usepackage{latexsym}'."\n".
 	     '\usepackage{amsmath}'.
 	     '\usepackage{amssymb}'.
 	     '\usepackage{amsfonts}'.
Index: loncom/xml/londefdef.pm
diff -u loncom/xml/londefdef.pm:1.384 loncom/xml/londefdef.pm:1.385
--- loncom/xml/londefdef.pm:1.384	Mon Mar 17 06:21:30 2008
+++ loncom/xml/londefdef.pm	Mon Apr 28 06:52:33 2008
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Tags Default Definition Module 
 #
-# $Id: londefdef.pm,v 1.384 2008/03/17 10:21:30 foxr Exp $
+# $Id: londefdef.pm,v 1.385 2008/04/28 10:52:33 foxr Exp $
 # 
 #
 # Copyright Michigan State University Board of Trustees
@@ -201,6 +201,8 @@
 			  '\usepackage{wrapfig}'.
 			  '\usepackage{picins}'.
 			  '\usepackage[utf8]{inputenc}'."\n".
+			  '\usepackage[T1]{fontenc}'."\n".
+			  '\usepackage{latexsym}'."\n".
                           '\usepackage{epsfig}'.
                           '\usepackage{calc}'.
                           '\usepackage{amsmath}'.