Skip to main content

Python codec for generating international characters in Latex syntax

Project description

This package installs a new codec named ‘latex’, which allows to convert byte strings (meaning standard Python 2 strings) into an equivalent that has all special characters expressed as Latex commands.

Currently, only encoding is supported:

>>> import latexcodec
>>> print u"Peter Tr\xf6ger".encode("latex")
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.1 (2011-05-26):

  • Initial release

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

latexcodec-0.1.tar.gz (8.8 kB view details)

Uploaded Source

File details

Details for the file latexcodec-0.1.tar.gz.

File metadata

  • Download URL: latexcodec-0.1.tar.gz
  • Upload date:
  • Size: 8.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for latexcodec-0.1.tar.gz
Algorithm Hash digest
SHA256 d4f6419e8c0a5d500900f8899f176d0898df4a40c89f8a23b16684c910bfa95b
MD5 cb7100c1810055c23bf8a37a345d23d8
BLAKE2b-256 ca9390e8e5628698e41adc02515a67a7cc75448c501b985d7ff2c696e7f277ab

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page