text-unidecode is a basic and lightweight Python port of the Perl Text::Unidecode library. It converts Unicode text into a 'good enough' 7-bit ASCII representation by performing context-free, character-by-character transliteration. The current version is 1.3, released in 2019, indicating a stable but infrequently updated project.
pip install text-unidecodeVerified import paths — ran on the pinned version, not inferred.
Demonstrates how to import the `unidecode` function and use it to transliterate a Unicode string into a basic ASCII equivalent.
For critical applications, evaluate the output carefully or pre-process strings for specific language rules. For better transliteration quality, consider language-specific libraries or the alternative 'unidecode' package if its license is acceptable.
If output stability is crucial (e.g., for URL slugs), either store the generated ASCII string in a database or pin the 'text-unidecode' dependency to a specific version to prevent unexpected changes.
Review project licensing requirements and compare `text-unidecode` with the `unidecode` library to choose the best fit for quality and license compatibility.
pip install text-unidecode
Use `unidecode.unidecode('your text')` or import the function directly with `from unidecode import unidecode` and then call `unidecode('your text')`.Use the correct module name in your import statement: `from unidecode import unidecode` or `import unidecode`.
Import the function before using it: `from unidecode import unidecode`
No dependency data recorded yet.