phfaist / pylatexenc

Simple LaTeX parser providing latex-to-unicode and unicode-to-latex conversion
https://pylatexenc.readthedocs.io
MIT License
301 stars 37 forks source link

macroname='SS' incorrectly translated #85

Closed nschloe closed 2 years ago

nschloe commented 2 years ago

When tranlating the node

LatexMacroNode(parsing_state=<parsing state 140115784772528>, pos=1182, len=3, macroname='SS', nodeargd=ParsedMacroArgs(argspec='', argnlist=[]), macro_post_space='')

with

from pylatexenc.latex2text import LatexNodes2Text

translator = LatexNodes2Text()
translator.nodelist_to_text([node])

one incorrectly gets ` (nothing). Should beß`.

nschloe commented 2 years ago

Sorry, this is actually correct. "\ss" gets translated correctly to ß.