Skip to content

Commit

Permalink
For now, make operator-to-amslatex be an alias for unicode-to-amslatex
Browse files Browse the repository at this point in the history
  • Loading branch information
rocky committed Feb 12, 2025
1 parent 137e47a commit 25c439b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion mathics_scanner/generate/build_tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,7 @@ def compile_tables(data: dict) -> dict:
"letterlikes",
"named-characters",
"operator-names",
"operator-to-amslatex", # This is really an alias
"operator-to-ascii",
"operator-to-precedence",
"operator-to-unicode",
Expand Down Expand Up @@ -302,8 +303,15 @@ def main(field, output, data_dir):
# Precompile the tables.
data = compile_tables(data)

# Until mathics-core is synced up, operator-to-amslatex
# is the same as unicode-to-ams-latex.
if "operator-to-amslatex" in field:
field = list(field)
field.remove("operator-to-amslatex")
field.append("unicode-to-amslatex")

# Remove the fields that aren't wanted
for f in ALL_FIELDS:
for f in set(ALL_FIELDS) - {"operator-to-amslatex"}:
if f not in field:
del data[f]

Expand Down

0 comments on commit 25c439b

Please sign in to comment.