Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Internationalization

    Slugger 0.1

    Download button

    No screenshots available
    Downloads: 136  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Marc Brinkmann | More programs
    LGPL / FREE
    March 19th, 2012, 09:22 GMT
    ROOT / Programming / Internationalization

     Read user reviews (0)  Refer to a friend  Subscribe

    Slugger description

    Slugging done right. Tries to support close to 300 languages.

    Slugger is a Python tool that solves the "simple" problem of turning a title like *Headless body in topless bar* into a slug: *headless-body-in-topless-bar*.

    Criterias of what makes a good slug vary, but most often they are required to have a maximum length a reduced character set that is highly URL-friendly.

    Usage

    Detailed docs are still missing. Here is a quick example::

        from slugger import Slugger

        s = Slugger('de', hanlang='ja')
        print s.sluggify(u'Hellö & Wörld 漢字')


    This will print ``helloe-und-woerld-kan-ji``. The Slugger class itself supports a number of construction options, see ``slugger/__init__.py`` for details.

    You should not rely on Slugger generating the same slug across different versions, as the goal of this library is to steadily improve, either through better underlying libraries or fixes in Slugger itself.

    Installation

    You cannot use Slugger straight from a checkout of the repository, as *glibc*-localedata has to be parsed and pickled first. When installing a release from PyPi, this data is already included.


    Product's homepage

    Requirements:

    · Python

      


    TAGS:

    title slugging | slug titles | Python | title | slugging

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM