[prev in list] [next in list] [prev in thread] [next in thread]
List: gtk-devel
Subject: Re: non-latin accelerator keys
From: Matthias Clasen <matthias.clasen () gmail ! com>
Date: 2005-12-27 18:20:19
Message-ID: cbccc63c0512271020r55952012x89e6a96ebef38ce9 () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
[Attachment #4 (text/plain)]
On 12/21/05, Abel Cheung <abelcheung@gmail.com> wrote:
>
> Hi,
>
> On 12/22/05, Matthias Clasen <mclasen@redhat.com> wrote:
> > http://bugzilla.gnome.org/show_bug.cgi?id=323956
> > http://bugzilla.gnome.org/show_bug.cgi?id=104112
> >
> > The first bug complains about the fact that the "(_F)" form in which
> > many CJK strings display the accelerator is not fully stripped out
> > when showing the string in a toolbar, and you end up with "(F)" in
> > the visible string.
> >
> > I am considering to change gtk_toolbar_elide_underscores() to strip not
> > only lone _ characters, but also a sequence of the form " (_<single
> > character>)" at the end of the string.
> >
> > I have a number of questions here:
> > - Does this sound like a reasonable thing to do ? (the risk of
> > accidentally stripping something thats not an accelerator is
> > probably minimal, but not 0.
>
> Indeed, there can be cases where a single CJK character is enclosed inside
> parenthesis, and that's not uncommon; although when enclosed
> character is a latin character it mostly means mnemonic key.
>
>
> > - Is the (_F) approach generally considered just a workaround for
> > the second bug, or are there languages where it is the
> > preferred/standard way to display accel keys ?
>
> Well, it is preferred, since multiple keystrokes are needed to input
> non-latin characters, and I doubt if anything like Alt-<char> can
> be entered at all. Hope anybody can enlighten me if this is
> possible or not.
Ok, GTK+ 2.10 will strip out a suffix of the form "(_<single character>)"
in
addition to underlines, when displaying labels in toolbars. Please let me
know if you
notice any problems due to this.
Matthias
[Attachment #5 (text/html)]
<br><br><div><span class="gmail_quote">On 12/21/05, <b class="gmail_sendername">Abel \
Cheung</b> <<a href="mailto:abelcheung@gmail.com">abelcheung@gmail.com</a>> \
wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, \
204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> Hi,<br><br>On 12/22/05, \
Matthias Clasen <<a href="mailto:mclasen@redhat.com">mclasen@redhat.com</a>> \
wrote:<br>> <a href="http://bugzilla.gnome.org/show_bug.cgi?id=323956">http://bugzilla.gnome.org/show_bug.cgi?id=323956
</a><br>> <a href="http://bugzilla.gnome.org/show_bug.cgi?id=104112">http://bugzilla.gnome.org/show_bug.cgi?id=104112</a><br>><br>> \
The first bug complains about the fact that the "(_F)" form in which<br> \
> many CJK strings display the accelerator is not fully stripped out<br>> when \
showing the string in a toolbar, and you end up with "(F)" in<br>> the \
visible string.<br>><br>> I am considering to change \
gtk_toolbar_elide_underscores() to strip not <br>> only lone _ characters, but \
also a sequence of the form " (_<single<br>> character>)" at the \
end of the string.<br>><br>> I have a number of questions here:<br>> - Does \
this sound like a reasonable thing to do ? (the risk of <br>> \
accidentally stripping something thats not an accelerator is<br>> \
probably minimal, but not 0.<br><br>Indeed, there can be cases where a single CJK \
character is enclosed inside<br>parenthesis, and that's not uncommon; although when \
enclosed <br>character is a latin character it mostly means mnemonic \
key.<br><br><br>> - Is the (_F) approach generally considered just a workaround \
for<br>> the second bug, or are there languages where it is \
the<br>> preferred/standard way to display accel keys ? <br><br>Well, \
it is preferred, since multiple keystrokes are needed to input<br>non-latin \
characters, and I doubt if anything like Alt-<char> can<br>be entered at all. \
Hope anybody can enlighten me if this is<br>possible or not. \
</blockquote><div><br><br>Ok, GTK+ 2.10 will strip out a suffix of the form \
"(_<single character>)" in<br>addition to underlines, when displaying \
labels in toolbars. Please let me know if you<br>notice any problems due to this. \
<br></div><br>Matthias<br></div><br>
_______________________________________________
gtk-devel-list mailing list
gtk-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-devel-list
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic