Re: [Scheme-reports] digit-value Marc Feeley (01 Jul 2012 12:55 UTC)
Re: [Scheme-reports] digit-value Alex Shinn (01 Jul 2012 20:28 UTC)
Re: [Scheme-reports] digit-value Marc Feeley (02 Jul 2012 12:08 UTC)
Re: [Scheme-reports] digit-value Alaric Snell-Pym (02 Jul 2012 12:21 UTC)
Re: [Scheme-reports] digit-value John Cowan (03 Jul 2012 07:16 UTC)
Re: [Scheme-reports] digit-value Alaric Snell-Pym (03 Jul 2012 08:50 UTC)
Re: [Scheme-reports] digit-value Pierpaolo Bernardi (03 Jul 2012 09:11 UTC)
Re: [Scheme-reports] digit-value John Cowan (03 Jul 2012 14:45 UTC)
Re: [Scheme-reports] digit-value Pierpaolo Bernardi (03 Jul 2012 15:58 UTC)
Re: [Scheme-reports] digit-value John Cowan (04 Jul 2012 04:22 UTC)
(missing)
Re: [Scheme-reports] digit-value John Cowan (05 Jul 2012 02:25 UTC)

Re: [Scheme-reports] digit-value John Cowan 03 Jul 2012 14:44 UTC

Pierpaolo Bernardi scripsit:

> string->number and read accepting as numbers all characters satisfying
> the current char-numeric? would be crazy.
>
> Think roman numerals, just to take a simple example we all know about.
> Assuming the I are the right unicode character for the roman numeral 1:

The Roman-numeral characters (which are only present for backward
compatibility with certain other character sets) aren't decimal digits,
and therefore R7RS `char-numeric?` returns #f on them.  So things aren't
as bad as that: all the decimal digits are used in exactly the same way,
only the shapes differ from European digits.

Here is the complete list of scripts that have their own digits (sometimes
only in older texts; modern texts use the European style):

Arabic (two flavors, one for Arabic langauge, one for Persian and Urdu
languages), N'ko, Devanagari, Bengali, Gurmukhi, Gujarati, Oriya, Tamil,
Telugu, Kannada, Malayalam, Thai, Lao, Tibetan, Myanmar (two flavors,
one for Myanmar language, one for Shan language), Khmer, Mongolian, Limbu,
New Tai Lue, Tai Tham (two flavors, secular and ecclesiastical), Balinese,
Sundanese, Lepcha, Ol Chiki, Vai, Saurashtra, Kayah Li, Javanese, Cham,
Meetei Mayek, Osmanya, Brahmi, Sora Sompeng, Chakma, Sharada, Takri.

In addition, there is a set of fullwidth European digits (same shape,
but the size of Chinese characters), and the following sets of specially
fonted digits for mathematical use only:  math bold, math double-struck,
sans-serif, sans-serif bold, monospace.

--
I am expressing my opinion.  When my            John Cowan
honorable and gallant friend is called,         cowan@ccil.org
he will express his opinion.  This is           http://www.ccil.org/~cowan
the process which we call Debate.                   --Winston Churchill

_______________________________________________
Scheme-reports mailing list
Scheme-reports@scheme-reports.org
http://lists.scheme-reports.org/cgi-bin/mailman/listinfo/scheme-reports