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

Add a number parser for parsing numbers using non-latin numerals #579

Closed
kevinbarabash opened this issue Jun 6, 2021 · 3 comments
Closed

Comments

@kevinbarabash
Copy link

Some languages use different numerals, e.g. Eastern Arabic numerals and Georgian numerals (amongst others). It would be nice to have some way to parse these built into the browser.

@Yaffle
Copy link

Yaffle commented Jun 6, 2021

You can use html for this : <input type="number" value="ჩ" lang="en-u-nu-geor" /> - in Firefox the value property will return the number somehow.
Why cannot this be done in JavaScript? It is not difficult to do the conversion for all decimal numbers.

@ryzokuken
Copy link
Member

Localized string parsing is a non-goal for ECMA-402. For more, see #1 and https://blog.sffc.xyz/post/190943794505/why-you-should-not-parse-localized-strings.

@sffc
Copy link
Contributor

sffc commented Jun 12, 2021

This makes sense within the scope of a unicode properties API.

Closing this issue in favor of #90.

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

4 participants