Python codec for generating international characters in Latex syntax
Project description
This package installs codecs that allow to convert byte strings (meaning standard Python 2 strings) into an equivalent that has all special characters expressed as Latex commands.
Example:
>>> import latexcodec
>>> print u"Peter Tr\xf6ger".encode("latex")
>>> print u"Peter Tr\xf6ger".encode("latex_bracket")
Peter Tr\"oger
The conversion table is generated from the Latex utf-8 inputenc package, which should make sure that all relevant characters are covered.
The functionality of this package somehow is a hack, since LaTex encoding is not really a codec.
The future plan is to implement this alternatively as invalid character error handler, or as transformation codec starting from Python 3.3.
0.2 (2012-09-28):
Adding additional codec with brackets around special characters
0.1 (2011-05-26):
Initial release
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
File details
Details for the file latexcodec-0.2.tar.gz.
File metadata
- Download URL: latexcodec-0.2.tar.gz
- Upload date:
- Size: 9.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8d4b6baa4272bde67efa6d7d8ffed9d072d02fa0cae5e59ce0e7b0fb5c8fce72
|
|
| MD5 |
857d3f6da1e27b72c68d952396b59ae4
|
|
| BLAKE2b-256 |
cc15846fb376ae9315626cefea3414d6e84cd83de845ec2eb5b65fa75088a095
|