Introduction
This example is amazing that fact that it can be extended by non-Latins with no pain. Just add your owned translation table at the end of script in the format
UPPER lower. For example, the translation table for Cyrillic characters is following:
А а
Б б
...
Ю ю
Я я
Just remember that the capitals have to be the first with following lowercase letters.
Examples of usage
Capitalize all characters. Results to
QWERTY.
CAPS qwerty /u
The first character is capital, and others are in lower case. Results to
Qwerty.
CAPS qwerty /uf
Invert the result of the previous example. Both result to
qWERTY.
CAPS qwerty /uf /l
CAPS qwerty /lf