[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Scheme-reports] Proposing amending char-numeric? definition
- To: Alex Shinn <alexshinn@x>
- Subject: Re: [Scheme-reports] Proposing amending char-numeric? definition
- From: John Cowan <cowan@x>
- Date: Wed, 27 Apr 2011 21:56:59 -0400
- Cc: Scheme-reports@x
- In-reply-to: <BANLkTikLua8rWsxX_9Z+95oK-HRdEQeB=A@mail.gmail.com>
- References: <BANLkTi=5rWkaW3s+pL5UjrD=N11mcphTQg@mail.gmail.com> <BANLkTikLua8rWsxX_9Z+95oK-HRdEQeB=A@mail.gmail.com>
Alex Shinn scripsit:
> At my work we recently had a case of an application
> written for English which detected numbers in text
> by looking for ASCII '0'..'9'. It turns out that we probably
> want this to apply to all digits in all scripts. That would
> include the standard ideographic numbers as well as
> the old accounting numbers (壱 U+58F1, etc.), but
> probably not with a Unihan numeric value of kOtherNumeric
> (as with 幺). So a middle ground between (1) and (3)
> may be desirable.
My general sense is that handling non-decimal digits is
overkill. However, in order to handle decimal digits effectively,
we'd need a function to get the numeric value of a digit.
--
John Cowan cowan@x http://ccil.org/~cowan
It's the old, old story. Droid meets droid. Droid becomes chameleon.
Droid loses chameleon, chameleon becomes blob, droid gets blob back
again. It's a classic tale. --Kryten, Red Dwarf
_______________________________________________
Scheme-reports mailing list
Scheme-reports@x
http://lists.scheme-reports.org/cgi-bin/mailman/listinfo/scheme-reports