DESCRIPTION.rst 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. Text-Unidecode
  2. ==============
  3. .. image:: https://travis-ci.org/kmike/text-unidecode.svg?branch=master
  4. :target: https://travis-ci.org/kmike/text-unidecode
  5. :alt: Build Status
  6. text-unidecode is the most basic port of the
  7. `Text::Unidecode <http://search.cpan.org/~sburke/Text-Unidecode-0.04/lib/Text/Unidecode.pm>`_
  8. Perl library.
  9. There are other Python ports of Text::Unidecode (unidecode_
  10. and isounidecode_). unidecode_ is GPL; isounidecode_ uses too much memory,
  11. and it didn't support Python 3 when this package was created.
  12. You can redistribute it and/or modify this port under the terms of either:
  13. * `Artistic License`_, or
  14. * GPL or GPLv2+
  15. If you're OK with GPL-only, use unidecode_ (it has better memory usage and
  16. better transliteration quality).
  17. ``text-unidecode`` supports Python 2.7 and 3.4+.
  18. .. _unidecode: https://pypi.python.org/pypi/Unidecode/
  19. .. _isounidecode: https://pypi.python.org/pypi/isounidecode/
  20. .. _Artistic License: https://opensource.org/licenses/Artistic-Perl-1.0
  21. Installation
  22. ------------
  23. ::
  24. pip install text-unidecode
  25. Usage
  26. -----
  27. ::
  28. >>> from text_unidecode import unidecode
  29. >>> unidecode(u'какой-то текст')
  30. 'kakoi-to tekst'