Re: A simple question about hebrew in terminal

2009-06-24 Thread Herouth Maoz

Quoting Dan Shimshoni :


Hello,
 I have support in hebrew on my Linux desktop (Fedora 10).
I can switch to hebrew with the keyboard indicator and it works.

Say I want to perform a simple operation in terminal: rename a file
named a.txt to קובץ.txt


I type:
"mv a.txt" and then, when I type: ק and then ו and then "ב" and then
"ץ" it shows:
 ץבוק

I can of course write the letters in reverse order, but this is not
comfortable to do it for each rename
operation.

Is there a way to solve this ? If I am not wrong I heard about some
BIDI support, but it seems to me that this BIDI support is for some
specific word processing/editors. I an talking about the
gnome-terminal.


First, I wouldn't worry about it. The name of the file is OK - the  
letters are entered into the directory in the correct order, and if  
you show it in a BiDi aware application (say, konqueror or whatever  
file explorer you use), it will show properly.


There are terminal applications that support BiDi. This is usually not  
a very good idea because it tends to confuse issues with the cursor  
and mess up curses-based applications.


Personally, I actually prefer to work in non BiDi aware apps to enter  
data (e.g. Write HTML or localization files or whatnot). It's easier  
to tell which character is the 10th from the quote etc. even in a  
mixed string.


___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Linux-HA [Was: High availability virtual ip]

2009-06-24 Thread Oleg Goldshmidt
2009/6/24 Michael Tewner :

> I you would like to also manage cluster resources, Linux-HA is your best
> solution. I would agree that it has a steep learning curve, and it's a pain,
> but it does exactly what you want, and more. It will handle all of your
> cluster resources - We've used it for MySQL, DRBD, OCFS2, Asterisk, and
> others.

Since I was the one who mentioned Linux-HA/heartbeat in the first
place, I feel compelled to say that

0) I have no affiliation or vested interest in Linux-HA, and I am not
going to take the job of its public defender on.

1) I cannot comment on the problems that Itay et al. had since I don't
know what they were and don't understand some of the (incomplete) use
case descriptions. See item 0 above, thorough investigations can go to
the appropriate Linux-HA forums.

2) My experiences with Linux-HA were separated in time by a few years
and have always been in the context of HA of quite a bit more than
just IP address, including DRBD, etc., for management (i.e., no
serious high performance server traffic requirements, no "five nines"
or anything like that, only "we need HA of management systems"; DRBD
integration was a big draw.). It is certainly possible that if one
needs only a virtual IP there are other solutions. I mentioned it
because I knew that virtual IP was one of the things it did.

3) Allow me to take the claims of "too steep learning curve" with a
grain of salt. The last time I recall (a year, maybe less, ago) it
took a *competent* person a few hours from "never heard of Linux-HA"
to reading the docs, installing and configuring it, integrating it
with a very non-trivial server application, verifying in the lab,
demoing live that it works, and being very satisfied the experience.
This included IP address HA, uninterrupted client sessions through
failover, live replication of configuration changes, contiguous
real-time management of a complicated network infrastructure through
failover, etc.

-- 
Oleg Goldshmidt | o...@goldshmidt.org

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: A simple question about hebrew in terminal

2009-06-24 Thread Dan Shimshoni
>and if you show it in a BiDi aware application (say, konqueror >or whatever 
>file explorer you use), it will show properly.

It is true that if I try to browse the contents of this directory with
mozilla for example, it shows indeed :
File:קובץ.a

However, when I try to look at the contents of that directory using
midnight commander, it shows garbage.
something like: ץ???ק.a

And it is important for me to view the contents of directories with
hebrew file names properly with midnight commander as it is my daily
file management app.

Any ideas?

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: A simple question about hebrew in terminal

2009-06-24 Thread Herouth Maoz

Quoting Dan Shimshoni :

and if you show it in a BiDi aware application (say, konqueror >or   
whatever file explorer you use), it will show properly.


It is true that if I try to browse the contents of this directory with
mozilla for example, it shows indeed :
File:קובץ.a

However, when I try to look at the contents of that directory using
midnight commander, it shows garbage.
something like: ץ???ק.a

And it is important for me to view the contents of directories with
hebrew file names properly with midnight commander as it is my daily
file management app.


seems that midnight commander has an encoding rather than BiDi issue.  
You should look for a way to set up its encoding, to be aware of UTF-8  
file names.


Herouth

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: A simple question about hebrew in terminal

2009-06-24 Thread Tzafrir Cohen
On Wed, Jun 24, 2009 at 09:32:34AM +0300, Dan Shimshoni wrote:
> Hello,
>  I have support in hebrew on my Linux desktop (Fedora 10).
> I can switch to hebrew with the keyboard indicator and it works.
> 
> Say I want to perform a simple operation in terminal: rename a file
> named a.txt to קובץ.txt
> 
> 
> I type:
> "mv a.txt" and then, when I type: ק and then ו and then "ב" and then
> "ץ" it shows:
>  ץבוק
> 
> I can of course write the letters in reverse order, but this is not
> comfortable to do it for each rename
> operation.

Why not use tab completion?

-- 
Tzafrir Cohen | tzaf...@jabber.org | VIM is
http://tzafrir.org.il || a Mutt's
tzaf...@cohens.org.il ||  best
ICQ# 16849754 || friend

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il