Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Hello, I have mandrake 10.1. While installing it, i chose support for both English and Arabic ( I have UTF-8 as default). When I open a file using vi, I get arabic letter written form left to right while they should be written from right to left.
Would anyone know how to fix this problem
Hmm. Maybe make an alias for another command? Do you mind typing a separate command for arabic and english files?
It looks like you can change modes in realtime (in vi) by typing (first to set right-to-left mode, second to unset it)
If that isn't to your liking, perhaps there's a program out there that detects if your files are arabic or english, and I could help you write a script to use that program, so that vi autodetects which one it should use.
I don't think it will autodetect for you and switch the mode for you, but try those commands, they're commands you type from within vi ":set rl" and ":set norl" - that at least lets you switch modes manually while you're editing a file.
Yes, that is working. I just have one more question. The file I mentioned is actually an English to Arabic dictionary. When I look up this file for words, will it know how to read them (L->R or R->L).
Thanks for your help
I assume so. I read somewhere that "right-to-left" text is still stored like it should be (the first symbol in a right-to-left text line is on the right, and stored file-wise at the beginning of the file, but the program that displays the line knows to display it right-to-left instead of left-to-right).
I would try it out with a couple of words and make sure it works though before you get too far!
Just for anyone who has the same issue. In the console, if you go to settings, then configure console, you can check "allow bidirectional text rendering". You will be able to read a language that read from left to right and another that reads from right to left in the same file.
I haven't tried reading from a file yet. I will have to check that out.
Thanks for your help .