Feature Request: ICU4C Library

Đang mở
#785 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
20/100
Loại issue
Tính năng
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
node.js, rust
Lĩnh vực
internationalization

Hướng nghiên cứu

Bắt đầu bằng việc xem xét các binding Node.js hiện có của repository và dự án google/rust_icu được liên kết để xác định liệu việc chuyển tự bằng ICU4C có thể phù hợp với dự án hay không. Để được coi là hoàn tất, cần có một API được xác định rõ và có thể bảo trì cho các quy tắc chuyển tự tùy chỉnh, nhưng issue này không xác định các tệp, bài kiểm thử hoặc phạm vi triển khai cụ thể.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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!

Ngôn ngữ chính
Rust
Star
1.5k
Fork
52
Merge trung bình
1 ngày 2 giờ
Pull request đã merge (30 ngày)
14

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của napi-rs/node-rs

Tất cả issue của napi-rs/node-rs

Issue tương tự

Thêm issue về Rust

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.