|
From: <md...@us...> - 2009-11-06 19:25:07
|
Revision: 7944
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=7944&view=rev
Author: mdboom
Date: 2009-11-06 19:24:55 +0000 (Fri, 06 Nov 2009)
Log Message:
-----------
Add support for \widebar{} in mathtext (Thanks Sean Arms)
Modified Paths:
--------------
branches/v0_99_maint/lib/matplotlib/_mathtext_data.py
branches/v0_99_maint/lib/matplotlib/mathtext.py
Modified: branches/v0_99_maint/lib/matplotlib/_mathtext_data.py
===================================================================
--- branches/v0_99_maint/lib/matplotlib/_mathtext_data.py 2009-11-06 15:06:28 UTC (rev 7943)
+++ branches/v0_99_maint/lib/matplotlib/_mathtext_data.py 2009-11-06 19:24:55 UTC (rev 7944)
@@ -41,6 +41,7 @@
r'\rangle' : ('cmex10', 64),
r'\widehat' : ('cmex10', 15),
r'\widetilde' : ('cmex10', 52),
+ r'\widebar' : ('cmr10', 131),
r'\omega' : ('cmmi10', 29),
r'\varepsilon' : ('cmmi10', 20),
@@ -1762,6 +1763,7 @@
tex2uni = {
'widehat': 0x0302,
'widetilde': 0x0303,
+'widebar': 0x0305,
'langle': 0x27e8,
'rangle': 0x27e9,
'perp': 0x27c2,
Modified: branches/v0_99_maint/lib/matplotlib/mathtext.py
===================================================================
--- branches/v0_99_maint/lib/matplotlib/mathtext.py 2009-11-06 15:06:28 UTC (rev 7943)
+++ branches/v0_99_maint/lib/matplotlib/mathtext.py 2009-11-06 19:24:55 UTC (rev 7944)
@@ -2450,7 +2450,7 @@
r'overleftarrow' : r'\leftarrow'
}
- _wide_accents = set(r"widehat widetilde".split())
+ _wide_accents = set(r"widehat widetilde widebar".split())
def accent(self, s, loc, toks):
assert(len(toks)==1)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|