Skip to main content

Latex codec

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

Metadata

Release files for latexcodec 0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for latexcodec 0.2
File Size Uploaded Provenance Actions
latexcodec-0.2.tar.gz 9.0 kB Without provenance Details for latexcodec-0.2.tar.gz

Release files / latexcodec-0.2.tar.gz

Download URL latexcodec-0.2.tar.gz
Size 9.0 kB
Tags Source
SHA-256 checksum
How to use checksums
8d4b6baa4272bde67efa6d7d8ffed9d072d02fa0cae5e59ce0e7b0fb5c8fce72
BLAKE2b-256 checksum
How to use checksums
cc15846fb376ae9315626cefea3414d6e84cd83de845ec2eb5b65fa75088a095
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for latexcodec 0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page