On Tue, 11 Feb 2003, Jonathan Ben Avraham wrote:

> On Tue, 11 Feb 2003, Shai Bentin wrote:
>
> > Hi all, I hope any of you can help...
> >
> > I use mandrake. I'm programming something in java that needs to get input in
> > hebrew.What happens is strange:
> >
> > Say I use, for example, a JtextField or JTextArea. I set the font, the default
> > locale... everything supports hebrew. more over, I also do "setText" and put
> > in unicode ("\u05d1\u05d2\u202c..."). When running I see the text in hebrew
> > displayed in the text input field with no problem. However, when typing
> > hebrew in the same field I see squares. When I type hebrew in other non java
> > applications it works.
> >
> > it looks like Java doesn't map the key typed correctly?
> >
> > in windows I have no problem with it....
> >
> > I should mention I use linux with sdk1.4.1...
>
> Hi Shai,
> This is a keyboard mapping problem. You need a keymap that maps to Unicode
> Hebrew. Otherwise you need to translate the keycodes inside your Java app.
> The squares are the fonts way to indicate that you entered keymap value
> outside of the range of the font. If I am not mistaken we use the keymap
> from Pango.org for our testing for Sun. I can get you a precise answer
> tomorrow.

The standard keymap from XFree contains correct Hebrew symbols.

If it works for KDE, gnome2 and mozilla, it should work for Java as well.

(older programs, such as XAW programs and gnome1 programs may get away
with the use of incorrect "8bit" symbols)

Note that for Hebrew there are specific keysyms, and direct use of unicode
chars.

-- 
Tzafrir Cohen
mailto:[EMAIL PROTECTED]
http://www.technion.ac.il/~tzafrir


=================================================================
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