From 1be1769e3dff8eb92f921559bcf371f6e4f4f26c Mon Sep 17 00:00:00 2001 From: dan Date: Wed, 7 Jul 2021 22:05:03 -0400 Subject: [PATCH 1/4] Added dddot and ddddot to _accent_map --- lib/matplotlib/_mathtext.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/matplotlib/_mathtext.py b/lib/matplotlib/_mathtext.py index 3cc90e1f7501..7233a0ee0644 100644 --- a/lib/matplotlib/_mathtext.py +++ b/lib/matplotlib/_mathtext.py @@ -2441,6 +2441,8 @@ def c_over_c(self, s, loc, toks): r'tilde': r'\combiningtilde', r'dot': r'\combiningdotabove', r'ddot': r'\combiningdiaeresis', + r'dddot': r'\dddot', + r'ddddot': r'\ddddot', r'vec': r'\combiningrightarrowabove', r'"': r'\combiningdiaeresis', r"`": r'\combininggraveaccent', From a8427b367dafb3c46ee13dbbe2f0b46d95996df5 Mon Sep 17 00:00:00 2001 From: dan Date: Wed, 7 Jul 2021 22:47:03 -0400 Subject: [PATCH 2/4] Better symmetry with \dot and \ddot accents --- lib/matplotlib/_mathtext.py | 4 ++-- lib/matplotlib/_mathtext_data.py | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/matplotlib/_mathtext.py b/lib/matplotlib/_mathtext.py index 7233a0ee0644..7c634fd46c34 100644 --- a/lib/matplotlib/_mathtext.py +++ b/lib/matplotlib/_mathtext.py @@ -2441,8 +2441,8 @@ def c_over_c(self, s, loc, toks): r'tilde': r'\combiningtilde', r'dot': r'\combiningdotabove', r'ddot': r'\combiningdiaeresis', - r'dddot': r'\dddot', - r'ddddot': r'\ddddot', + r'dddot': r'\combiningthreedotsabove', + r'ddddot': r'\combiningfourdotsabove', r'vec': r'\combiningrightarrowabove', r'"': r'\combiningdiaeresis', r"`": r'\combininggraveaccent', diff --git a/lib/matplotlib/_mathtext_data.py b/lib/matplotlib/_mathtext_data.py index e17f1e05903f..92ce1686961b 100644 --- a/lib/matplotlib/_mathtext_data.py +++ b/lib/matplotlib/_mathtext_data.py @@ -1166,6 +1166,8 @@ 'combiningtilde' : 771, 'combiningrightarrowabove' : 8407, 'combiningdotabove' : 775, + 'combiningthreedotsabove' : 8411, + 'combiningfourdotsabove' : 8412, 'to' : 8594, 'succeq' : 8829, 'emptyset' : 8709, From 56aed0d227a92bc66298413c83c64cea8a53f34d Mon Sep 17 00:00:00 2001 From: dan Date: Thu, 8 Jul 2021 01:31:59 -0400 Subject: [PATCH 3/4] Updated docs w/ new accents, --keep-going in make.bat --- doc/make.bat | 2 +- tutorials/text/mathtext.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/doc/make.bat b/doc/make.bat index 042c9ef3543b..910d05ea5d3e 100644 --- a/doc/make.bat +++ b/doc/make.bat @@ -10,7 +10,7 @@ if "%SPHINXBUILD%" == "" ( set SOURCEDIR=. set BUILDDIR=build set SPHINXPROJ=matplotlib -set SPHINXOPTS=-W +set SPHINXOPTS=-W --keep-going set O= %SPHINXBUILD% >NUL 2>NUL diff --git a/tutorials/text/mathtext.py b/tutorials/text/mathtext.py index 97bba56ec426..77f88ca950a4 100644 --- a/tutorials/text/mathtext.py +++ b/tutorials/text/mathtext.py @@ -308,8 +308,10 @@ ``\acute a`` or ``\'a`` :mathmpl:`\acute a` ``\bar a`` :mathmpl:`\bar a` ``\breve a`` :mathmpl:`\breve a` - ``\ddot a`` or ``\''a`` :mathmpl:`\ddot a` ``\dot a`` or ``\.a`` :mathmpl:`\dot a` + ``\ddot a`` or ``\''a`` :mathmpl:`\ddot a` + ``\dddot a`` :mathmpl:`\dddot a` + ``\ddddot a`` :mathmpl:`\ddddot a` ``\grave a`` or ``\`a`` :mathmpl:`\grave a` ``\hat a`` or ``\^a`` :mathmpl:`\hat a` ``\tilde a`` or ``\~a`` :mathmpl:`\tilde a` From 79c099b499ae750c12f5ee87d035add6c4ef9d0e Mon Sep 17 00:00:00 2001 From: dan Date: Fri, 9 Jul 2021 11:27:34 -0400 Subject: [PATCH 4/4] Reverted --keep-going change in make.bat --- doc/make.bat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/make.bat b/doc/make.bat index 910d05ea5d3e..042c9ef3543b 100644 --- a/doc/make.bat +++ b/doc/make.bat @@ -10,7 +10,7 @@ if "%SPHINXBUILD%" == "" ( set SOURCEDIR=. set BUILDDIR=build set SPHINXPROJ=matplotlib -set SPHINXOPTS=-W --keep-going +set SPHINXOPTS=-W set O= %SPHINXBUILD% >NUL 2>NUL