Re: about gtk/_gtk_kegtkkeyhash.c:y_hash_lookup() and fuzzy matches



On Wed, 2006-08-16 at 23:02 +0200, didier . wrote:
> Hi
> 
> On 8/16/06, Owen Taylor <otaylor redhat com> wrote:
> >
> 
> >  - This behavior is desired and very useful for a long list of languages
> >    where *ALL USERS* have two keymaps, one for Latin and one the
> >    language's scripts. This includes: Cyrillic, Greek, Arabic, Hebrew.
> >
> >    It just isn't acceptable to have to switch to the other keyboard
> >    layout to use the menus, or to use editing hotkeys.
> I see,
> 
> >
> >  - Yes, it causes some problems for the small group of people who
> >    manually configure their keyboard to have two Latin layouts. If
> >    someone wants to  create a fix for that *without breaking the
> >    behavior where needed* that would be a great contribution.
> What about:
>               if (!have_exact && keyval > 0x7f) /* or 255 ? */
>                 {
>                   for (i = 0; i < entry->n_keys; i++)
> 
> Only use fuzzy matches if the group 0 is not ASCII?
> It seems to work here, I tested with Cyrillic/French and French/English.

It really needs to work both ways ... for non-latin accelerators when
the keyboard is in a latin layout as well as vice versa.

							- Owen

(Plus you need gdk_keyval_to_unicode() and a real script check ...)

Attachment: signature.asc
Description: This is a digitally signed message part



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]