Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature request] parse currency symboles after the ammount (with potential space) #24

Open
WeberJulian opened this issue Dec 30, 2021 · 0 comments

Comments

@WeberJulian
Copy link
Contributor

Right now, from my testing '€10,50' is parsed correctly. But in Europe, we usually write '10,50€' or '10,50 €'.
https://en.wikipedia.org/wiki/Euro_sign

We could maybe have a currency_before bool parameter that's dependent on the language? and then use it here

if word.text.startswith(currency_symbol):
to check if word ends with the currency.

How should we deal with the space? Maybe in currency_before == Fasle languages, we can colapse spaces between curency signs and a digit when the digit is first?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant