|
From: <md...@us...> - 2007-08-23 17:58:51
|
Revision: 3732
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=3732&view=rev
Author: mdboom
Date: 2007-08-23 10:58:49 -0700 (Thu, 23 Aug 2007)
Log Message:
-----------
Fix \sqrt (broken when I made the parser more strict).
Modified Paths:
--------------
trunk/matplotlib/lib/matplotlib/_mathtext_data.py
trunk/matplotlib/lib/matplotlib/mathtext.py
Modified: trunk/matplotlib/lib/matplotlib/_mathtext_data.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/_mathtext_data.py 2007-08-23 06:58:10 UTC (rev 3731)
+++ trunk/matplotlib/lib/matplotlib/_mathtext_data.py 2007-08-23 17:58:49 UTC (rev 3732)
@@ -30,6 +30,7 @@
r'\bigwedge' : ('cmex10', 4),
r'\bigvee' : ('cmex10', 37),
r'\coprod' : ('cmex10', 42),
+ r'\__sqrt__' : ('cmex10', 48),
r'\leftbrace' : ('cmex10', 92),
r'{' : ('cmex10', 92),
r'\{' : ('cmex10', 92),
@@ -316,6 +317,7 @@
r'\Pi' : ('psyr', 213),
r'\prod' : ('psyr', 213),
r'\surd' : ('psyr', 214),
+ r'\__sqrt__' : ('psyr', 214),
r'\cdot' : ('psyr', 215),
r'\urcorner' : ('psyr', 216),
r'\vee' : ('psyr', 217),
@@ -2044,6 +2046,7 @@
'rightzigzagarrow': 8669,
'rightarrow': 8594,
'leftarrow': 8592,
+'__sqrt__': 8730,
'twoheaddownarrow': 8609,
'oint': 8750,
'bigvee': 8897,
@@ -2553,6 +2556,7 @@
'rightzigzagarrow': 'uni21DD',
'rightarrow': 'uni2192',
'leftarrow': 'uni2190',
+'__sqrt__': 'uni221A',
'twoheaddownarrow': 'uni21A1',
'oint': 'uni222E',
'bigvee': 'uni22C1',
Modified: trunk/matplotlib/lib/matplotlib/mathtext.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/mathtext.py 2007-08-23 06:58:10 UTC (rev 3731)
+++ trunk/matplotlib/lib/matplotlib/mathtext.py 2007-08-23 17:58:49 UTC (rev 3732)
@@ -645,7 +645,7 @@
('ex', '\xbf'), ('ex', '\x2a')],
r'\rangle' : [('cal', '\x69'), ('ex', '\xae'), ('ex', '\x45'),
('ex', '\xc0'), ('ex', '\x2b')],
- r'\sqrt' : [('cal', '\x70'), ('ex', '\x70'), ('ex', '\x71'),
+ r'\__sqrt__' : [('cal', '\x70'), ('ex', '\x70'), ('ex', '\x71'),
('ex', '\x72'), ('ex', '\x73')],
r'\backslash': [('cal', '\x6e'), ('ex', '\xb2'), ('ex', '\x2f'),
('ex', '\xc2'), ('ex', '\x2d')],
@@ -2296,7 +2296,7 @@
# the height so it doesn't seem cramped
height = body.height - body.shift_amount + thickness * 5.0
depth = body.depth + body.shift_amount
- check = AutoHeightChar(r'\sqrt', height, depth, state, always=True)
+ check = AutoHeightChar(r'\__sqrt__', height, depth, state, always=True)
height = check.height - check.shift_amount
depth = check.depth + check.shift_amount
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|