Re: [Scheme-reports] string-foldcase

2014-05-05 Thread John Cowan
Alex Shinn scripsit: > [Note the reference implementation currently contains the following > hack: (define char-foldcase char-downcase), which is not valid for > full Unicode support.] Right, because (string-downcase "daß") ==> "daß", whereas (string-foldcase "daß") ==> "dass". -- John Cowan

Re: [Scheme-reports] string-foldcase

2014-05-05 Thread John Cowan
Takashi Kato scripsit: > > According to Unicode's CaseFolding.txt capital sigma is mapped to small > > sigma. So this, I think and R6RS requires, should return "χαoσσ". That's correct. > > R7RS doesn't specify it so could this be implementation dependent or if the > > implementation supports Un

Re: [Scheme-reports] string-foldcase

2014-05-05 Thread Alex Shinn
On Mon, May 5, 2014 at 10:01 PM, Takashi Kato wrote: > > Yes, R6RS requires string-foldcase to fold capital sigma to small sigma > not final sigma. And it requires string-downcase to make final sigma. I'm > not sure the reasoning but it probably respects CaseFolding.txt. So may > question is; sho

Re: [Scheme-reports] string-foldcase

2014-05-05 Thread Takashi Kato
On Monday, 5 May 2014, 13:54, Alex Shinn wrote: > For the data files you can refer to SpecialCasing.txt for this rule. > > R6RS explicitly requires proper handling of final sigmas, not > making this optional: > > http://www.r6rs.org/final/html/r6rs-lib/r6rs-lib-Z-H-2.html#node_sec_1.2 Yes, R6RS

Re: [Scheme-reports] string-foldcase

2014-05-05 Thread Alex Shinn
Hi, On Mon, May 5, 2014 at 7:49 PM, Takashi Kato wrote: > > Hi there, > > I'm wondering how should string-foldcase behave for capital sigma at the > end of word. For example, what should this return? (string-foldcase "XAOΣΣ") > > According to Unicode's CaseFolding.txt capital sigma is mapped to

[Scheme-reports] string-foldcase

2014-05-05 Thread Takashi Kato
Hi there, I'm wondering how should string-foldcase behave for capital sigma at the end of word. For example, what should this return? (string-foldcase "XAOΣΣ") According to Unicode's CaseFolding.txt capital sigma is mapped to small sigma. So this, I think and R6RS requires, should return "χαo