Xcalc problem solved, Xcalc problem created
Posted: Fri 18 Jan 2008, 23:59
Am I the first non-native English person trying to use decimal calculations with xcalc?
The decimal separator for English people is the period ".". For other countries like the locale de_DE the decimal separator is the comma ",".
If those people call xcalc preinstalled in Puppy 3.01 the following behaviour can be watched:
Entering '3' '.' '4' displays "3.4".
Adding '2' '.' '8' displays "2.8" and results in "5".
Divding '5' '/' '4' results in "1,25".
Entering '3' ',' '4' displays "3".
So obviously the preinstalled xcalc uses the decimal comma for results, but it does not allow to enter the comma as decimal separator.
A look at the modification time of xcalc shows June 14 2004.
So assuming maybe this version is a bit outdated I did the following steps:
1. Download the sources xcalc-1.0.1.tar.bz2 from the mirror t2/source/6.0/x.
2. Run confgure and make from devx_301.sfs.
3. The linker complains about the missing library Xaw7.
4. After patching the library Xaw7 to Xaw8 within the Makefile "make" builds xcalc.
Calling the new xcalc version the following valid behaviour can be watched :
Entering '3' '.' '4' displays "3,4".
Adding '2' '.' '8' displays "2,8" and results in "6,2".
Adding the two lines to the resource file /usr/X11R7/lib/X11/app-defaults/Xcalc after
XCalc*ti.bevel.screen.LCD.translations: #replace\n\
:<Key>\\,:decimal()\n\
<Key>Return:equal()\n\
makes it possible to enter the comma as decimal separator and to use the RETURN-key to calculate the result (default is ENTER or '=' only).
So even if xcalc now can be used in localized Puppy versions the look has changed.
At the left you can see the preinstalled xcalc with the invalid decimal point and a three dimensional look of the buttons.
At the right is the new compiled xcalc with the decimal comma, a rather basic look and a little bit longer.
Both programs use /usr/X11R7/lib/X11/app-defaults/Xcalc as resource.
I am not an X11-expert at all. So maybe some experienced user can answer my two questions:
1. What leads to that different look of my xcalc?
2. What does the warning mean "Cannot convert string "calculator" to type Pixmap" if any of these two versions is called from a console?
The decimal separator for English people is the period ".". For other countries like the locale de_DE the decimal separator is the comma ",".
If those people call xcalc preinstalled in Puppy 3.01 the following behaviour can be watched:
Entering '3' '.' '4' displays "3.4".
Adding '2' '.' '8' displays "2.8" and results in "5".
Divding '5' '/' '4' results in "1,25".
Entering '3' ',' '4' displays "3".
So obviously the preinstalled xcalc uses the decimal comma for results, but it does not allow to enter the comma as decimal separator.
A look at the modification time of xcalc shows June 14 2004.
So assuming maybe this version is a bit outdated I did the following steps:
1. Download the sources xcalc-1.0.1.tar.bz2 from the mirror t2/source/6.0/x.
2. Run confgure and make from devx_301.sfs.
3. The linker complains about the missing library Xaw7.
4. After patching the library Xaw7 to Xaw8 within the Makefile "make" builds xcalc.
Calling the new xcalc version the following valid behaviour can be watched :
Entering '3' '.' '4' displays "3,4".
Adding '2' '.' '8' displays "2,8" and results in "6,2".
Adding the two lines to the resource file /usr/X11R7/lib/X11/app-defaults/Xcalc after
XCalc*ti.bevel.screen.LCD.translations: #replace\n\
:<Key>\\,:decimal()\n\
<Key>Return:equal()\n\
makes it possible to enter the comma as decimal separator and to use the RETURN-key to calculate the result (default is ENTER or '=' only).
So even if xcalc now can be used in localized Puppy versions the look has changed.
At the left you can see the preinstalled xcalc with the invalid decimal point and a three dimensional look of the buttons.
At the right is the new compiled xcalc with the decimal comma, a rather basic look and a little bit longer.
Both programs use /usr/X11R7/lib/X11/app-defaults/Xcalc as resource.
I am not an X11-expert at all. So maybe some experienced user can answer my two questions:
1. What leads to that different look of my xcalc?
2. What does the warning mean "Cannot convert string "calculator" to type Pixmap" if any of these two versions is called from a console?