Description: upsidedown is a simple Python program that takes input from stdin and pipes it to stdout reversing latin characters and punctuation marks by using latin character based symbols from Unicode so that an impression of upside-down written text is created.
Simply save this program, make sure Python is installed and add the script to the Kopete pipes plugin (see attached screenshot).
You can enhance the script by adding special substitution rules (see variable TRANSLITERATIONS which has an example for German sharp-S).Support for diacritics is included but fails on common rendering systems for most cases as no rendering rules exist for these artificial instances.
X11 temporarily freezes and the cursor turns into a cross with which i can draw rectangles.
This is what i get in the terminal when trying to run it:
$ ./upsidedown.py
./upsidedown.py: line 1: #!/usr/bin/python: No such file or directory
./upsidedown.py: line 28:
Simple program that flips the input on stdin for latin characters.
Support for diacritics through combining diacritical marks. Depends on proper
rendering though.
2008 Christoph Burgmer (uyhc@stud.uni-karlsruhe.de)
˙ǝɹɐʍʇɟos ǝɥʇ uı sƃuılɐǝp ɹǝɥʇo ɹo ǝsn ǝɥʇ ɹo ǝɹɐʍʇɟos ǝɥʇ ɥʇıʍ uoıʇɔǝuuoɔ
uı ɹo ɟo ʇno 'ɯoɹɟ ƃuısıɹɐ 'ǝsıʍɹǝɥʇo ɹo ʇɹoʇ 'ʇɔɐɹʇuoɔ ɟo uoıʇɔɐ uɐ uı
ɹǝɥʇǝɥʍ 'ʎʇılıqɐıl ɹǝɥʇo ɹo sǝƃɐɯɐp 'ɯıɐlɔ ʎuɐ ɹoɟ ǝlqɐıl ǝq sɹǝploɥ ʇɥƃıɹʎdoɔ
ɹo sɹoɥʇnɐ ǝɥʇ llɐɥs ʇuǝʌǝ ou uı ˙ʇuǝɯǝƃuıɹɟuıuou puɐ ǝsodɹnd ɹɐlnɔıʇɹɐd ɐ ɹoɟ
ssǝuʇıɟ 'ʎʇılıqɐʇuɐɥɔɹǝɯ ɟo sǝıʇuɐɹɹɐʍ ǝɥʇ oʇ pǝʇıɯıl ʇou ʇnq ƃuıpnlɔuı 'pǝıldɯı
ɹo ssǝɹdxǝ 'puıʞ ʎuɐ ɟo ʎʇuɐɹɹɐʍ ʇnoɥʇıʍ 'sı: command not found
Python is installed:
$ /usr/bin/python --version
Python 2.5.2
Ratings & Comments
3 Comments
X11 temporarily freezes and the cursor turns into a cross with which i can draw rectangles. This is what i get in the terminal when trying to run it: $ ./upsidedown.py ./upsidedown.py: line 1: #!/usr/bin/python: No such file or directory ./upsidedown.py: line 28: Simple program that flips the input on stdin for latin characters. Support for diacritics through combining diacritical marks. Depends on proper rendering though. 2008 Christoph Burgmer (uyhc@stud.uni-karlsruhe.de) ˙ǝɹɐʍʇɟos ǝɥʇ uı sƃuılɐǝp ɹǝɥʇo ɹo ǝsn ǝɥʇ ɹo ǝɹɐʍʇɟos ǝɥʇ ɥʇıʍ uoıʇɔǝuuoɔ uı ɹo ɟo ʇno 'ɯoɹɟ ƃuısıɹɐ 'ǝsıʍɹǝɥʇo ɹo ʇɹoʇ 'ʇɔɐɹʇuoɔ ɟo uoıʇɔɐ uɐ uı ɹǝɥʇǝɥʍ 'ʎʇılıqɐıl ɹǝɥʇo ɹo sǝƃɐɯɐp 'ɯıɐlɔ ʎuɐ ɹoɟ ǝlqɐıl ǝq sɹǝploɥ ʇɥƃıɹʎdoɔ ɹo sɹoɥʇnɐ ǝɥʇ llɐɥs ʇuǝʌǝ ou uı ˙ʇuǝɯǝƃuıɹɟuıuou puɐ ǝsodɹnd ɹɐlnɔıʇɹɐd ɐ ɹoɟ ssǝuʇıɟ 'ʎʇılıqɐʇuɐɥɔɹǝɯ ɟo sǝıʇuɐɹɹɐʍ ǝɥʇ oʇ pǝʇıɯıl ʇou ʇnq ƃuıpnlɔuı 'pǝıldɯı ɹo ssǝɹdxǝ 'puıʞ ʎuɐ ɟo ʎʇuɐɹɹɐʍ ʇnoɥʇıʍ 'sı: command not found Python is installed: $ /usr/bin/python --version Python 2.5.2
Nevermind, it was an encoding problem. Got it to work by re-downloading via "Save target as..." instead of copy-pasting.
Good. Hopefully this helps others having the same problem.