awesome-repositories.com
Blog
awesome-repositories.com

Découvrez les meilleurs dépôts open-source grâce à notre recherche par IA.

ExplorerRecherches sélectionnéesAlternatives open sourceLogiciels auto-hébergésBlogPlan du site
ProjetÀ proposNotre méthodologiePresseServeur MCP
Mentions légalesConfidentialitéConditions d'utilisation
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
LuminosoInsight avatar

LuminosoInsight/python-ftfy

0
View on GitHub↗
4,043 stars·126 forks·Python·5 vuesftfy.readthedocs.org↗

Python Ftfy

python-ftfy est une bibliothèque de réparation de texte Unicode conçue pour corriger le mojibake et les problèmes d'encodage. Elle fournit des utilitaires pour la détection d'encodage d'octets, le décodage d'entités HTML et la récupération de texte corrompu pour le restaurer sous sa forme Unicode prévue.

Le projet se distingue par un pipeline de décodage multicouche qui identifie et inverse les mélanges d'encodage complexes. Il utilise une détection basée sur l'heuristique pour résoudre les cas où le texte a été décodé en utilisant le mauvais codec à travers plusieurs couches de corruption, et il peut gérer les variantes UTF-8 non standard et les mappages d'encodage négligents.

La bibliothèque couvre également un large éventail de tâches de normalisation de texte, notamment la normalisation Unicode, la normalisation des sauts de ligne et l'expansion des ligatures latines. Elle inclut des capacités pour la normalisation de la largeur des caractères et la suppression des échappements de terminal et des caractères de contrôle.

Une interface en ligne de commande est disponible pour automatiser la détection et la réparation des problèmes Unicode dans les fichiers.

Features

  • Mojibake Detectors - Implements heuristic analysis of character sequences to detect and identify mojibake corruption.
  • Mojibake Detection - Implements heuristic-based detection of mojibake and Unicode encoding glitches.
  • Multi-Layer Decoders - Implements a multi-layered decoding pipeline to sequentially peel back layers of encoding corruption.
  • Character Encoding Detectors - Provides heuristic detection of byte encodings using BOM and UTF-8 validation to identify the correct codec.
  • Encoding Recovery Tools - Identifies and reverts multi-layered encoding errors and incorrect codec applications to restore corrupted text.
  • Mojibake Repair Utilities - Heuristically detects and fixes mojibake and multi-layered encoding glitches to restore intended text.
  • Encoding Mix-up Repair - Provides specialized repair for text corrupted by mismatched single-byte and variable-length encodings.
  • Inconsistent Encoding Repair - Detects and fixes text containing fragments of different encodings embedded together.
  • Mojibake Restoration - Restores text mangled by incorrect encoding cycles to its intended Unicode representation.
  • Unicode Text Repair Libraries - Provides a comprehensive toolset for fixing mojibake and encoding glitches to restore corrupted text.
  • Unicode Normalization - Applies standard Unicode normalization forms to ensure characters and combining marks are represented consistently.
  • Unicode Text Handling - Fixes encoding glitches and mojibake through configurable transformations applied to text segments.
  • Unicode Normalizers - Provides a utility for standardizing line breaks, character widths, and control characters for consistent display.
  • Text Cleaning - Cleans Unicode data by removing terminal escapes and decomposing ligatures to prepare text for analysis.
  • Escape Sequence Decoding - Converts backslashed escape sequences into their corresponding Unicode characters.
  • Line Break Standardization - Converts platform-specific line breaks like CRLF and CR into the standard Unix format.
  • Latin Ligature Decomposers - Decomposes single-character Latin ligatures into individual letters to resolve common copy-paste artifacts.
  • Lossy Encoding Detection - Identifies UTF-8 decoding errors that resulted in lossy replacement characters.
  • Encoding Repair CLIs - Provides a command-line interface to automate the detection and repair of Unicode glitches within files.
  • Character Width Normalizers - Replaces halfwidth and fullwidth forms of ASCII, Katakana, and Hangul characters with standard equivalents.
  • Transformation Analysis - Offers a detailed list of the specific encoding and decoding steps used to repair a string.
  • Non-Standard UTF-8 Decoding - Supports decoding of UTF-8 variants including CESU-8 and Java-style null encodings.
  • Encoding Normalizers - Standardizes inconsistent line breaks, character widths, and control characters for consistent display.
  • HTML Entity Processors - Converts HTML entity references and backslashed escape sequences into their corresponding Unicode characters.
  • Text Processing - Fixes broken Unicode text automatically.

Historique des stars

