After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 546819 - Difficulty in entering '^' in some locales
Difficulty in entering '^' in some locales
Status: RESOLVED FIXED
Product: gnome-calculator
Classification: Core
Component: general
5.22.x
Other Linux
: Normal normal
: ---
Assigned To: gcalctool maintainers
gcalctool maintainers
: 590620 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2008-08-07 14:59 UTC by Diego J.
Modified: 2009-09-18 23:22 UTC
See Also:
GNOME target: ---
GNOME version: 2.21/2.22


Attachments
Supports '^' keycode used in some locales (German, Spanish...) and converts two consecutive '*' to '^' (1.42 KB, patch)
2009-09-18 01:11 UTC, Robert Ancell
none Details | Review

Description Diego J. 2008-08-07 14:59:07 UTC
10^12 give 1 000 000 000 000 000 000 (18 zeros)
and should give only 12 zeros

10^6 works fine
10^18 also doesnt, gives 18+6 zeros


Also i would like to ask for support of pythons power expression:

10**12
10**6

It is much easier to write with the keyboard than moving with the keys
or clicking in the xy symbol.
Also pressing ^ doesnt work, maybe because in my keyboard i habe to
write it by pressing Shift.

Cheers.
Comment 1 Robert Ancell 2008-08-18 23:06:38 UTC
Hi Diego,

Were you in hexadecimal mode? In hex 10^12 has 18 zeros.

The ^ symbol should work, what version are you using (help->about)? What language are you using?

Thanks,
--Robert
Comment 2 Diego J. 2008-08-18 23:14:31 UTC
Yep, testing right now it seems like it works fine. How stupid i am? :P

The symbol ^ doesnt work with my keyboard and requires to keep pressed Shift.

Version 5.22.3

Thanks.
Comment 3 Robert Ancell 2008-09-23 10:14:56 UTC
Not 100% sure what you mean about the ^ key. On my keyboard (US) I press shift-6 so I have to hold down shift. Does the ^ key work in other programs (e.g. gedit)? Check you don't have caps lock on as there was a bug since fixed that would stop some keys working.
Comment 4 Rich Burridge 2008-09-23 18:22:42 UTC
My guess is that Diego has a keyboard layout where "^" is not a shifted key
and therefore:

    {KEY_X_POW_Y,            "x_pow_y",
    { GDK_SHIFT_MASK, GDK_SHIFT_MASK,  0 },
    { GDK_caret,      GDK_asciicircum, 0 }},

doesn't work properly.
Comment 5 Diego J. 2008-09-24 02:29:09 UTC
In my keyboard (spanish) the key is at the right of the "P" letter and
i have to hold down SHIFT. You can see it in the keyboard setup tool of gnome and adding a spanish keyboard.

I have to Press SHIFT+^ but for it to be drawn in any text
box i have to press a space or any other letter, but if i press the
number "2", it writes an upper 2 which is not recogniced by most
mathematical languages.

So, in any editor to do X^Y it is always:
PRESS "X"
HOLD SHIFT
PRESS "^"
PRESS SPACE
PRESS "Y"

Very tedious when you write a lot of formulas.

In gcalctool write 10^2 must be do by clicking with the mouse, at least with my keyboard.
In Python they invented the use of asterisk as power ** which is a very
good idea because then you can only use the numpad to do much more
calculations. Its more confortable.

Cheers.
Comment 6 Robert Ancell 2009-02-28 06:42:10 UTC
Updating to reflect this is a feature request, i.e.

1. It can be hard to type '^' in some locales
2. It may be nice to use python style powers (i.e. '^' == '**')
Comment 7 Robert Ancell 2009-09-18 01:08:10 UTC
*** Bug 590620 has been marked as a duplicate of this bug. ***
Comment 8 Robert Ancell 2009-09-18 01:11:33 UTC
Created attachment 143413 [details] [review]
Supports '^' keycode used in some locales (German, Spanish...) and converts two consecutive '*' to '^'
Comment 9 Robert Ancell 2009-09-18 01:17:16 UTC
Hard code freeze break requested:

"Hi,

A bug [1] has been reported against gcalctool 5.27.92 (and earlier)
showing that the power key '^' is unable to be entered in some
keyboard layouts (e.g. German, Spanish etc).  This is a feature that
has been broken since at least 2.22 and causes difficulty for
non-English layout users.

The attached patch fixes this problem by catching the keycode that is
being used in these layouts and also converting two consecutive '*' to
a '^'.  I am the maintainer of gcalctool and I approve this patch.

[1] https://bugzilla.gnome.org/show_bug.cgi?id=546819

Thanks,
--Robert Ancell
GCalctool Maintainer"

If allowed this will be in 2.28.0, otherwise 2.28.1.