Skip to content

Commit fc66202

Browse files
authored
Merge pull request ppannuto#51 from 1kastner/patch-3
Add table with examples
2 parents bdd7012 + 0d5b558 commit fc66202

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

README.rst

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,25 @@ Titlecase
66
.. image:: https://coveralls.io/repos/github/ppannuto/python-titlecase/badge.svg?branch=master
77
:target: https://coveralls.io/github/ppannuto/python-titlecase?branch=master
88

9-
This filter changes all words to Title Caps, and attempts to be clever
9+
This filter changes a given text to Title Caps, and attempts to be clever
1010
about SMALL words like a/an/the in the input.
11-
1211
The list of "SMALL words" which are not capped comes from the New York
1312
Times Manual of Style, plus some others like 'vs' and 'v'.
1413

15-
This is a resurrection of `Stuart Colville's
14+
The filter employs some heuristics to guess abbreviations that don't need conversion.
15+
16+
+------------------+----------------+
17+
| Original | Conversion |
18+
+==================+================+
19+
| this is a test | This Is a Test |
20+
+------------------+----------------+
21+
| THIS IS A TEST | This Is a Test |
22+
+------------------+----------------+
23+
| this is a TEST | This Is a TEST |
24+
+------------------+----------------+
25+
26+
27+
This library is a resurrection of `Stuart Colville's
1628
titlecase.py <https://muffinresearch.co.uk/titlecasepy-titlecase-in-python/>`__,
1729
which was in turn a port of `John Gruber's
1830
titlecase.pl <http://daringfireball.net/2008/05/title_case>`__.

0 commit comments

Comments
 (0)