예제 #1
0
def slugify(raw_text: str) -> str:
    """
    Transliterated non-ascii characters and returns slug.
    :param raw_text: string you want to slugify
    :return: slug
    """
    return default_slugify(unidecode(raw_text))
예제 #2
0
 def slugify(self, tag, i=None):
     slug = default_slugify(tag)
     if i is not None:
         slug += "_%d" % i
     return slug
예제 #3
0
 def slugify(self, tag, i=None):
     slug = default_slugify(unidecode(tag))
     if i is not None:
         slug += "_%d" % i
     return slug
예제 #4
0
 def slugify(self, title, i=None):
     slug = default_slugify(unidecode(title))
     if i is not None:
         slug += '_%d' % i
     return slug
예제 #5
0
 def slugify(self, tag, i=None):
     slug = default_slugify(tag)
     if i is not None:
         slug += "-%d" % i
     return slug
예제 #6
0
 def slugify(self, tag, i=None):
     return default_slugify(tag)
예제 #7
0
 def slugify(self, tag, i=None):
     slug = default_slugify(unidecode(six.text_type(tag)))
     if i is not None:
         slug += "_%d" % i
     return slug
예제 #8
0
 def slugify(self, tag, i=None):
     slug = default_slugify(tag)
     if i is not None:
         slug += f"_{i:d}"
     return slug
예제 #9
0
 def slugify(self, tag, i=None):
     tag = vi_slug(tag)
     slug = default_slugify(unidecode(tag))
     if i is not None:
         slug += "_%d" % i
     return slug