[Mono-dev] How to make new locales for CultureInfo?
Atsushi Eno
atsushi at ximian.com
Sun Sep 3 11:10:01 EDT 2006
Hello John,
> We don't need a language to be known to or distributed by ICU. We can use
> the ICU library, for example, by feeding it custom collation rules and then
> asking it for sortkeys. We've done this in a previous project that was C++.
> For this one, we'll make some kind of ICU-Sharp wrapper.
Ok, I understand.
BTW if you could give us a managed implementation for ICU, that would
be awesome (pure C# code is extraordinary great, but a wrapper is
still good)
:-)
>> Also note that CultureAndRegionInfoBuilder never helps custom
>> string collation. That framework is only for number and date
>> formatting.
>
> Ok. I was thinking that
> 1) CultureInfo does string comparison,then
> 2)since CultureAndRegionInfoBuilder can make a CultureInfo out of an LDML,
> and
> 3) LDML defines custom collations, and
> 4) the resulting CultureInfo would use the custom collation rules in the
> ldml.
>
> It sounds like you're saying Microsoft's ldml reader ignores the
> <collations> element of ldml? Oh well, that's too bad.
Yes. Note that MS String collation does not conform to UTS #10
(Unicode Collation Algorithm) so there is no hope. Their design
is 10 years behind (almost literally; UTS #10 is specified in 1998).
Atsushi Eno
More information about the Mono-devel-list
mailing list