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
·
rspeer avatar

rspeer/python-ftfy

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

Python Ftfy

Ce projet est un outil de réparation de texte Unicode et une bibliothèque de correction de mojibake conçus pour corriger les problèmes d'encodage et restaurer les caractères originaux à partir de chaînes corrompues. Il fonctionne comme un détecteur d'encodage de texte et un outil de normalisation Unicode pour résoudre les problèmes où le texte a été incorrectement décodé.

La bibliothèque se spécialise dans l'inversion des erreurs d'encodage multicouches et la réparation des modèles de mojibake complexes. Elle inclut des capacités pour détecter les séquences d'encodage avec perte, deviner les encodages d'octets et décoder les variantes UTF-8 non standard.

L'ensemble d'outils couvre un large éventail de tâches de nettoyage et de normalisation de texte, notamment le décodage des entités HTML et des échappements par barre oblique inverse, l'expansion des ligatures latines et la normalisation des largeurs de caractères et des sauts de ligne. Il fournit également des utilitaires pour supprimer les caractères de contrôle invisibles et inspecter les chaînes Unicode par point de code.

Une interface en ligne de commande est disponible pour réparer les problèmes Unicode et les erreurs d'encodage dans les fichiers ou les flux d'entrée.

Features

  • Mojibake Repair Utilities - Repairs complex, multi-layered encoding errors and mojibake patterns to restore the original intended text.
  • Unicode Text Repair Libraries - Provides a comprehensive library for repairing mojibake and encoding glitches to restore intended Unicode text.
  • Text Cleaning - Cleans text data by removing invisible control characters and terminal escapes while standardizing ligatures.
  • Byte Encoding Detectors - Identifies the likely encoding of byte strings by checking for byte-order marks and UTF-8 validity.
  • Character Encoding Detectors - Analyzes byte sequences to identify the most likely character encoding and detect lossy sequences.
  • Lossy Encoding Detection - Identifies lossy encoding sequences, such as replacement characters, to determine how text was mangled.
  • Inconsistent Encoding Repair - Detects and resolves instances where multiple different encodings are embedded within a single text stream.
  • Mojibake Detection - Uses character sequence heuristics to identify likely Unicode encoding glitches and mojibake.
  • Mojibake Restoration - Reverses multi-layered encoding errors to restore original characters from mangled UTF-8 and single-byte strings.
  • Unicode Normalization - Standardizes character widths and combining marks to ensure consistent string representations across platforms.
  • Recursive Encoding Reversals - Fixes multi-layered encoding errors by recursively applying decoding and encoding cycles until the text is stable.
  • Unicode Normalizers - Standardizes UTF-8 text through character decomposition, width normalization, and resolving Latin ligatures.
  • Multi-Stage Text Normalizers - Processes text through a sequence of cleaning, decoding, and normalizing steps to resolve mixed encoding glitches.
  • Surrogate Pair Correctors - Replaces UTF-16 surrogate pairs with correct characters to fix text decoded via obsolete standards.
  • Sloppy Encoding Mapping - Implements mapping of unassigned bytes in single-byte encodings to compatible Unicode codepoints for legacy browser interoperability.
  • Byte Order Mark Detectors - Provides a mechanism to guess original text encoding by checking for signature byte-order marks.
  • Encoding Error Analyzers - Analyzes strings to identify specific encoding errors and lists the transformations required to fix the text.
  • Escape Sequence Decoding - Converts hex and Unicode backslashed escape sequences into their corresponding Unicode characters.
  • Line Break Standardization - Standardizes platform-specific newline sequences like CRLF and CR into Unix-style line breaks.
  • Ligature Expansion - Decomposes single-character Latin ligatures into the individual letters they represent to fix copy-paste artifacts.
  • Encoding Repair CLIs - Provides a command-line utility for detecting and repairing mojibake and encoding glitches in files.
  • Unicode Character Inspectors - Analyzes Unicode strings by displaying codepoints, hexadecimal values, glyphs, and character categories.
  • Character Substitution Tables - Employs predefined dictionaries to replace ligatures and non-standard control characters with standard equivalents.
  • Character Width Normalizers - Replaces halfwidth and fullwidth forms of ASCII, katakana, and Hangul with standard Unicode representations.
  • Control Character Normalizers - Provides utilities that map C1 control characters to Windows-1252 equivalents to ensure web-standard compatibility.
  • Non-Standard UTF-8 Decoding - Decodes non-standard UTF-8 variants including CESU-8 and Java-specific null character encodings.
  • HTML Entity Processors - Converts HTML entity sequences and backslashed escapes into their corresponding Unicode characters.
  • Natural Language Processing - Utility for fixing Unicode glitches and mojibake.
  • General Utilities - Tool for fixing broken Unicode strings.
  • Text Processing - Fixes broken Unicode text to make it consistent.

