Re: comments on draft-newman-i18n-comparator-05.txt

> Some collators don't operate on character strings. Ascii-numeric is a
> case in point. Those have to parse the parse the octet string and work
> on the resulting value.

"ASCII-numeric"?

Anyhow, ISO/IEC 14651, Annex C, has a section on numeric ordering
(on natural numbers, integer numbers, and numbers with fractions or
even exponent parts), expressed as prehandling on the string prior
to comparison.

> Cyrus Daboo mentioned a collator which sorts dates. That collator has to
> specify a date format (perhaps by reference), parse that format, and
> sort/compare the dates in its internal format.

ISO/IEC 14651, Annex C, has a section on date ordering
(and the "date parser" may well recognise several date formats,
as long as there is no ambiguity), expressed as prehandling
on the string prior to comparison.

Done that way, there is no need to mix in other datatypes than
character strings; like <some characters, a date object, maybe
some more characters, an integer value object (or a floating
point value object), more characters>.

Specifying which prehandlings to do is out of scope for 14651,
but it may well be in scope for an i-d.

     /kent k

Received on Friday, 23 September 2005 11:00:02 UTC