File tree Expand file tree Collapse file tree 2 files changed +25
-3
lines changed
Expand file tree Collapse file tree 2 files changed +25
-3
lines changed Original file line number Diff line number Diff line change @@ -1414,7 +1414,7 @@ Currency:
14141414 wl-unicode : " \xA4 "
14151415 wl-unicode-name : CURRENCY SIGN
14161416DHacek :
1417- amslatex : " \\ v{D }"
1417+ amslatex : " \\ v{d }"
14181418 esc-alias : dv
14191419 has-unicode-inverse : false
14201420 is-letter-like : false
@@ -1785,7 +1785,7 @@ DoublePrime:
17851785 wl-unicode : " \u2033 "
17861786 wl-unicode-name : DOUBLE PRIME
17871787DoubleRightArrow :
1788- amslatex : " $ \\ Rightarrow$ "
1788+ amslatex : " \\ Rightarrow"
17891789 esc-alias : ' =>'
17901790 has-unicode-inverse : false
17911791 is-letter-like : false
@@ -2456,7 +2456,7 @@ EGrave:
24562456 wl-unicode : " \xE8 "
24572457 wl-unicode-name : LATIN SMALL LETTER E WITH GRAVE
24582458EHacek :
2459- amslatex : " \\ v{E }"
2459+ amslatex : " \\ v{e }"
24602460 esc-alias : ev
24612461 has-unicode-inverse : false
24622462 is-letter-like : false
Original file line number Diff line number Diff line change @@ -45,6 +45,28 @@ def test_yaml_field_names():
4545 assert diff == set (), f"Item { k } has unknown fields { diff } "
4646
4747
48+ def test_amslatex ():
49+ amslatex_seen = set ()
50+ dup_amslatex = set (["\\ Rightarrow" , "\\ rightarrow" , "\\ uparrow" ])
51+ for k , v in yaml_data .items ():
52+ a = v .get ("amslatex" , None )
53+ if a is None :
54+ continue
55+ msg_prefix = f"In { k } with amslatex { a } , "
56+ if a .startswith ("$" ):
57+ assert a .endswith ("$" ), (
58+ msg_prefix + "if something starts in math mode, it must end with '$'"
59+ )
60+ if a .endswith ("$" ):
61+ assert a .startswith ("$" ), (
62+ msg_prefix + "if something ends in math mode, it must start with '$'"
63+ )
64+ if a in dup_amslatex :
65+ continue
66+ assert a not in amslatex_seen , msg_prefix + "value seen before"
67+ amslatex_seen .add (a )
68+
69+
4870def test_operators ():
4971 ascii_seen = set ()
5072 operator_name_seen = set ()
You can’t perform that action at this time.
0 commit comments