Historique des stars

Graphique de l'historique des stars pour rspeer/python-ftfyGraphique de l'historique des stars pour rspeer/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

Questions fréquentes

Que fait rspeer/python-ftfy ?

Ce projet est un outil de réparation de texte Unicode et une bibliothèque de correction de mojibake conçus pour corriger les problèmes d'encodage et restaurer les caractères originaux à partir de chaînes corrompues. Il fonctionne comme un détecteur d'encodage de texte et un outil de normalisation Unicode pour résoudre les problèmes où le texte a été incorrectement décodé.

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

Les fonctionnalités principales de rspeer/python-ftfy sont : Mojibake Repair Utilities, Unicode Text Repair Libraries, Text Cleaning, Byte Encoding Detectors, Character Encoding Detectors, Lossy Encoding Detection, Inconsistent Encoding Repair, Mojibake Detection.

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

Les alternatives open-source à rspeer/python-ftfy incluent : luminosoinsight/python-ftfy — python-ftfy is a Unicode text repair library designed to fix mojibake and encoding glitches. It provides utilities for… commonmark/commonmark-spec — This project is a formal markdown specification standard that provides a detailed markup syntax definition and a… johnsnowlabs/spark-nlp — Spark NLP is a toolkit for scalable text analysis and machine learning built on the Apache Spark distributed computing… guumaster/hostctl — Your dev tool to manage /etc/hosts like a pro! ai/nanoid — Nanoid is a library for generating unique, fixed-length identifiers designed for distributed systems and database… abadojack/whatlanggo — Natural language detection library for Go.

Alternatives open source à Python Ftfy

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

    LuminosoInsight/python-ftfy

    4,043Voir sur GitHub↗

    python-ftfy is a Unicode text repair library designed to fix mojibake and encoding glitches. It provides utilities for byte encoding detection, HTML entity decoding, and the recovery of corrupted text to restore it to its intended Unicode form. The project distinguishes itself through a multi-layered decoding pipeline that identifies and reverts complex encoding mix-ups. It uses heuristic-based detection to resolve instances where text was decoded using the wrong codec across multiple layers of corruption, and it can handle non-standard UTF-8 variants and sloppy encoding mappings. The librar

    Python
    Voir sur GitHub↗4,043
  • 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
  • johnsnowlabs/spark-nlpAvatar de JohnSnowLabs

    JohnSnowLabs/spark-nlp

    4,135Voir sur GitHub↗

    Spark NLP is a toolkit for scalable text analysis and machine learning built on the Apache Spark distributed computing framework. It provides a multimodal machine learning framework and a distributed pipeline system for sequencing annotators to process large-scale linguistic data. The library includes a transformer text processor for generating contextual vector embeddings and a dedicated inference engine for managing large language models. The project distinguishes itself through its ability to process heterogeneous data types, including text, audio, and images, within a unified vision-langu

    Scala
    Voir sur GitHub↗4,135
  • ashvardanian/stringzillaAvatar de ashvardanian

    ashvardanian/StringZilla

    3,494Voir sur GitHub↗

    Up to 100x faster strings for C, C++, CUDA, Python, Rust, Swift, JS, & Go, leveraging NEON, AVX2, AVX-512, SVE, GPGPU, & SWAR to accelerate search, hashing, sorting, edit distances, sketches, and memory ops 🦖

    Cdatasetedit-distancegpu
    Voir sur GitHub↗3,494
  • Voir les 30 alternatives à Python Ftfy→