awesome-repositories.com
Blog
awesome-repositories.com

Entdecke die besten Open-Source-Repositories mit KI-gestützter Suche.

EntdeckenKuratierte SuchenOpen-Source-AlternativenSelf-hosted SoftwareBlogSitemap
ProjektÜber unsRanking-MethodikPresseMCP-Server
RechtlichesDatenschutzAGB
© 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 Aufrufeftfy.readthedocs.org↗

Python Ftfy

python-ftfy ist eine Unicode-Textreparatur-Bibliothek, die entwickelt wurde, um Mojibake und Kodierungsfehler zu beheben. Sie bietet Dienstprogramme für die Erkennung von Byte-Kodierungen, die Dekodierung von HTML-Entitäten und die Wiederherstellung beschädigten Textes, um ihn in seine beabsichtigte Unicode-Form zurückzuführen.

Das Projekt zeichnet sich durch eine mehrschichtige Dekodierungspipeline aus, die komplexe Kodierungsverwechslungen identifiziert und rückgängig macht. Es verwendet heuristikbasierte Erkennung, um Fälle zu lösen, in denen Text über mehrere Korruptionsebenen hinweg mit dem falschen Codec dekodiert wurde, und kann mit nicht standardmäßigen UTF-8-Varianten und unsauberen Kodierungszuordnungen umgehen.

Die Bibliothek deckt zudem ein breites Spektrum an Textstandardisierungsaufgaben ab, einschließlich Unicode-Normalisierung, Zeilenumbruch-Standardisierung und der Erweiterung von lateinischen Ligaturen. Sie enthält Funktionen für die Normalisierung der Zeichenbreite sowie das Entfernen von Terminal-Escapes und Steuerzeichen.

Eine Command-Line-Interface ist verfügbar, um die Erkennung und Reparatur von Unicode-Fehlern innerhalb von Dateien zu automatisieren.

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.

Star-Verlauf

Star-Verlauf für luminosoinsight/python-ftfyStar-Verlauf für luminosoinsight/python-ftfy

KI-Suche

Entdecke weitere awesome Repositories

Beschreibe in einfachen Worten, was du brauchst — die KI bewertet tausende kuratierte Open-Source-Projekte nach Relevanz.

Start searching with AI

Open-Source-Alternativen zu Python Ftfy

Ähnliche Open-Source-Projekte, sortiert nach der Anzahl der gemeinsamen Funktionen mit Python Ftfy.
  • rspeer/python-ftfyAvatar von rspeer

    rspeer/python-ftfy

    4,043Auf GitHub ansehen↗

    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
    Auf GitHub ansehen↗4,043
  • pemistahl/grexAvatar von pemistahl

    pemistahl/grex

    8,135Auf GitHub ansehen↗

    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
    Auf GitHub ansehen↗8,135
  • crazyguitar/pysheeetAvatar von crazyguitar

    crazyguitar/pysheeet

    8,150Auf GitHub ansehen↗

    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
    Auf GitHub ansehen↗8,150
  • commonmark/commonmark-specAvatar von commonmark

    commonmark/commonmark-spec

    5,105Auf GitHub ansehen↗

    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
    Auf GitHub ansehen↗5,105
Alle 30 Alternativen zu Python Ftfy anzeigen→

Häufig gestellte Fragen

Was macht luminosoinsight/python-ftfy?

python-ftfy ist eine Unicode-Textreparatur-Bibliothek, die entwickelt wurde, um Mojibake und Kodierungsfehler zu beheben. Sie bietet Dienstprogramme für die Erkennung von Byte-Kodierungen, die Dekodierung von HTML-Entitäten und die Wiederherstellung beschädigten Textes, um ihn in seine beabsichtigte Unicode-Form zurückzuführen.

Was sind die Hauptfunktionen von luminosoinsight/python-ftfy?

Die Hauptfunktionen von luminosoinsight/python-ftfy sind: Mojibake Detectors, Mojibake Detection, Multi-Layer Decoders, Character Encoding Detectors, Encoding Recovery Tools, Mojibake Repair Utilities, Encoding Mix-up Repair, Inconsistent Encoding Repair.

Welche Open-Source-Alternativen gibt es zu luminosoinsight/python-ftfy?

Open-Source-Alternativen zu luminosoinsight/python-ftfy sind unter anderem: 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…