Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to prevent users writing with caps lock?

I don't really like people who write with Caps Lock. In addition the aversion, it defaces the whole application. I am wondering how to prevent users writing all characters with caps lock. I cannot force all text to lowercase due to special names and abbreviations. What logic should I use?

like image 775
quosal Avatar asked Jun 28 '12 11:06

quosal


People also ask

How do you stop writing in caps?

First, highlight the text you typed in all caps. Click Shift + F3. Seriously, that is it! Your text will magically transform to lowercase.

Is typing in caps disrespectful?

Etiquette -- er, netiquette -- therefore strongly advises against its use. For example: Typing in all capital letters on the Internet is considered rude because it is difficult to read and comes across as very aggressive (LIKE SHOUTING!).

Why is my keyboard typing in all caps with Caps Lock off?

There are multiple reasons why everything may become capitalized in Microsoft Word: The Caps Lock button on the keyboard is turned on. One of the Shift keys on the keyboard has physically jammed. A font type has been selected that only has upper case letters.

What does it mean when someone writes in Caps Lock?

WHEN YOU WRITE IN ALL CAPS IT SOUNDS LIKE YOU'RE SHOUTING. Using capital letters to indicate strong feeling may be the most famous example of typographical tone of voice.


2 Answers

Politely decline their posts—explaining why—if the number of capital letter exceeds the number of lowercase letters by more than 30, say.

Don't implement this on a FORTRAN forum

like image 189
Colonel Panic Avatar answered Sep 17 '22 04:09

Colonel Panic


You could check how many upper case characters are in a word, then limit that. Someone above has given the example of names like 'McLaren', this way would allow that. the down side is, if you put the maximum on 3, 'LOL' would stil be possible. The way to go would be to take the length of the word 'McLaren' would be 7 then cap it on a percentage like 20%, this enables longer words to have more uppercase characters, but not be all caps. (nothing will completely prevent it, but this will make it harder for them.)

Fun fact, today is international caps-lock day. :)

like image 32
Viezevingertjes Avatar answered Sep 21 '22 04:09

Viezevingertjes