{"categories":[{"label":"Filters","url":"https://skillfed.io/packages/category/text-processing-filters"},{"label":"LaTeX","url":"https://skillfed.io/packages/category/text-processing-markup-latex"}],"enrichment":{"capability":"Provides a Python codec to convert between LaTeX-encoded text and Unicode, suitable for processing short text fragments like BibTeX entries or paragraphs rather than full documents.","skillfed_tags":["bibtex","latex-conversion"],"use_cases":["Normalize and convert author names or titles in BibTeX entries between LaTeX and Unicode representations.","Decode LaTeX-encoded metadata fields in academic document processing pipelines.","Encode Unicode text with accented characters into LaTeX for inclusion in .tex files.","Clean and canonicalize LaTeX fragments in text mining or citation parsing workflows."],"what_it_does":"latexcodec is a Python codec that translates between LaTeX markup and Unicode text. It works by registering a codec that lets you encode Unicode strings into LaTeX commands and decode LaTeX commands back into Unicode characters. The package is designed for short text fragments\u2014like individual BibTeX fields or paragraphs\u2014rather than full LaTeX documents, because it does not run a full LaTeX compiler and its handling of non-character-selecting commands (macros, formatting directives) is best-effort and may require manual adjustment.\n\nThe encoder converts Unicode characters outside the ASCII range into LaTeX equivalents (e.g., `\u00fc` becomes `\\\"u`, `\u00a5` becomes `\\yen`), and the decoder reverses this process. The codec also normalizes whitespace and removes comments during decoding. LaTeX commands that the codec does not recognize are passed through unchanged, which can result in hybrid strings containing both literal Unicode and unexpanded LaTeX control sequences.","worth_installing":"Yes, if you need to convert between LaTeX and Unicode for short text fragments in academic or bibliography workflows. The package is stable, has no dependencies, and carries a permissive license. The aging maintenance status (423 days since last release) is not a blocker for stable use, but be aware that new LaTeX commands will not be added without community contribution."},"id":"latexcodec","links":{"html":"https://skillfed.io/packages/latexcodec","md":"https://skillfed.io/packages/latexcodec.md","pypi":"https://pypi.org/project/latexcodec/"},"maintenance":{"status":"aging"},"meta":{"latest_release":"2025-06-17","license_spdx":null,"license_treatment":"permissive","name":"latexcodec","python_support":"supports_current","summary":"A lexer and codec to work with LaTeX code in Python."},"popularity":{"monthly_downloads":1857172,"position":3487,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"3.0.1"}
