Convert between unicode characters and latex commands in Python.
Project description
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 .
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
unicode_tex-0.1.1.tar.gz
(29.8 kB
view details)
File details
Details for the file unicode_tex-0.1.1.tar.gz
.
File metadata
- Download URL: unicode_tex-0.1.1.tar.gz
- Upload date:
- Size: 29.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c1a3595e925b1dc43cfcbd0370518fc0a9d6fc4a5db0eebb6b0894f6dc2238de |
|
MD5 | 37a88c542e7d9c4aeb92bee6900dff11 |
|
BLAKE2b-256 | ecffd90a87c3565c087ab888327057d7d4b5de7eda26fba51b068825372995be |