The most basic Text::Unidecode port (licensed under Artistic License)
Python Perl
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
src/text_unidecode
.gitignore
.travis.yml
MANIFEST.in
README.rst
_dump.pl
setup.cfg
setup.py
test_unidecode.py
tox.ini

README.rst

Text-Unidecode

Build Status

text-unidecode is the most basic port of the Text::Unidecode Perl library.

There are other Python ports of Text::Unidecode (unidecode and isounidecode). unidecode is GPL; isounidecode doesn't support Python 3 and uses too much memory.

This port is licensed under Artistic License and supports both Python 2.x and 3.x. If you're OK with GPL, use unidecode (it has better memory usage and better transliteration quality).

Installation

pip install text-unidecode

Usage

>>> from text_unidecode import unidecode
>>> unidecode(u'какой-то текст')
u'kakoi-to tekst'