i18n icon indicating copy to clipboard operation
i18n copied to clipboard

Support Unicode Normalization

Open glanium opened this issue 7 months ago • 4 comments

Surprisingly, Dart/Flutter does not support Unicode normalization default. So please support Unicode normalization.

thanks.

glanium avatar Apr 27 '25 05:04 glanium

Good idea - one would have to wrap https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/normalize and https://unicode-org.github.io/icu4x/rustdoc/icu_normalizer/index.html to a common denominator.

mosuem avatar Apr 28 '25 13:04 mosuem

@mosuem Just wanted to drop a quick note to say that I was in the process of developing a library that is attempting to implement RFC 3987 Internationalized Resource Identifiers (IRIs) and have a real need for Unicode normalization if you were looking for concrete use cases.

Also there is technically a Dart package that ports a JS implementation of Unicode normalization but I don't think it is maintained as it hasn't been updated in years, doesn't have a particularly compelling test suite and supports a very old version of Unicode.

It does however have a number of people who depend on it here: https://pub.dev/packages?q=dependency%3Aunorm_dart which is further evidence that Unicode normalization would be a really welcome addition to a package supported by the Dart team/

mark-dropbear avatar May 08 '25 17:05 mark-dropbear

Thanks for the context. I can definitely review a PR on this, or try myself to get the ICU4X/ECMA mix working as described above. I am kind of swamped at the moment though, so the latter would take a while.

mosuem avatar May 12 '25 07:05 mosuem

FYI @robertbastian

mosuem avatar May 12 '25 07:05 mosuem