Graphique de l'historique des stars pour luminosoinsight/python-ftfyGraphique de l'historique des stars pour luminosoinsight/python-ftfy

Recherche par IA

Explorez plus de dépôts awesome

Décrivez vos besoins en langage naturel — l'IA classe des milliers de projets open source sélectionnés par pertinence.

Start searching with AI

Alternatives open source à Python Ftfy

Projets open source similaires, classés selon le nombre de fonctionnalités partagées avec Python Ftfy.
  • rspeer/python-ftfyAvatar de rspeer

    rspeer/python-ftfy

    4,043Voir sur GitHub↗

    This project is a Unicode text repair tool and mojibake correction library designed to fix encoding glitches and restore original characters from mangled strings. It functions as a text encoding detector and a Unicode normalization tool to resolve issues where text has been incorrectly decoded. The library specializes in reversing multi-layered encoding errors and repairing complex mojibake patterns. It includes capabilities for detecting lossy encoding sequences, guessing byte encodings, and decoding non-standard UTF-8 variants. The toolset covers a broad range of text cleaning and normaliz

    Python
    Voir sur GitHub↗4,043
  • pemistahl/grexAvatar de pemistahl

    pemistahl/grex

    8,135Voir sur GitHub↗

    Grex is a regular expression generator and Rust pattern library that synthesizes a single regular expression from a set of provided text test cases. It functions as a command-line tool and a library, utilizing a Rust-based engine to analyze commonalities across input strings to create matching patterns. The project distinguishes itself through Unicode-aware grapheme processing, ensuring consistent matching across diverse character sets and non-ASCII text. It also provides Python bindings to make its core Rust logic available within Python environments. The system covers pattern generalizatio

    Rustclicommand-line-toolpython
    Voir sur GitHub↗8,135
  • crazyguitar/pysheeetAvatar de crazyguitar

    crazyguitar/pysheeet

    8,150Voir sur GitHub↗

    pysheeet is a technical reference library providing a curated collection of code snippets and implementation patterns for advanced Python development, system integration, and high-performance computing. It serves as a comprehensive guide for implementing low-level network programming, native C extensions, and asynchronous and concurrent programming. The project provides specialized frameworks for the development and deployment of large language models, including tools for distributed GPU inference and high-performance serving. It also includes detailed patterns for high-performance computing

    Python
    Voir sur GitHub↗8,150
  • commonmark/commonmark-specAvatar de commonmark

    commonmark/commonmark-spec

    5,105Voir sur GitHub↗

    This project is a formal markdown specification standard that provides a detailed markup syntax definition and a definitive set of rules for parsing plain text into consistent HTML output. It establishes a standardized grammar for structural blocks and inline elements to ensure uniform rendering across different software implementations. The specification is supported by a parser conformance suite and a reference implementation in C and JavaScript to verify that implementations adhere to the standard. It includes a system for implementation verification that compares transformed input strings

    Python
    Voir sur GitHub↗5,105
Voir les 30 alternatives à Python Ftfy→

Questions fréquentes

Que fait luminosoinsight/python-ftfy ?

python-ftfy est une bibliothèque de réparation de texte Unicode conçue pour corriger le mojibake et les problèmes d'encodage. Elle fournit des utilitaires pour la détection d'encodage d'octets, le décodage d'entités HTML et la récupération de texte corrompu pour le restaurer sous sa forme Unicode prévue.

Quelles sont les fonctionnalités principales de luminosoinsight/python-ftfy ?

Les fonctionnalités principales de luminosoinsight/python-ftfy sont : Mojibake Detectors, Mojibake Detection, Multi-Layer Decoders, Character Encoding Detectors, Encoding Recovery Tools, Mojibake Repair Utilities, Encoding Mix-up Repair, Inconsistent Encoding Repair.

Quelles sont les alternatives open-source à luminosoinsight/python-ftfy ?

Les alternatives open-source à luminosoinsight/python-ftfy incluent : rspeer/python-ftfy — This project is a Unicode text repair tool and mojibake correction library designed to fix encoding glitches and… pemistahl/grex — Grex is a regular expression generator and Rust pattern library that synthesizes a single regular expression from a… crazyguitar/pysheeet — pysheeet is a technical reference library providing a curated collection of code snippets and implementation patterns… commonmark/commonmark-spec — This project is a formal markdown specification standard that provides a detailed markup syntax definition and a… commonmark/commonmark.js — Commonmark.js is a library designed to parse and render text formatted according to the CommonMark specification. It… coteditor/coteditor — CotEditor is a native macOS plain text editor designed for lightweight file modification and developer use. It is a…