Link to home
Start Free TrialLog in
Avatar of geldfeld
geldfeld

asked on

How Do I Mirror Text

I would like to mirror text. I would like the text to appear as it would in a mirror.

I do not want to know how to reverse the order of the text.

I am using Linux. Ideally I would like this to work in the terminal or a web browser.

I am different to the programming language or technique employed as long as the solution works on a Linux box or in a web browser.

Avatar of y_dub
y_dub
Flag of Norway image

You can use python to do this:

echo 'toydi deified idiot' | python -c "print raw_input()[::-1]"

source:
http://linux.byexamples.com/archives/97/reverse-a-string/
ASKER CERTIFIED SOLUTION
Avatar of hemmi
hemmi
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of geldfeld
geldfeld

ASKER

- The command did as you had described. Thank you. To get the right output name one needs to type xrandr -q.
- This provides a list of output names which are different from computer to computer.

Is there way to obtain the reverse text effect without flipping every pixel in the scren. Previous solutions I have seen have involved Visual Basic and a font with the mirrored characters.  Is there a way to do this in Linux with the following constraints.

1.  Not have to require QT,GTK toolkits. These toolkits provide means to mirror objects inclouding text.

2. Using any of the scripting languages:  Perl, Python or Ruby and again without using the GUI.
Your problem condenses into the existence of mirrored fonts that you could use for some text terminal application.
You could install a mirrored font:
http://www.fontemple.com/search.php?key=mirror&submit=Search
Make a text termanl use that font and display the text backward.