Re: the discussion so far
John.Cowan
(17 Jul 2005 07:29 UTC)
|
||
(missing)
|
||
(missing)
|
||
(missing)
|
||
(missing)
|
||
(missing)
|
||
(missing)
|
||
(missing)
|
||
Re: the discussion so far
John.Cowan
(20 Jul 2005 05:07 UTC)
|
||
Re: the discussion so far
bear
(20 Jul 2005 17:27 UTC)
|
||
Re: the discussion so far John.Cowan (20 Jul 2005 19:28 UTC)
|
||
Re: the discussion so far
Thomas Bushnell BSG
(20 Jul 2005 19:30 UTC)
|
||
Re: the discussion so far
John.Cowan
(20 Jul 2005 19:41 UTC)
|
||
Re: the discussion so far
bear
(20 Jul 2005 23:56 UTC)
|
||
Re: the discussion so far
Alex Shinn
(21 Jul 2005 01:36 UTC)
|
||
Re: the discussion so far
John.Cowan
(21 Jul 2005 01:47 UTC)
|
||
Re: the discussion so far
bear
(21 Jul 2005 08:52 UTC)
|
bear scripsit: > " These functions take a character argument and return a > character result. If the argument is an uppercase or > titlecase letter, and there is a single letter which is its > lowercase form, char-downcase returns that letter. If the > argument is a lowercase or titlecase letter, and there is a > single letter which is its uppercase form, char-upcase > returns that letter. Otherwise, the character returned is > the same as the argument. Note that this is an incomplete > approximation to case conversion; in general case mappings > require the context of a string, both in arguments and in > result. See string-upcase and string-downcase for more > general case conversion functions. " +1 This also induced me to realize that char-titlecase belongs here as well. > and this language for string-upcase and string-downcase: > > " These functions take a string argument argument and return > a string as their result. String-upcase converts a string > to uppercase, and string-downcase converts a string to > lowercase. If an implementation supports locales, the case > folding done by these functions will be according to the > value of (current-locale). " These do case mapping, not case folding. I suggest this language: " These functions take a string argument argument and return a string as their result. String-upcase converts a string to uppercase, and string-downcase converts a string to lowercase. The result may or may not be the same length as the argument." There are only two locales for case mapping, Turkic and non-Turkic (thanks to the unusual behavior of dotless-i and dotted-I in some Turkic languages). I'm not sure that a full locale mechanism should be spec'ed just for that, though it will be needed for the UCA functions. String-titlecase also belongs here: it maps the first character to titlecase, and the rest to lowercase. > string-UCA>? > string-UCA>=? > string-UCA=? > string-UCA<=? > string-UCA<? I support these, but think they belong in a general i18n/l10n SRFI. I will be happy to assist in creating such a SRFI. -- MEET US AT POINT ORANGE AT MIDNIGHT BRING YOUR DUCK OR PREPARE TO FACE WUGGUMS John Cowan http://www.reutershealth.com xxxxxx@reutershealth.com