Re: [Mono-dev] How to make new locales for CultureInfo?

2006-09-03 Thread John Hatton
Atsushi,

Which culture do you need specifically ?

Our product is for minority languages, many of them endangered, few of
which are in the ICU database. There some 6000 languages in the world, and
most of these languages need, for example, small sort-order tailorings.

The One Laptop Per Child project may be ushering Linux into many of these
language communities for the first time.

It looks like we'll have to wrap the ICU library ourselves and can't use the
mono code for our globalization.  Sigh. Thanks for the prompt information,
though!

John Hatton
WeSay.org


___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] How to make new locales for CultureInfo?

2006-09-03 Thread Atsushi Eno
Hmm, what I cannot understand is that while you say that few of those
languages you need are in ICU but you are still saying you will use
ICU.

Also note that CultureAndRegionInfoBuilder never helps custom
string collation. That framework is only for number and date
formatting.

Atsushi Eno

John Hatton wrote:
 Atsushi,
 
 Which culture do you need specifically ?
 
 Our product is for minority languages, many of them endangered, few of
 which are in the ICU database. There some 6000 languages in the world, and
 most of these languages need, for example, small sort-order tailorings.
 
 The One Laptop Per Child project may be ushering Linux into many of these
 language communities for the first time.
 
 It looks like we'll have to wrap the ICU library ourselves and can't use the
 mono code for our globalization.  Sigh. Thanks for the prompt information,
 though!
 
 John Hatton
 WeSay.org
 
 
 ___
 Mono-devel-list mailing list
 Mono-devel-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-devel-list
 

___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] How to make new locales for CultureInfo?

2006-09-03 Thread John Hatton
Atsushi,

  Hmm, what I cannot understand is that while you say that few of those
  languages you need are in ICU but you are still saying you will use
  ICU.

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.
  
  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.

Thanks again for the information.

John Hatton
WeSay.org

___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] How to make new locales for CultureInfo?

2006-09-03 Thread Atsushi Eno
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
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


[Mono-dev] How to make new locales for CultureInfo?

2006-08-31 Thread John Hatton
In our application, which is solely for the world's minority languages, we
would like to be able to make new CultureInfo's from ldlm files (Locale Data
Markup Language).

On the Windows side, we can use the .Net Framework 2.0's
CultureAndRegionInfoBuilder class.

Any ideas on how we could do something on the Linux side?  

Is ICU still used underneath?  (It still has a property called IcuName).
If so, is that the level that our app needs to introduce new locale info,
and then mono's CultureInfo will be able to pick it up there?  


Thanks
John Hatton
wesay.org


___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] How to make new locales for CultureInfo?

2006-08-31 Thread Atsushi Eno
Hello,

Sadly we don't have sysglobl.dll which implements 
CultureAndRegionInfoBuilder. It is a bit messy that it requires
additional consideration on how culture resources should be
retrieved and stored (I have to admit that I dislike it since
this framework works only on the machine that installed the 
corresponding culture).

Our culture information is created from LDML information (which is
actually from ICU) and stored in the mono runtime itself. If you
want to add other cultures that we miss, you might be able to
pull them from newer ICU and add it in the catalog
(mono/tools/locale-builder/lcids.xml).

Which culture do you need specifically ?

Atsushi Eno

John Hatton wrote:
 In our application, which is solely for the world's minority languages, we
 would like to be able to make new CultureInfo's from ldlm files (Locale Data
 Markup Language).
 
 On the Windows side, we can use the .Net Framework 2.0's
 CultureAndRegionInfoBuilder class.
 
 Any ideas on how we could do something on the Linux side?  
 
 Is ICU still used underneath?  (It still has a property called IcuName).
 If so, is that the level that our app needs to introduce new locale info,
 and then mono's CultureInfo will be able to pick it up there?  
 
 
 Thanks
 John Hatton
 wesay.org
 
 
 ___
 Mono-devel-list mailing list
 Mono-devel-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-devel-list
 

___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list