[LON-CAPA-cvs] cvs: modules /TexConvert/algebra AlgParser.pm

albertel lon-capa-cvs@mail.lon-capa.org
Thu, 24 Feb 2005 08:25:21 -0000


albertel		Thu Feb 24 03:25:21 2005 EDT

  Modified files:              
    /modules/TexConvert/algebra	AlgParser.pm 
  Log:
  - use character class instead of typing alot
  
  
Index: modules/TexConvert/algebra/AlgParser.pm
diff -u modules/TexConvert/algebra/AlgParser.pm:1.3 modules/TexConvert/algebra/AlgParser.pm:1.4
--- modules/TexConvert/algebra/AlgParser.pm:1.3	Thu Feb 24 03:24:40 2005
+++ modules/TexConvert/algebra/AlgParser.pm	Thu Feb 24 03:25:21 2005
@@ -46,7 +46,7 @@
 my $greek='alpha|bita|gamma|zita|thita|iota|kappa|lambda|mu|nu|xi|rho|sigma|tau|phi|chi|psi|omega|zepslon|zdelta|xeta|zupslon';
 my $delete='zeroplace';
 my $escape='infty';
-my $specialvalue = '(?:e|pi|da|db|dc|de|df|dg|dh|di|dj|dk|dl|dm|dn|do|dp|dq|dr|ds|dt|du|dv|dw|dx|dy|dz|'.$escape.'|'.$greek.'|'.$delete.')';
+my $specialvalue = '(?:e|pi|d[a-z]|'.$escape.'|'.$greek.'|'.$delete.')';
 my $numberplain = '(?:\d+(?:\.\d*)?|\.\d+)';
 my $numberE = '(?:' . $numberplain . 'E[-+]?\d+)';
 my $number = '(?:' . $numberE . '|' . $numberplain . ')';