| Author |
Message |
Wosh

Joined: 09 Jul 2007 Posts: 60 Location: Nuremberg Germany
|
Posted: Fri 18 Jan 2008, 19:59 Post subject:
Xcalc problem solved, Xcalc problem created Subject description: Solved: xcalc using decimal different from "period". Solved!!!: Different look for xcalc. |
|
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?
 |
| Description |
|
| Filesize |
15.98 KB |
| Viewed |
370 Time(s) |

|
_________________ Wosh
Last edited by Wosh on Fri 18 Jan 2008, 20:40; edited 2 times in total
|
|
Back to top
|
|
 |
MU

Joined: 24 Aug 2005 Posts: 13642 Location: Karlsruhe, Germany
|
Posted: Fri 18 Jan 2008, 20:11 Post subject:
|
|
I think it was compiled with libXaw95.
That is a library that was used by the windowmanager Fvwm95, that tried to mimic Win95 look. It was used in early versions of Puppy.
libXaw95.so should be in /usr/X11R7/lib
Mark
|
|
Back to top
|
|
 |
Wosh

Joined: 09 Jul 2007 Posts: 60 Location: Nuremberg Germany
|
Posted: Fri 18 Jan 2008, 20:35 Post subject:
The reason is libXaw95 Subject description: Download localisized xcalc |
|
Thanks Mark
I have replaced Xaw7 with Xaw95 within the xcalc Makefile and now xcalc has the same look as the preinstalled one.
So maybe Barry will take pity on the not English speaking world and recompile xcalc.
If not, here is the localisized xcalc compiled with Xaw95:
| Description |
|

Download |
| Filename |
xcalc.zip |
| Filesize |
9.87 KB |
| Downloaded |
230 Time(s) |
|
|
Back to top
|
|
 |
MU

Joined: 24 Aug 2005 Posts: 13642 Location: Karlsruhe, Germany
|
Posted: Fri 18 Jan 2008, 21:04 Post subject:
|
|
thank you, I will add it to the next german Muppy
Could you also upload the white one?
Some people might prefer that.
Mark
|
|
Back to top
|
|
 |
Wosh

Joined: 09 Jul 2007 Posts: 60 Location: Nuremberg Germany
|
Posted: Sat 19 Jan 2008, 15:38 Post subject:
Localisized xcalc in both forms Subject description: Use what you want. |
|
Hello Mark, hello world
Working on this topic I have become curious.
Maybe some experienced X11 programmer still can answer what the warning means "Cannot convert string "calculator" to type Pixmap"?
It's a reference to the third line in Xcalc:
XCalc.IconPixmap: calculator
I have created a small bzip2-tar-archive xcalc-local.tar.bz2 containing:
1. XCalc.............. modified resource-file
2. Xaw95/xcalc localisized xcalc with the look in Puppy 3.01
3. Xaw8/xcalc.. localisized xcalc with the previous basic look
All you must do:
Copy XCalc to /usr/X11R7/lib/X11/app-defaults
Copy xcalc to /usr/X11R7bin
I hope you enjoy calculations.
| Description |
|

Download |
| Filename |
xcalc-local.tar.bz2 |
| Filesize |
14.72 KB |
| Downloaded |
232 Time(s) |
_________________ Wosh
|
|
Back to top
|
|
 |
MU

Joined: 24 Aug 2005 Posts: 13642 Location: Karlsruhe, Germany
|
Posted: Sat 19 Jan 2008, 17:00 Post subject:
|
|
Danke Wosh
Mark
|
|
Back to top
|
|
 |
|