sKalcuverter

Karamba & Superkaramba

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

0
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:

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

13 years ago

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.

Report

C

Matti

13 years ago

Thanks.

Report

anupamsr

14 years ago

Really awesome work.

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

Report

C

Matti

14 years ago

google has the default variable of "pi".

Report

burt

14 years ago

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

Report

whieber

14 years ago

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.

Report

Ricardo

14 years ago

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).

Report

p0z3r

14 years ago

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?

Report

C

Matti

14 years ago

I'd love to, but how?

Report

p0z3r

14 years ago

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

Report

C

Matti

14 years ago

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

Report

p0z3r

14 years ago

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.

Report

C

Matti

14 years ago

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

Sorry.

Matt

Report

p0z3r

14 years ago

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.

Report

C

Matti

14 years ago

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.

Report

p0z3r

14 years ago

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.

Report

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

12345678910
Be the first to comment
File (click to download) Version Description Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
version
4.2
updated May 01 2007
added Dec 03 2005
downloads 24h
0
mediaviews 24h 0
pageviews 24h 0