Would be great to be able to highlight a currency and get a popup of conversion into your preferred currency. Just like how the default translate works.
Great suggestion, thank you!
I’m interested in gathering examples of the kind of input that might be fed to a Currency converter extension. I’m thinking symbols, number formats, etc. Can you post examples of any specific texts you might select and want to convert?
Hey Nick, sure. I’ll just add some here:
€15,50 (the use Commas in Europe, where we use Full stop in UK)
I’ll add more when I can think of them. Hope this helps.
Perfect, this stuff really helps. Getting the intended behavour right is really the hardest part of these things. Actually making it work is the easy part, usually.
Some working notes:
As I thought, there is an ISO standard for currency codes: ISO 4217 - Currency Codes
Also it seems this JS library might be some help: currency-symbol-map - npm
Just need to figure out a data source for the exchange rates. Ideally a public API with a reasonable free tier… there seem to be loads of them: https://openexchangerates.org/ is one.
As does this: https://currency.js.org/
@bobacks examples look good.
I’m just adding cents example: $8.80
I extracted it from amazon.com, where I often need to convert before buying.
Yeah, I’m pretty sure every currency has a decimal point (could be wrong). I just listed a few different currency types.
This would be super useful.
As an input, this kind of thing would be helpful:
20USD in yen
£5 in yen
CAD199.99 in yen
EUR50 in yen
15,000円 in USD
Here in Japan we actually don’t have a decimal point in the currency (except in currency trading and the stock market), so some rounding might be handy. Although I’m used to doing it myself.
How about a user specification as a fallback if there’s no ‘to’ currency specified?
Like, if mine is set to yen, this:
…would always result in a conversion to yen (hopefully with rounding), whereas this:
¥2000 to USD
…would convert to the specified ‘to’ currency.
Hmm, it would also need to know that when I say ¥ I mean yen and not yuan (RMB)…
Or even sweeter:
2000 to USD
…understanding that I want to convert from yen, because that’s my specified default.
Indeed, my thinking is that the extension will have an option with a drop-down to select a “target” currency. All conversions would be performed to that target currency.
Adding the “in” / “to” I hadn’t actually though of, but makes sense as a tool to assist writing.
it would also need to know that when I say ¥ I mean yen and not yuan (RMB)
Good point. The same would apply to $ which could be canadian dollar or australian dollar. I’m sure there are other examples.
Hi @nick thank you for considering to build this into PopClip. Has there been any updates on this currency converter PopClip extension?
Keep up the great work
Nope but this thread will be the first to know!
Some other examples it could use:
Please add my vote to this idea.
I expected this to be in the extensions list already.
Edit: I made it work with the help of Raycast Snippet you posted. But a dedicated currency extension will be nicer.