@@ -168,12 +168,12 @@ def _parse_command(self, code: TexCmd, trg: etree._Element) -> None:
168
168
pass
169
169
# Give up, but preserve element
170
170
else :
171
- log .warn (f"Unknown TeX-math command: { code } " )
171
+ log .warning (f"Unknown TeX-math command: { code } " )
172
172
self ._append_unparsed (code , trg )
173
173
174
174
def _parse_fraction (self , args : list [TexEverything ], trg : etree ._Element ) -> None :
175
175
if len (args ) != 2 :
176
- log .warn (f"Couldn't parse \\ frac: got { len (args )} arguments, expected 2" )
176
+ log .warning (f"Couldn't parse \\ frac: got { len (args )} arguments, expected 2" )
177
177
self ._append_unparsed (TexCmd ("frac" , args = args ), trg )
178
178
else :
179
179
# Represent numerator of fraction as superscript
@@ -190,7 +190,7 @@ def _parse_fraction(self, args: list[TexEverything], trg: etree._Element) -> Non
190
190
def _parse_text (self , code : str | TexText , trg : etree ._Element ) -> SxscriptStatus :
191
191
text = str (code )
192
192
# TexSoup doesn't parse any non-alpha command as a command. Ex: \$
193
- # However it does seperate them into their own text part. Ex: 'r\\&dd' -> ['r', '\\&', 'dd']
193
+ # However it does separate them into their own text part. Ex: 'r\\&dd' -> ['r', '\\&', 'dd']
194
194
# Therefore try to do command mapping replacement of all text beginning with \ and of length 2
195
195
if len (text ) == 2 and text [0 ] == "\\ " :
196
196
text = self .cmd_map .get (text [1 ], text )
0 commit comments