Source i (link to git-repo or to original if based on someone elses unmodified work):

Add the source-code for this project on opencode.net

0
Become a Fan
5.0

Description:
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.
Last changelog:

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


Ratings & Comments

16 Comments

SeaEagle

I'm based in Australia and spend a lot of time communicating with American & British people. sKalcuverter is really useful for converting between the different measurement systems used in each country. Version 4.0 looks great too! Thanks for such a useful theme.

Matti

Thanks.

anupamsr

Really awesome work. May I suggest one idea: since bc works in radian by default, adding the default variable Pi will be great

Matti

google has the default variable of "pi".

burt

this is a realy gret theme some of the best i think. I like it that you can see how much a usd in Euro is. Good Work. i hope you can make more of those useful themes. Sorry for my bad English

whieber

Just wanted to say that a word interpretting calculator is a brilliant idea! It think that people who can think word problems are always two steps ahead of those that require a pencil and paper. Your calculator will help promote that type of thinking. Nice job.

Ricardo

Good work, nice theme! 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).

p0z3r

I see you're making new themes! Nice graphics matt. And it just works. One note, can you make your text field interpret 'enter' as the submit actuator?

Matti

I'd love to, but how?

p0z3r

I believe you check for ord(char) == 13 in keyPressed(). One of the two example input themes uses it.

Matti

Ok, I had a hunt round for this in the python standard library modules, and can't find anything relevant. Can you give me a bit more info on this? ta Matt

p0z3r

http://www.p0z3r.org/downloads/input_example.py that's in the SK release package examples. ord() gives a hex value of a char, and the enter key gives a 13.

Matti

Well that's embarrasing. If I'd read line 2, I'd have it sorted :). Sorry. Matt

p0z3r

It's not problem. Just keep making cool themes Matt. Oh, and btw, your download links to URL's breaks the New Stuff downloading, so people can't get your themes from the theme dialog.

Matti

That's kind of intentional. Before I made people go to the website, I was answering about 20 emails a day, of people asking the same questions over and over again. Now they have to go to the website, I'm getting about 2 email questions a week. I kind of like it better this way. Unless there's a way that can be built into the knewstuff dialog that tells people where to go for help, or something.

p0z3r

That's totally up to you to have it that way. There may be a way to add another providers list to SK's new stuff. I'll have to look at that.

Pling
0 Affiliates
Details
license
version 4.2
updated
added
downloads 24h 0
mediaviews 24h 0
pageviews 24h 1

More Karamba & Superkaramba from Matti:

Liquid Weather ++
Matti
last update date: 17 years ago

Score 4.7

sKadsense
Matti
last update date: 18 years ago

Score 5.0

bubble burst
Matti
last update date: 18 years ago

Score 5.0

translate plus
Matti
last update date: 18 years ago

Score 5.0

Date Calculator
Matti
last update date: 18 years ago

Score 5.0

US Satellite Image
Matti
last update date: 18 years ago

Score 5.0

Other Karamba & Superkaramba:

Evolution Task Theme (for Karamba)
L0rclA5CII
last update date: 22 years ago

Score 5.0

Karambaqua
manor
last update date: 22 years ago

Score 5.0

Karamba Print Queue Monitor
Praxxus
last update date: 22 years ago

Score 5.0

The DarkGirl wallpaper and Karamba theme
xray
last update date: 22 years ago

Score 5.0

TecnoBar for Karamba
ZIOlele
last update date: 22 years ago

Score 5.0

Karamba Ink Level Monitor
Praxxus
last update date: 22 years ago

Score 5.0