Re: A simple question about hebrew in terminal

2009-06-25 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


Re: A simple question about hebrew in terminal

2009-06-25 Thread Michael Vasiliev
Herouth Maoz wrote:
 Quoting Dan Shimshoni danshi...@gmail.com:

 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.

Not all MC versions with the the same version number are born equal.
Some distros such as RH went as far as writing their own patches to MC
for UTF-8 support and better looks.

-- 
Sincerely yours,
Michael Vasiliev

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


A simple question about hebrew in terminal

2009-06-24 Thread 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.

Rgs,
D

___
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 danshi...@gmail.com:


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: 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 danshi...@gmail.com:

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