Kaixo!

On Sat, Oct 06, 2001 at 04:39:04AM -0700, Arash Zeini wrote:

> In order to get going with the Farsi translation of
> KDE we needed to make a keyboard layout for Farsi.

> key <AC03> {     [d, D], [  0x10006cc, Arabic_yeh     
>   ]       };
> 
> The charcters described in the hex format (here the
> farsi Yeh), are not supported and the cursor simply
...
> Furthermore the Arabic Reh, doesn't work too.!?
> 
> key <AB04> {     [v, V], [  Arabic_reh           ]    
>   };

And the Arabic_yeh ?


XFree86 supports it, provided that you are working under a locale that
has the needed chars (that is, an UTF-8 locale, eg fa_IR.UTF-8);
so you need to ensure that your system has both the libc and X11 definitions
for that locale right.

Now, it may be the KDE fault too.

KDE should use, when possible, the Xutf8LookupString functions to
read keyboard input, so it will be locale independent.

The last version of KDE2 didn't yet do that, that is a bit of a problem,
as most of KDE is locale independent, but keyboard input is not.

But the situation is even worst than that, KDE2 didn't used the real locale
value, but instead read the LANG variable and tried to guess the encoding
using a compiled in locale -> encodings table; that has been a problem
when european union locales switched to iso-8859-15 for the euro support,
the fact that KDE used its own table leaded to a lot of problems and
litterally thousands of messages around complaining about "impossible
to type the euro sign".
We submitted a small patch for KDE to use the nl_langinfo() function to
get the real charset used, instead of guessing, so probably any further
release of KDE after they received such patch should be better.

But in any case, with KDE2 you must have your locale set to one supporting
the characters you want to type (in your case an utf-8 locale).

I don't know about KDE3, but it would be very nice if it uses
Xutf8LookupString, so being truly locale independent.


To test your keyboard you can try in xterm, the result can be unreadable
on the screen depending on your version of xterm and/or your font selection;
but you can write in a file for example, and be sure of what your keyboard
is sending and if XFree86 recognizes it or not.
That is how I test keyboard layouts myself.

> Greetings,
> Arash
> 
> -- 
> 
> KDE Farsi Translation
> 
> __________________________________________________
> Do You Yahoo!?
> NEW from Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
> http://geocities.yahoo.com/ps/info1
> _______________________________________________
> I18n mailing list
> [EMAIL PROTECTED]
> http://XFree86.Org/mailman/listinfo/i18n

-- 
Ki �a vos v�ye b�n,
Pablo Saratxaga

http://www.srtxg.easynet.be/            PGP Key available, key ID: 0x8F0E4975

_______________________________________________
I18n mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/i18n

Reply via email to