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: ICU4C Library #785

Open
mustafa519 opened this issue Feb 12, 2024 · 0 comments
Open

Feature Request: ICU4C Library #785

mustafa519 opened this issue Feb 12, 2024 · 0 comments

Comments

@mustafa519
Copy link

Hello!

I've just found this repo is amazing that we can use the fastest implementations of the popular packages with the almost same API. Thank you for providing your valuable efforts.

I've moved from PHP to node.js recently. There is something missing very important for me in node.js. The ICU4C Library. Node has the Intl library however it doesn't help to implement something customized in node's intl especially on the text based transliterators.

I had been using PHP's intl in the past. Surprisingly there are no any alternatives in node.js ecosystem which is a very big gap that needs to be filled.

E.g. customized requirement which was in PHP:

$string = \Transliterator::createFromRules(
  ':: NFD [^\.\-\'\,\&\+];'
  . ':: NFC;'
  . ':: Latin-ASCII [^\.\-\'\,\&\+];'
  . ':: [\u0080-\u7fff] Remove;'
  . ':: [:Punctuation:] Remove;'
  . '[:Separator:] > '\s'
)->transliterate($string);

I've shared the PHP example because I think it has the easiest API design that I've seen.

I am so poor at the low level things like rust or c/c++. Is it possible to port it from c,c++,rust to node.js? Or it requires too much effort? Or do you accept a new feature request within your roadmap?

There is a rust port(by google) that may help if it's possible to add it to bindings?

Lastly, there are many packages that they try text to slugify that they are not capable enough to work with all the languages. And people are still suffering due to limited support or separated packages.

Is it possible?

Mustafa,
Thanks!

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