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
Project details
Release history Release notifications | RSS feed
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.4.tar.gz
(3.7 kB
view details)
Built Distributions
titlecase-0.4-py2.6.egg
(7.7 kB
view details)
titlecase-0.4-py2.5.egg
(7.7 kB
view details)
File details
Details for the file titlecase-0.4.tar.gz
.
File metadata
- Download URL: titlecase-0.4.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a29b22841f01c676eececa852312f4b7feb14a51d542fbc3dc5099893aef24d |
|
MD5 | e4727da02b4c15bcc4d5f30d3c77bb17 |
|
BLAKE2b-256 | 7694313fde50f0f6405c205cdeea8e586c831b13856929f1e3e439505b341927 |
File details
Details for the file titlecase-0.4-py2.6.egg
.
File metadata
- Download URL: titlecase-0.4-py2.6.egg
- Upload date:
- Size: 7.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 236deda003967f577a29deb9c2cb5ec908fc453f49aa4be28b2a6b9163bcb362 |
|
MD5 | eb733fd570f814d05a45db27ffc75677 |
|
BLAKE2b-256 | 0f89c41ae58bd5b66e29880b9bf0611c6879c18358458dd2187602ce2585a7b7 |
File details
Details for the file titlecase-0.4-py2.5.egg
.
File metadata
- Download URL: titlecase-0.4-py2.5.egg
- Upload date:
- Size: 7.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 677a801cd526a57cbee0d52869a4d7b56fb468a5e43d641b81311ce96273a073 |
|
MD5 | 14f634d2eecf70e275edee5965de0da1 |
|
BLAKE2b-256 | 9d2a0a50a76aa20da6ac795bb004cd24d8351ca5cf6d3bbe27b0cbb499022248 |