Re: Issues with keyboard accelerators

2009-04-03 Thread Jorge González González
Thank you very much Simos.

Cheers.

El lun, 30-03-2009 a las 11:07 +, Simos escribió:
> 2009/3/30 Jorge González :
> > Hi all,
> >
> > I'm having some issues with keyboard accelerators. Recently some users
> > opened bugs concerning the usage of keyboard accelerators with letters
> > containing accents (ie.e _í, _á, etc); apparently they do not work,
> > however I'm quite sure I tried them long ago and they did work. How
> > are other teams that use accents (and such) dealing with this problem?
> > Are you avoiding using keyboard accelerators with these letters?
> > Should I report the bug to gtk?
> 
> It is indeed a bug. For our case, we (Greek team) try to avoid those
> characters when setting  accelerators for the reasons below.
> 
> The source of the problem relates to your keyboard layout, and the
> fact that it may require dead keys in order to print characters such
> as áéäẽ, etc.
> Due to the dead key sequence, it is currently not possible to do things like
> Alt +  + , the sequence is canceled as soon as
> Alt+dead_acute is pressed.
> 
> If however you could get á in your keyboard layout by pressing a
> single key (that is, no need for dead key), then the accelerator would
> simply work.
> 
> Is it a GTK+ bug or a Xorg bug?
> 
> GTK+ could be modified so that when it sees "_árbol", it would
> actually register it as if it work "_arbol", so pressing Alt+a would
> simply work.
> The downside is that it would not be able to distinguish between áäãâà, etc.
> Would that be a realistic problem however?
> 
> Would we want users to have to press Alt++a in order to
> get to the accelerator? With some layouts, you get  when
> you press AltGr+, so the full keyboard sequence is
> Alt+(AltGr++).
> 
> I think I have seen a report about this but I cannot find it at gtk+,
> component: input-methods. It might actually be a report at
> freedesktop.org, so you might want to have a look there. The sequence
> Alt++ might actually fail due to the X server cutting
> the sequence once the deadkey is pressed.
> 
> Hope this helps,
> Simos
-- 
Jorge González González 
Weblog: http://aloriel.no-ip.org
Fotolog: http://www.flickr.com/photos/aloriel

___
gnome-i18n mailing list
gnome-i18n@gnome.org
http://mail.gnome.org/mailman/listinfo/gnome-i18n


Re: Issues with keyboard accelerators

2009-03-30 Thread Claude Paroz
Le lundi 30 mars 2009 à 22:28 +0100, Simos a écrit :
[snip]
> I added the text at
> http://live.gnome.org/SimosXenitellis/KeyboardAcceleratorsAndAccents
> I did not see a canonical location on live.gnome.org to put the text.
> Where would it be good to move the page to?

I'd suggest to add it as a new paragraph to the Localisation Guide.
http://live.gnome.org/TranslationProject/LocalisationGuide

There is a bullet in "Other hints" that talks about it already. You
could merge it with your contents.

Claude

___
gnome-i18n mailing list
gnome-i18n@gnome.org
http://mail.gnome.org/mailman/listinfo/gnome-i18n


Re: Issues with keyboard accelerators

2009-03-30 Thread Anna Jonna Armannsdottir
On mán, 2009-03-30 at 10:27 +0200, Jorge González wrote:
> I'm having some issues with keyboard accelerators. Recently some users
> opened bugs concerning the usage of keyboard accelerators with letters
> containing accents (ie.e _í, _á, etc); apparently they do not work,
> however I'm quite sure I tried them long ago and they did work. How
> are other teams that use accents (and such) dealing with this problem?
> Are you avoiding using keyboard accelerators with these letters?

Hi all, 
the icelandic language has lots of accented letters and also letters
that do not belong to the {a-z} domain. Letters such as ðþæö and its
uppercase representations, are produced by pressing a single key. 

The menu item Tools translates to  "Áhöld" and one of our translators
has resorted to solutions like "Áhöld (_A)"

In our translations we avoid accelerators that are not in the {a-z, A-Z}
domain. Letters like þæö are transcribed to the UTF8 ligatures,
(th,ae,o) and then we use the first letter of the ligature. 

Another approach was to use exactly the same accelerators as in the
english version. In that case the translation of Tools would be "Áhöld
(_T)" . 

Some people do not like to use a program in their own languange, because
the accelerators are different from english. In order to promote the use
of application translations, I approve of the translators decision, to
preserve the original english accelerators. 

