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 102928 - Use pango markup in power of expressions
Use pango markup in power of expressions
Status: RESOLVED FIXED
Product: gnome-calculator
Classification: Core
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: Rich Burridge
Rich Burridge
Depends on:
Blocks:
 
 
Reported: 2003-01-09 11:48 UTC by Christian Rose
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Christian Rose 2003-01-09 11:48:51 UTC
#: gcalctool/calctool.c:623
msgid "x^2"

#: gcalctool/calctool.c:625
msgid ""
"x^2\n"
"\n"
"Keyboard equivalent:   @\n"
"\n"
"Returns the square of the current displayed value."

#: gcalctool/calctool.c:1458
msgid "e^x"

#: gcalctool/calctool.c:1460
msgid ""
"e^x\n"
"\n"
"e to the x power\n"
"\n"
"Keyboard equivalent:   {\n"
"\n"
"Returns e raised to the power of the current displayed value."

#: gcalctool/calctool.c:1475
msgid "10^x"

#: gcalctool/calctool.c:1477
msgid ""
"10^x\n"
"\n"
"10 to the x power\n"
"\n"
"Keyboard equivalent:   }\n"
"\n"
"Returns 10 raised to the power of the current displayed value."

#: gcalctool/calctool.c:1492
msgid "y^x"

#: gcalctool/calctool.c:1494
msgid ""
"y^x\n"
"\n"
"y to the power of x\n"
"\n"
"Keyboard equivalent:   y\n"
"\n"
"Takes the last number entered and raises it to the power of the next number "
"entered.\n"
"\n"
"Example:\n"
"\n"
"        2 Y 3 = (returns 8)"

#: gcalctool/calctool.c:1956
msgid "2 ^ 20."


The existing gnome calculator makes use of pango markup for the power of
expressions, so that they can be written correctly:

  "x<sup>2</sup>"

etc. Probably something to consider for these messages.
Comment 1 Rich Burridge 2003-01-23 17:50:21 UTC
Fixed in v4.2.36 of gcalctool.
The x^2, e^x, 10^x and y^x keys now use Pango markup 
to display the label using superscripts.
Note that I couldn't see a way of using Pango markup
in the equivalent tooltip help for these buttons. If
you know how to do this, please let me know and I'll
adjust that accordingly too.