Skip to content

Commit

Permalink
Update README.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
voronind committed Apr 8, 2014
1 parent 9e0b6ed commit e7bc631
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,9 @@ Examples

.. code-block:: python
from slugify import Slugify, slugify, slugiry_ru, slugify_unicode
from slugify import Slugify, slugify, slugify_unicode
from slugify import slugify_url, slugify_filename
from slugify import slugify_ru, slugify_de
slugify('one kožušček') # one-kozuscek
slugify('one two three', separator='.') # one.two.three
Expand All @@ -107,10 +108,14 @@ Examples
slugify_filename(u'Дrаft №2.txt') # Draft_2.txt
slugify_url(u'Дrаft №2.txt') # draft-2-txt
my_slugify = Slugify()
my_slugify.separator = '.'
my_slugify.pretranslate = {'я': 'i', '': 'love'}
my_slugify('Я ♥ борщ') # I.love.borshch (custom translate)
slugify('Я ♥ борщ') # Ia-borshch (standard translation)
slugify_ru('Я ♥ борщ') # Ya-borsch (alternative russian translation)
slugify_unicode('Я ♥ борщ') # Я-борщ (sanitize only)
my_slugify = Slugify(pretranslate={'я': 'i', '': 'love'}, separator='.')
my_slugify('Я ♥ борщ') # I.love.borshch (custom translate)
slugify_de('ÜBER Über slugify') # UEBER-Ueber-slugify

0 comments on commit e7bc631

Please sign in to comment.