-- 
Anna Jonna Ármannsdóttir coordinator 
The Icelandic GNOME Localisation team 
http://l10n.gnome.org/teams/is was 11% translated

___
gnome-i18n mailing list
gnome-i18n@gnome.org
http://mail.gnome.org/mailman/listinfo/gnome-i18n


Re: Issues with keyboard accelerators

2009-03-30 Thread Danilo Šegan
Hi Simos,

Yesterday at 13:07, Simos wrote:

> GTK+ could be modified so that when it sees "_árbol", it would
> actually register it as if it work "_arbol", so pressing Alt+a would
> simply work.
> The downside is that it would not be able to distinguish between áäãâà, etc.
> Would that be a realistic problem however?

Yes. With eg. Serbian Latin keyboard layout (and translation), š and s
are totally different letters, as are č, ć and c (with distinct
positions on the keyboard).

> Would we want users to have to press Alt++a in order to
> get to the accelerator? With some layouts, you get  when
> you press AltGr+, so the full keyboard sequence is
> Alt+(AltGr++).
>
> I think I have seen a report about this but I cannot find it at gtk+,
> component: input-methods. It might actually be a report at
> freedesktop.org, so you might want to have a look there. The sequence
> Alt++ might actually fail due to the X server cutting
> the sequence once the deadkey is pressed.

One can always modify a keymap to treat a dead key as another modifier
that uses a new level (with XKB, you can have up to 64 levels, if I am
not mistaken and/or confusing it with groups which you can have up to
8).

We've tried doing something similar for Ctrl key for Serbian before,
but that conflicted Gtk+'s special handling of Ctrl key.  With dead
keys, you should not have that many problems, but you might need to
provide a new level for each of the dead keys.

Cheers,
Danilo
___
gnome-i18n mailing list
gnome-i18n@gnome.org
http://mail.gnome.org/mailman/listinfo/gnome-i18n


Re: Issues with keyboard accelerators

2009-03-30 Thread Simos
On Mon, Mar 30, 2009 at 8:23 PM, Claude Paroz  wrote:
> Le lundi 30 mars 2009 à 11:07 +, Simos a écrit :
>> 2009/3/30 Jorge González :
>> > Hi all,
>> >
>> > I'm having some issues with keyboard accelerators. Recently some users
>> > opened bugs concerning the usage of keyboard accelerators with letters
>> > containing accents (ie.e _í, _á, etc); apparently they do not work,
>> > however I'm quite sure I tried them long ago and they did work. How
>> > are other teams that use accents (and such) dealing with this problem?
>> > Are you avoiding using keyboard accelerators with these letters?
>> > Should I report the bug to gtk?
>>
>> It is indeed a bug. For our case, we (Greek team) try to avoid those
>> characters when setting  accelerators for the reasons below.
>>
>> The source of the problem relates to your keyboard layout, and the
>> fact that it may require dead keys in order to print characters such
>> as áéäẽ, etc.
>> Due to the dead key sequence, it is currently not possible to do things like
>> Alt +  + , the sequence is canceled as soon as
>> Alt+dead_acute is pressed.
>>
>> If however you could get á in your keyboard layout by pressing a
>> single key (that is, no need for dead key), then the accelerator would
>> simply work.
>>
>> Is it a GTK+ bug or a Xorg bug?
>>
>> GTK+ could be modified so that when it sees "_árbol", it would
>> actually register it as if it work "_arbol", so pressing Alt+a would
>> simply work.
>> The downside is that it would not be able to distinguish between áäãâà, etc.
>> Would that be a realistic problem however?
>>
>> Would we want users to have to press Alt++a in order to
>> get to the accelerator? With some layouts, you get  when
>> you press AltGr+, so the full keyboard sequence is
>> Alt+(AltGr++).
>>
>> I think I have seen a report about this but I cannot find it at gtk+,
>> component: input-methods. It might actually be a report at
>> freedesktop.org, so you might want to have a look there. The sequence
>> Alt++ might actually fail due to the X server cutting
>> the sequence once the deadkey is pressed.
>>
>> Hope this helps,
>
> Yes, this helps :-) It would be cool if this could be at least
> documented in our Wiki.

Thanks.

I added the text at
http://live.gnome.org/SimosXenitellis/KeyboardAcceleratorsAndAccents
I did not see a canonical location on live.gnome.org to put the text.
Where would it be good to move the page to?

