Re: Ada and Internationalization



On 30 May 2006 16:12:35 -0700, Michael Rohan wrote:

I've checked Google and have not been able to find anything in Ada out
there for internationalized code. There's support for Wide_Character
and Wide_Wide_Character but there doesn't seem to be libraries for
message strings. Before starting down the path of writing from
scratch, wanted to check.

If nothing is available, I was considering taking Java .properties
files, somehow "compiling" them into an Ada package and implementing
something akin to Java's MessageFormat:

Arguments : Message_Arguments;
...
Arguments.Append ("a string");
Arguments.Append (10);
Arguments.Append (Pi);
Put_Line (Message_Format ("facility", "msg001", Arguments));

I don't see how this is related to internationalization. It looks like
stream communication (see S"Output attribute) or string formatting. In
either case you convert data to/from stream/string.

For strings I have a small library which works this way, it has UTF-8
support.

http://www.dmitry-kazakov.de/ada/strings_edit.htm

--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de
.



Relevant Pages

  • Re: Increasing efficiency in C
    ... rather than as universal replacements for the C strings. ... >>And the very existence of these libraries proves that the C language DOES ... > The language doesn't support it. ... One is free to re-create all of the standard routines using ...
    (comp.lang.c)
  • Re: unicode encoding usablilty problem
    ... > libraries to widen their support from byte strings to character ... so many libraries still expect ... when they should process character strings. ...
    (comp.lang.python)
  • PLT Scheme v300
    ... PLT Scheme version 300 is now available from ... * access to foreign functions and libraries directly from Scheme ... * a Debug button in DrScheme provides limited debugging support ... that treat characters as bytes or pathnames as strings; ...
    (comp.os.linux.announce)
  • PLT Scheme v300
    ... PLT Scheme version 300 is now available from ... * access to foreign functions and libraries directly from Scheme ... * a Debug button in DrScheme provides limited debugging support ... that treat characters as bytes or pathnames as strings; ...
    (comp.lang.functional)
  • PLT Scheme v300
    ... PLT Scheme version 300 is now available from ... * access to foreign functions and libraries directly from Scheme ... * a Debug button in DrScheme provides limited debugging support ... that treat characters as bytes or pathnames as strings; ...
    (comp.lang.scheme)