[LON-CAPA-cvs] cvs: loncom /html/adm/lonIcons neutral.gif /xml lontexconvert.pm

www lon-capa-cvs@mail.lon-capa.org
Sat, 18 Oct 2003 15:53:00 -0000


www		Sat Oct 18 11:53:00 2003 EDT

  Added files:                 
    /loncom/html/adm/lonIcons	neutral.gif 

  Modified files:              
    /loncom/xml	lontexconvert.pm 
  Log:
  Bug #2295: remove denoser compatibility to make sure smileys mostly only
  show when intended to be there.
  
  
Index: loncom/xml/lontexconvert.pm
diff -u loncom/xml/lontexconvert.pm:1.26 loncom/xml/lontexconvert.pm:1.27
--- loncom/xml/lontexconvert.pm:1.26	Tue Oct  7 13:52:29 2003
+++ loncom/xml/lontexconvert.pm	Sat Oct 18 11:53:00 2003
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # TeX Conversion Module
 #
-# $Id: lontexconvert.pm,v 1.26 2003/10/07 17:52:29 www Exp $
+# $Id: lontexconvert.pm,v 1.27 2003/10/18 15:53:00 www Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -138,19 +138,20 @@
 sub smiley {
    my $expression=shift;
    if ($ENV{'browser.imagesuppress'} eq 'on') { return $expression; }
-   my %smileys=('\:\-*\)' => 'smiley',
-                '8\-*\)'  => 'coolsmile',
-                '8\-*I'   => 'coolindiff',
-                ':\-*\('  => 'frowny',
-                '\:\-*(o|O|\(\))' => 'shocked',
-                '\;\-*\)' => 'wink',
-                '\:\-*P'  => 'baeh',
+   my %smileys=('\:\-\)' => 'smiley',
+                '8\-\)'  => 'coolsmile',
+                '8\-(I|\|)'   => 'coolindiff',
+                ':\-(I|\|)'   => 'neutral',
+                '\:\-(o|O|\(\))' => 'shocked',
+                ':\-\('  => 'frowny',
+                '\;\-\)' => 'wink',
+                '\:\-P'  => 'baeh',
                 '\:\-(\\\|\\/)' => 'hrrm',
-                '\:\-*D'  => 'bigsmile',
-                '\:\-*C'  => 'angry',
-                '\:(\'|\`)\-*\(' => 'cry',
-                '\:\-*(X|\#)' => 'lipsrsealed',
-                '\:\-*S' => 'huh');
+                '\:\-D'  => 'bigsmile',
+                '\:\-C'  => 'angry',
+                '\:(\'|\`)\-\(' => 'cry',
+                '\:\-(X|\#)' => 'lipsrsealed',
+                '\:\-S' => 'huh');
    my $iconpath=$Apache::lonnet::perlvar{'lonIconsURL'};
    foreach (keys %smileys) {
       $expression=~s/$_/\<img src="$iconpath\/$smileys{$_}.gif" \/\>/gs;