www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - String Theory and ICU

reply "Kris" <fu bar.com> writes:
There's now a set of D wrappers around the ICU project; which also happens
to include a reasonably good String class.

The ICU4D topic is here: http://www.dsource.org/forums/viewtopic.php?t=420
ICU pages are over here: http://oss.software.ibm.com/icu/

The D interface is not yet complete, so it would be great if some of you
could help to fill in the gaps. It's not hard to do, and you don't need to
understand all about ICU to help out. In addition, the work done thus far
provides a set of solid examples to crib from.
Nov 07 2004
next sibling parent reply "Ben Hinkle" <bhinkle mathworks.com> writes:
"Kris" <fu bar.com> wrote in message news:cmmoqr$1bfn$1 digitaldaemon.com...
 There's now a set of D wrappers around the ICU project; which also happens
 to include a reasonably good String class.

 The ICU4D topic is here: http://www.dsource.org/forums/viewtopic.php?t=420
 ICU pages are over here: http://oss.software.ibm.com/icu/

 The D interface is not yet complete, so it would be great if some of you
 could help to fill in the gaps. It's not hard to do, and you don't need to
 understand all about ICU to help out. In addition, the work done thus far
 provides a set of solid examples to crib from.
Did AJ get anywhere with a port? Is there something to download - either AJ's or yours?
Nov 08 2004
next sibling parent reply Sean Kelly <sean f4.ca> writes:
Ben Hinkle wrote:
  >
 Did AJ get anywhere with a port? Is there something to download - either
 AJ's or yours?
Jill has been MIA for a while. I think Kris decided to go ahead and port ICU on his own. It's in the Mango SVN tree for now at http://svn.dsource.org/svn/projects/mango/trunk/mango/icu/ I assume you should grab the ICU lib and start adding headers that aren't already present. I'm going to try and help out as well. Sean
Nov 08 2004
parent reply Ben Hinkle <bhinkle4 juno.com> writes:
Sean Kelly wrote:

 Ben Hinkle wrote:
   >
 Did AJ get anywhere with a port? Is there something to download - either
 AJ's or yours?
Jill has been MIA for a while. I think Kris decided to go ahead and port ICU on his own. It's in the Mango SVN tree for now at http://svn.dsource.org/svn/projects/mango/trunk/mango/icu/ I assume you should grab the ICU lib and start adding headers that aren't already present. I'm going to try and help out as well. Sean
I was just curious. I'm not a fan of adding a string class to D so my involvement will be minimal. My own 2 cents would be to port the parts that D doesn't already have - basically just the converters (to convert between utf and legacy encodings) and transformers (to uppercase/lowercase and normalize strings). Maybe I'll check out Jill's project that she started before switching to ICU. -Ben
Nov 08 2004
parent "Kris" <fu bar.com> writes:
"Ben Hinkle" <bhinkle4 juno.com> wrote
| I was just curious. I'm not a fan of adding a string class to D so my
| involvement will be minimal. My own 2 cents would be to port the parts
that
| D doesn't already have - basically just the converters (to convert between
| utf and legacy encodings) and transformers (to uppercase/lowercase and
| normalize strings). Maybe I'll check out Jill's project that she started
| before switching to ICU.

There's a list of the modules currently done, under way, and not started,
over here: http://www.dsource.org/forums/viewtopic.php?t=420

There's an ocean of functionality in ICU. I can't think of anything in there
that was already fully covered by some D library, so wrapping all of it is
of significant value.

Yes, there is a String class in there, which is leveraged within some of the
other classes. Personally, I don't bother with the partisan aspects
surrounding the notion of String: it would seem more important to have the
extensive ICU functionality enabled and available for anyone to use; for
free.

One can download the wrappers from dsource SVN, and you'll need to
grab the ICU dlls also. There's some directions over here:
http://www.dsource.org/forums/viewtopic.php?t=422

Every little bit of help on this will benefit the D community, so don't be
shy
about donating some time :-)
Nov 08 2004
prev sibling parent Lars Ivar Igesund <larsivar igesund.net> writes:
Ben Hinkle wrote:

 "Kris" <fu bar.com> wrote in message news:cmmoqr$1bfn$1 digitaldaemon.com...
 
There's now a set of D wrappers around the ICU project; which also happens
to include a reasonably good String class.

The ICU4D topic is here: http://www.dsource.org/forums/viewtopic.php?t=420
ICU pages are over here: http://oss.software.ibm.com/icu/

The D interface is not yet complete, so it would be great if some of you
could help to fill in the gaps. It's not hard to do, and you don't need to
understand all about ICU to help out. In addition, the work done thus far
provides a set of solid examples to crib from.
Did AJ get anywhere with a port? Is there something to download - either AJ's or yours?
Kris' stuff is in the Mango svn repository.
Nov 08 2004
prev sibling parent "Kris" <fu bar.com> writes:
Thought I'd ask again if anyone else can contribute to this effort:

- There's still some key areas left uncovered.
- Some expertise in one area or another would really be of value in making
some perhaps more 'intuitive' wrappers around the raw API.
- The ICU C-APIs are limited in some areas, and sub-optimal in others: to
get around this, some additional glue written in C would be very helpful
(will explain this in detail to those interested).

There's lots to do here! Please don't be shy about offering your expertise
and/or time

[the list of completed bindings is here:
http://www.dsource.org/forums/viewtopic.php?t=420]


"Kris" <fu bar.com> wrote in message news:cmmoqr$1bfn$1 digitaldaemon.com...
| There's now a set of D wrappers around the ICU project; which also happens
| to include a reasonably good String class.
|
| The ICU4D topic is here: http://www.dsource.org/forums/viewtopic.php?t=420
| ICU pages are over here: http://oss.software.ibm.com/icu/
|
| The D interface is not yet complete, so it would be great if some of you
| could help to fill in the gaps. It's not hard to do, and you don't need to
| understand all about ICU to help out. In addition, the work done thus far
| provides a set of solid examples to crib from.


begin 666 icon_smile.gif
M1TE&.#EA#P`/`+,.`/_J`$5%10```/_.`/_)`/^T`/Z=`/_^D__]$_______
MQS,S,___Z__E`````````"'Y! $```X`+ `````/``\```1;T$D9:IW85:;.
M&1<6<  "G(,13$$G""?PIJMVF'$.: H.GS^"*G #QH*%RB''!!"2`=.B"5 \

`
end
Nov 11 2004