Skip to main content

Python Port of John Gruber's titlecase.pl

Project description

Titlecase is a port of John Gruber’s titlecase.pl http://daringfireball.net/2008/05/title_case

This filter changes all words to Title Caps, and attempts to be clever about uncapitalizing SMALL words like a/an/the in the input.

The list of “SMALL words” which are not capped comes from the New York Times Manual of Style, plus ‘vs’ and ‘v’.

Usage

To use it is as simple as:

>>> from titlecase import titlecase
>>> titlecase('a thing')
'A Thing'

Bugs/Patches/Contributions

See https://launchpad.net/titlecase.py

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

titlecase-0.5.1.tar.gz (4.1 kB view hashes)

Uploaded Source

Built Distribution

titlecase-0.5.1-py2.6.egg (8.7 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page