semvec/pypi-packages huggingface dataset:
unicode_tex 0.1.1
Convert between unicode characters and latex commands in Python.
License: MIT

Module unicode_tex provides the map between unicode characters and latex commands.

To convert a unicode character u to latex commands:

    unicode_tex.unicode_to_tex_map.get(u, u)

To convert a latex command l to unicode characters:

    unicode_tex.tex_to_unicode_map.get(l, l)

Both unicodetotexmap and textounicodemap are dict objects, generated from http://www.w3.org/Math/characters/unicode.xml .

The code is a python version of http://www.johndcook.com/data.js .