haskell / text-icu

This package provides the Haskell Data.Text.ICU library, for performing complex manipulation of Unicode text.
BSD 2-Clause "Simplified" License
47 stars 41 forks source link

Collation customization: How is it exposed in text-icu? #35

Closed njbart closed 2 years ago

njbart commented 6 years ago

It appears that ICU provides mechanisms for customizing collation (described at http://userguide.icu-project.org/collation/customization).

I’d be grateful for a pointer as to if, and if so, how this is exposed in the haskell text-icu package.

na4zagin3 commented 2 years ago

In order to customize collations, we need ucol_openRules() to be exposed (ucol_getRules()/ucol_getRulesEx() as well when customizing existing collators). If no one is going to add support of them, let me do that.