File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed
Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -210,11 +210,17 @@ def init_module():
210210 ("VerticalSeparator" , r" \uF432 " ),
211211 ]
212212
213- for table in ("box-operators" , "no-meaning-infix-operators" ):
214- table_info = OPERATOR_DATA [table ]
213+ for table_name in ("box-operators" , "no-meaning-infix-operators" ):
214+ table_info = OPERATOR_DATA [table_name ]
215215 for operator_name , unicode in table_info .items ():
216- if any ([tup [0 ] == operator_name for tup in tokens ]):
217- print (f"Please remove { operator_name } " )
216+ # if any([tup[0] == operator_name for tup in tokens]):
217+ # print(f"Please remove {operator_name}")
218+
219+ # Ternary operators have two character symbols
220+ # in a list. For tokens, we just want the first
221+ # of the pair
222+ if isinstance (unicode , list ):
223+ unicode = unicode [0 ]
218224 tokens .append ((operator_name , f" { unicode } " ))
219225
220226 literal_tokens = {
@@ -264,14 +270,14 @@ def init_module():
264270 "FormBox" ,
265271 "FractionBox" ,
266272 "InterpretedBox" ,
267- "OverunderscriptBox" ,
268273 "OverscriptBox" ,
269274 "RadicalBox" ,
270275 "RawBackslash" ,
271276 "SqrtBox" ,
272277 "SubscriptBox" ,
273278 "SuperscriptBox" ,
274279 "UnderscriptBox" ,
280+ "UnderoverscriptBox" ,
275281 ],
276282 "]" : ["RawRightBracket" ],
277283 "^" : ["UpSetDelayed" , "UpSet" , "Power" ],
You can’t perform that action at this time.
0 commit comments