
Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net
This is a simple, but deceptively powerful calculator and unit converter. Unlike normal desktop calculators, it doesn't try to emulate the pocket calculator. Why emulate a pocket calculator when you've got a perfectly functional keyboard attached to your computer? This calculator is different. You can enter your calculation using mathematical symbols:
(4 + 5)/100
- or in words:
four plus five
- or do a units conversion:
2000 kilometers per hour in feet per year
- or a currency conversion:
3.5 USD in EUR
The theme uses either the bc program, or the google calculator to do the calculations, so you need to be connected to the net to run this theme.
The theme stores the last 10 calculations, so you can run them again, or edit them and then run them.
There is basic error checking for queries, including parentheses matching.
Use the keyword "ans" in your query, and the last result will be inserted in your query in place of "ans".
Don't forget if the input box loses focus, the tab key should restore focus.
13 years ago
4.2
Google changed the html for their calculator site and broke sKalcuverter. Now fixed.
4.1
Fixes a bug that led to a build up of "click here" text in the input box over a period of non-use.
4.0
This version brings a new look. I'm using a new input box technique, which allows for more intricate theming. Check out the screenshot above for the new look.
3.0
I've changed the name. It's probably a dorky name, but, it's more interesting than "superkaramba calculator".
There is a new calculation engine - bc. If it can, the theme will calculate a query using bc. If that fails, it will use the online google engine. This should speed up straight mathematical calculations.
2.0
I've added some basic error checking. The theme now checks for invalid characters, and parentheses mismatches.
The use of the keyword "ans" will be substituted for the last result, so that you can save typing if you are chaining queries together.
1.1 - Pressing enter after typing a query will send the request to the google site to solve the equation - means you don't have to use the mouse to click the button to submit a query.
1.0 - Initial release
13 years ago
4.2
Google changed the html for their calculator site and broke sKalcuverter. Now fixed.
4.1
Fixes a bug that led to a build up of "click here" text in the input box over a period of non-use.
4.0
This version brings a new look. I'm using a new input box technique, which allows for more intricate theming. Check out the screenshot above for the new look.
3.0
I've changed the name. It's probably a dorky name, but, it's more interesting than "superkaramba calculator".
There is a new calculation engine - bc. If it can, the theme will calculate a query using bc. If that fails, it will use the online google engine. This should speed up straight mathematical calculations.
2.0
I've added some basic error checking. The theme now checks for invalid characters, and parentheses mismatches.
The use of the keyword "ans" will be substituted for the last result, so that you can save typing if you are chaining queries together.
1.1 - Pressing enter after typing a query will send the request to the google site to solve the equation - means you don't have to use the mouse to click the button to submit a query.
1.0 - Initial release
SeaEagle
14 years ago
Version 4.0 looks great too!
Thanks for such a useful theme.
Report
Matti
14 years ago
Report
anupamsr
15 years ago
May I suggest one idea: since bc works in radian by default, adding the default variable Pi will be great
Report
Matti
15 years ago
Report
burt
15 years ago
Good Work. i hope you can make more of those useful themes.
Sorry for my bad English
Report
whieber
15 years ago
Report
Ricardo
15 years ago
When i downloaded this theme, I tried very simple matemathical expression and i wondered why it takes so long. When i looked at the script i have understand.
And i have few ideas about this theme:
1. Put some nice switch on theme, which should be able to switch between using google and bc ("bc -l"). It can save a lots of time. For example: it can be usefull when connection gets broken, and there's need to evaluate just mathematical expression.
2. Try to stop bad query as fast as it is possible. Eg. to have list of words that google accepts. It can usefull when user makes mistake like "eru" (instead of eur or euro).
Report
p0z3r
15 years ago
One note, can you make your text field interpret 'enter' as the submit actuator?
Report
Matti
15 years ago
Report
p0z3r
15 years ago
One of the two example input themes uses it.
Report
Matti
15 years ago
ta
Matt
Report
p0z3r
15 years ago
that's in the SK release package examples.
ord() gives a hex value of a char, and the enter key gives a 13.
Report
Matti
15 years ago
Sorry.
Matt
Report
p0z3r
15 years ago
Report
Matti
15 years ago
Report
p0z3r
15 years ago
Report