On Tue, 22 Jan 2002, Ira Abramov wrote: > On Tue, 22 Jan 2002, Tzafrir Cohen wrote: > > > Other alternatives: get the latest xterm (supports unicode) and the patch > > for bidi (already built into mandrake's xterm). Or run it under biditext. > > Or use the editor called QEmacs. > > ran xterm +u8, double chars now show as single chars, at times with > funny spaces, and still the wrong font... I'll start messing around the > xterm definitions to have Hebrew display correctly in the Xterm if I > could at least make it display ok on Mozilla first (where Zvi's UTF-8 > pages do present correctly) > > > > as for editing UTF-8, ":set encoding=utf-8" does the trick of setting > > > the encoding entered, > > > > OK. It definitly needs updating. > > you mean it's not right? what IS the right way to enter UTF-8 Hebrew in > VI in that case? the docs for VIM 6 are 6-7 months old at most...
The way I do it, and I use UTF-8 now regularly in my xterm and vim, is to set LC_CTYPE to he_IL.UTF-8 . The UTF-8 extension make each xterm default to utf-8, and also Vim6, if compiled with features=big (you can check using :version), will give you encoding=utf-8 automatically. I the he_IL is so that I can use the hebrew keyboard outside vim, using the right-alt key, and the command which does this for me (in my .xsession) is setxkbmap -option grp:shift_toggle,grp_led:caps,grp:switch -model pc104 \ -rules xfree86 il (this was descussed awhile ago here). To edit hebrew inside vim, it is not needed. You can use the normal hebrew editing, as you do in iso-8859-8, with one difference: the default value of aleph, being 224, is suitable only for iso-8859-8. Therefore, I have in my vimrc the lines " Special setup for unicode aleph. The default value, 224, is suitable for " iso-8859-1 only!) if &encoding == "utf-8" set aleph=1488 endif I actually also have seveal map! statements for maqaf, geresh and gershayim. Lastly, I use digraphs for quotation marks. The latin double quotation mark are "6 on the left and "9 on the right, while in hebrew I use :9 on the right (which gives me U+201E I discussed earlier). By the way, I use LC_CTYPE and not LC_ALL as some prefer, since I use LC_COLLATE to be C, since I hate the English dictionary ordering of files in ls > > > > however I could not make it display it correctly > > > on Eterm, gnome-term or konsole > > > > I would try 'xterm -u8' and konsole, as they both should support unicode > > display. This also applies to the linux console, in a way. > > tried, it SEEMS to be ok, other than the font, like I said. > > > -- Dr. Zvi Har'El mailto:[EMAIL PROTECTED] Department of Mathematics tel:+972-54-227607 Technion - Israel Institute of Technology fax:+972-4-8324654 http://www.math.technion.ac.il/~rl/ Haifa 32000, ISRAEL "If you can't say somethin' nice, don't say nothin' at all." -- Thumper (1942) Tuesday, 9 Shevat 5762, 22 January 2002, 4:52PM ================================================================= 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]