From be569c41a1ca7a4354a81c28fdcf1e854e1c663e Mon Sep 17 00:00:00 2001 From: David Sun <7274320+davidsun0@users.noreply.github.com> Date: Sat, 20 Mar 2021 00:55:16 -0400 Subject: [PATCH] Remove identifier check for LaTeX commands Remove the check that LaTeX commands must be valid Python identifiers. This allows users to input glyphs like the root symbol with \sqrt. --- README.rst | 4 ++++ tools/gen_latex_symbols.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/README.rst b/README.rst index 9f02e754203..f73a19ba139 100644 --- a/README.rst +++ b/README.rst @@ -2,6 +2,10 @@ https://github.com/ipython/ipython/issues/12861 +# Task # 2 + +Investigate why tools/gen_latex_symbols.py fails to decode \U1d4c1 mathematical script small l in latex_symbols.jl + Remember your job is to make *incremental* progress, break the task into smaller tasks, or finish something in 15 minutes, then pass it along to the next contributor. No responsibility, only fun. diff --git a/tools/gen_latex_symbols.py b/tools/gen_latex_symbols.py index e1b441054ac..3e0c54010fd 100644 --- a/tools/gen_latex_symbols.py +++ b/tools/gen_latex_symbols.py @@ -54,7 +54,7 @@ def test_ident(i): assert test_ident("α") assert not test_ident('‴') -valid_idents = [line for line in idents if test_ident(line[1])] +valid_idents = idents # Write the `latex_symbols.py` module in the cwd