{ "info": { "author": "Pat Pannuto", "author_email": "pat.pannuto+abbreviate@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Programming Language :: Python", "Topic :: Text Processing :: Filters" ], "description": "Abbreviate\n==========\n\nThis filter attempts to automatically and intelligently abbreviate strings.\n\nThis library contains a dictionary of known abbreviations. Some words have\nmultiple abbreviations, e.g. Thursday could be abbreviated as any of Thurs,\nThur, Thr, Th, or T depending on context. With no other information, each word\nhas a \"preferred abbreviation\" (Thr), however options can push things one way\nor another. For words without known abbreviations, a series of heuristics are\napplied to shorten them as needed.\n\nThe basic `abbreviate` method will only apply preferred abbreviations and\nno heuristics. For more advanced applications, the library can be given a\ntarget length and effort, and will attempt to generate the best string\npossible. Length can be supplied either as a simple character count, or with a\ncustom length function. The latter is useful in many graphics applications\nwithout monospaced fonts or constant kerning. By default, abbreviate will not\nshorten any exisiting abbreviations (e.g. Thur -> Th), assuming that any\nexplicit abbreviation was passed as such for a reason.\n\nIssues, updates, pull requests, etc should be directed\n`to github