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.

geldfeldAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

y_dubCommented:
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/
0
hemmiCommented:
It's funny. You write:
"I do not want to know how to reverse the order of the text."
And y_dub tells you how to reverse the order of the text ...

You can use the X server to mirror. Use the command
xrandr
to mirror the screen.

Type xrandr by itself to see the name of the output screen you want to mirror.
E.g. in case the screen is DVI-0
xrandr --output DVI-0 --reflect x
This will horizontally mirror.
See man xrandr for other mirror options.

Use
xrandr --output DVI-0 --reflect normal
to put it back to normal.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
geldfeldAuthor Commented:
- 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.
0
hemmiCommented:
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.

0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux Distributions

From novice to tech pro — start learning today.