Simos
___
gnome-i18n mailing list
gnome-i18n@gnome.org
http://mail.gnome.org/mailman/listinfo/gnome-i18n


Re: Issues with keyboard accelerators

2009-03-30 Thread Claude Paroz
Le lundi 30 mars 2009 à 11:07 +, Simos a écrit :
> 2009/3/30 Jorge González :
> > Hi all,
> >
> > I'm having some issues with keyboard accelerators. Recently some users
> > opened bugs concerning the usage of keyboard accelerators with letters
> > containing accents (ie.e _í, _á, etc); apparently they do not work,
> > however I'm quite sure I tried them long ago and they did work. How
> > are other teams that use accents (and such) dealing with this problem?
> > Are you avoiding using keyboard accelerators with these letters?
> > Should I report the bug to gtk?
> 
> It is indeed a bug. For our case, we (Greek team) try to avoid those
> characters when setting  accelerators for the reasons below.
> 
> The source of the problem relates to your keyboard layout, and the
> fact that it may require dead keys in order to print characters such
> as áéäẽ, etc.
> Due to the dead key sequence, it is currently not possible to do things like
> Alt +  + , the sequence is canceled as soon as
> Alt+dead_acute is pressed.
> 
> If however you could get á in your keyboard layout by pressing a
> single key (that is, no need for dead key), then the accelerator would
> simply work.
> 
> Is it a GTK+ bug or a Xorg bug?
> 
> GTK+ could be modified so that when it sees "_árbol", it would
> actually register it as if it work "_arbol", so pressing Alt+a would
> simply work.
> The downside is that it would not be able to distinguish between áäãâà, etc.
> Would that be a realistic problem however?
> 
> Would we want users to have to press Alt++a in order to
> get to the accelerator? With some layouts, you get  when
> you press AltGr+, so the full keyboard sequence is
> Alt+(AltGr++).
> 
> I think I have seen a report about this but I cannot find it at gtk+,
> component: input-methods. It might actually be a report at
> freedesktop.org, so you might want to have a look there. The sequence
> Alt++ might actually fail due to the X server cutting
> the sequence once the deadkey is pressed.
> 
> Hope this helps,

Yes, this helps :-) It would be cool if this could be at least
documented in our Wiki.

Claude

___
gnome-i18n mailing list
gnome-i18n@gnome.org
http://mail.gnome.org/mailman/listinfo/gnome-i18n


Re: Issues with keyboard accelerators

2009-03-30 Thread Simos
2009/3/30 Jorge González :
> Hi all,
>
> I'm having some issues with keyboard accelerators. Recently some users
> opened bugs concerning the usage of keyboard accelerators with letters
> containing accents (ie.e _í, _á, etc); apparently they do not work,
> however I'm quite sure I tried them long ago and they did work. How
> are other teams that use accents (and such) dealing with this problem?
> Are you avoiding using keyboard accelerators with these letters?
> Should I report the bug to gtk?

It is indeed a bug. For our case, we (Greek team) try to avoid those
characters when setting  accelerators for the reasons below.

The source of the problem relates to your keyboard layout, and the
fact that it may require dead keys in order to print characters such
as áéäẽ, etc.
Due to the dead key sequence, it is currently not possible to do things like
Alt +  + , the sequence is canceled as soon as
Alt+dead_acute is pressed.

If however you could get á in your keyboard layout by pressing a
single key (that is, no need for dead key), then the accelerator would
simply work.

Is it a GTK+ bug or a Xorg bug?

GTK+ could be modified so that when it sees "_árbol", it would
actually register it as if it work "_arbol", so pressing Alt+a would
simply work.
The downside is that it would not be able to distinguish between áäãâà, etc.
Would that be a realistic problem however?

Would we want users to have to press Alt++a in order to
get to the accelerator? With some layouts, you get  when
you press AltGr+, so the full keyboard sequence is
Alt+(AltGr++).

I think I have seen a report about this but I cannot find it at gtk+,
component: input-methods. It might actually be a report at
freedesktop.org, so you might want to have a look there. The sequence
Alt++ might actually fail due to the X server cutting
the sequence once the deadkey is pressed.

Hope this helps,
Simos
___
gnome-i18n mailing list
gnome-i18n@gnome.org
http://mail.gnome.org/mailman/listinfo/gnome-i18n