comp.lang.ada
 help / color / mirror / Atom feed
From: David Starner <dvdeug@email.ro>
Subject: AI-285 - Comment from Unicode list
Date: Sun, 15 Feb 2004 00:25:11 GMT
Date: 2004-02-15T00:25:11+00:00	[thread overview]
Message-ID: <pan.2004.02.14.23.56.49.56153@email.ro> (raw)

Markus Scherer writes (at
<http://www.unicode.org/mail-arch/unicode-ml/y2004-m01/0508.html>

***
D. Starner wrote:
>> #12 UTF-16 for Processing
>
> This is incorrect in saying that Ada uses UTF-16. It supports UCS-2
> only. The text of the standard says:
>
> The predefined type Wide_Character is a character type whose values
> correspond to the 65536 code positions of the ISO 10646 Basic
> Multilingual Plane (BMP). [...]
>
> which doesn't include surrogate code points. The next

True, but not much different/worse than for Java, for example. Once you have 16-bit types and string
literals, adding a few functions to deal with supplementary code points is not hard. We did this for
Java in ICU4J.

There is little difference for a language between supporting UCS-2 or UTF-16 because where functions
do not handle supplementary code points, they usually also don't handle Unicode versions above 3.0 -
so string case mappings etc. are the same.

A language like that can be relatively easily upgraded to full UTF-16 handling by updating the
character and string function implementations, and adding a few new APIs - that is what Java is
doing. The upgrade is done naturally when the standard functions are extended to Unicode 3.1 or later.

As such, whether the strings contain UCS-2 or UTF-16 depends less on the language definition and
more on the functions that are used, and the version of the standard libraries.

> version of Ada will have 32-bit characters to fully
> support Unicode - the text of the proposal is here:
>
> <http://www.ada-auth.org/cgi-bin/cvsweb.cgi/AIs/AI-00285.TXT?rev=1.14>
>
> plus lengthy discussion on the issues.

Thank you very much for the link.

The proposal seems to be to continue to treat Wide strings as UCS-2, and to treat Wide_Wide strings
(a new type) as UTF-32. This would give Ada a total of three different native string types on the
language level. It would also mean that existing code, using 16-bit strings, would not benefit from
an upgrade but would instead have to be rewritten for support of supplementary code points. This may
in fact slow down such support.

There will be a presentation of the choices for Java (including UTF-32) at IUC 25.

Best regards,
markus

***




             reply	other threads:[~2004-02-15  0:25 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-15  0:25 David Starner [this message]
2004-02-15 14:45 ` UTF-8 (was: AI-285 - Comment from Unicode list) Wes Groleau
2004-02-15 22:31   ` David Starner
2004-02-16 22:18     ` UTF-8 Wes Groleau
2004-02-17  2:05       ` UTF-8 David Starner
2004-02-17 13:39   ` UTF-8 Georg Bauhaus
2004-02-18  2:39     ` UTF-8 Wes Groleau
2004-02-18  2:40     ` UTF-8 Wes Groleau
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox