On Sun, Jun 22, 2003 at 11:10:35AM +0300, Christoph Bugel wrote:
> On 2003-06-19  Tzafrir Cohen wrote:
> > On Thu, Jun 19, 2003 at 11:57:52AM +0300, Christoph Bugel wrote:
> > 
> > > Naturally, I wanted to write my email in *hebrew*.  I must
> > > admit that I didn't know how to do this in my favorite email
> > > client: xterm+mutt+vim, 
> > 
> > Need help?
> > 
> > (If so: in what environment do you work, and what is the output of
> > 'locale'?)
> 
> Thanks, I got some tips from Dan Kenigsberg and now I have the basic
> stuff working :) Thanks!
> 
> summary:
> 
> - I use xterm -fn 8x13. (well actually, I added XTerm*font1: heb8x13
>   to my .Xresources, and now when I choose the xterm 'Unreadable'
>   font from the xterm menu, I get the hebrew font :)

XTerm*fontMenu*font1*Label: ReadableHebrew

> - I recompiled vim with rightleft support
> - I added LESSCHARSET=latin1 to my environment (otherwise less
>   refused to show the non-ascii characters)

Because you refuse to let your environment include Hebrew characters.

> - for some reason I had ":set encoding=utf8" in my .vimrc -- had to
>   remove that for vim to show hebrew ...
> - added a mapping in vim:  map  <F12>  :set invrl invhk
> - added another mapping to filter all vim text through bidiv..
> - addded to .muttrc set charset="iso-8859-8-i"
> 
> BTW, my locale is still "C" and the above works fine. Is there a
> good reason to chanmge it to something else?

How about typing Hebrew in anything but vim?

(Actually, with most program nowadays: mozilla, QT/KDE >= 2, gtk >=2,
OpenOffice, this is no longer an issue. Still Hebrew environment vars
are a good hint to sane programs defaults, e.g: fonts of gtk programs)

-- 
Tzafrir Cohen                       +---------------------------+
http://www.technion.ac.il/~tzafrir/ |vim is a mutt's best friend|
mailto:[EMAIL PROTECTED]       +---------------------------+

=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to