[LON-CAPA-cvs] cvs: loncom /xml lontexconvert.pm
hauer
lon-capa-cvs-allow@mail.lon-capa.org
Tue, 18 Nov 2008 10:02:56 -0000
hauer Tue Nov 18 10:02:56 2008 EDT
Modified files:
/loncom/xml lontexconvert.pm
Log:
Added ALT-Attributes containing LaTeX-Sourcecode in mimetex-rendering, so that blind people can access this information.
Index: loncom/xml/lontexconvert.pm
diff -u loncom/xml/lontexconvert.pm:1.89 loncom/xml/lontexconvert.pm:1.90
--- loncom/xml/lontexconvert.pm:1.89 Wed Sep 10 19:45:23 2008
+++ loncom/xml/lontexconvert.pm Tue Nov 18 10:02:56 2008
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# TeX Conversion Module
#
-# $Id: lontexconvert.pm,v 1.89 2008/09/10 19:45:23 droeschl Exp $
+# $Id: lontexconvert.pm,v 1.90 2008/11/18 10:02:56 hauer Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -253,7 +253,7 @@
if ($displaystyle) {
$$texstring='\\displaystyle \\Large '.$$texstring;
}
- my $result='<img src="/cgi-bin/mimetex.cgi?'.&escape($$texstring).'" />';
+ my $result='<img src="/cgi-bin/mimetex.cgi?'.&escape($$texstring).'" alt="$'.$$texstring.'$" />';
if ($displaystyle) {
$result='<center>'.$result.'</center>';
}