Feature Request: ICU4C Library

未关闭
#785 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
20/100
Issue 类型
功能
描述清晰度
需要澄清
活跃度
停滞
技术栈
node.js, rust

调研方向

首先检查仓库现有的 Node.js 绑定以及链接的 google/rust_icu 项目,以确定 ICU4C 转写是否适合该项目。要视为完成,需要为自定义转写规则定义一个可维护的 API,但此 issue 未指出文件、测试或具体的实现范围。

由索引模型根据 Issue 内容生成。

描述

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!

主要语言
Rust
星标
1.5k
派生
52
平均合并
1 天 2 小时
30 天内合并 PR
14

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

napi-rs/node-rs 的其他 Issue

查看 napi-rs/node-rs 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。