[LON-CAPA-cvs] cvs: loncom /xml lontexconvert.pm
foxr
lon-capa-cvs-allow@mail.lon-capa.org
Wed, 06 Feb 2008 10:16:02 -0000
foxr Wed Feb 6 05:16:02 2008 EDT
Modified files:
/loncom/xml lontexconvert.pm
Log:
BZ5593: Post process by replacing \leftrightharpoon with the corresponding
UTF-8 character.. works for recent browsers..though known to have
problems with older MAC-OS 10.3 and Firefox 2,9 works for Safari on older
Mac-OS...MAC-OSX 10.4.11 with Firefox2.0.0.11 does work.
Index: loncom/xml/lontexconvert.pm
diff -u loncom/xml/lontexconvert.pm:1.86 loncom/xml/lontexconvert.pm:1.87
--- loncom/xml/lontexconvert.pm:1.86 Tue Jan 29 06:18:06 2008
+++ loncom/xml/lontexconvert.pm Wed Feb 6 05:16:00 2008
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# TeX Conversion Module
#
-# $Id: lontexconvert.pm,v 1.86 2008/01/29 11:18:06 foxr Exp $
+# $Id: lontexconvert.pm,v 1.87 2008/02/06 10:16:00 foxr Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -113,7 +113,8 @@
# reasonably well to ⇔. If we get many more of these,
# we're going to need to have a translation sub.
#
- $xmlstring=~s/\\rightleftharpoons/\&\#8660;/g;
+ my $lrharpoon = pack("U", 0x21cc);
+ $xmlstring=~s/\\rightleftharpoons/$lrharpoon/g;
&Apache::lonxml::end_alarm();
return ($xmlstring,$errorstring);