Re: ALL CAPS input and Sentence case

2011-07-26 Thread Mike Dewhirst
On 27/07/2011 1:48am, christian.posta wrote: Forgive me if this might be more of a python-centric or text-handling question more than Django, but it does come up within the context of web development, processing user input, etc in all web frameworks including django. I did a quick search on the

Re: ALL CAPS input and Sentence case

2011-07-26 Thread bruno desthuilliers
On 26 juil, 18:38, Kirill Spitsin wrote: > > You can try this code, seems to do what you > want:http://mail.python.org/pipermail/tutor/2004-September/031859.html > Looks a bit complicated (and with some useless code here and there) to me, but that's a problem I never tried

Re: ALL CAPS input and Sentence case

2011-07-26 Thread christian.posta
Awesome, I'll take a look! Thanks! On Jul 26, 9:38 am, Kirill Spitsin wrote: > On Tue, Jul 26, 2011 at 07:19:46PM +0300, Kirill Spitsin wrote: > > On Tue, Jul 26, 2011 at 08:48:24AM -0700, christian.posta wrote: > > > For user input, I would like to format what they enter

Re: ALL CAPS input and Sentence case

2011-07-26 Thread Kirill Spitsin
On Tue, Jul 26, 2011 at 07:19:46PM +0300, Kirill Spitsin wrote: > On Tue, Jul 26, 2011 at 08:48:24AM -0700, christian.posta wrote: > > For user input, I would like to format what they enter into 'sentence > > case' > > Example, if they input ALL CAPS for a description, I want to lowercase > >

ALL CAPS input and Sentence case

2011-07-26 Thread christian.posta
Forgive me if this might be more of a python-centric or text-handling question more than Django, but it does come up within the context of web development, processing user input, etc in all web frameworks including django. I did a quick search on the forum and couldn't find an answer. (I've also

Re: ALL CAPS input and Sentence case

2011-07-26 Thread Kirill Spitsin
On Tue, Jul 26, 2011 at 08:48:24AM -0700, christian.posta wrote: > For user input, I would like to format what they enter into 'sentence > case' > Example, if they input ALL CAPS for a description, I want to lowercase > that, but according to sentence rules (first word in sentence upper > case,