Re: [perl6/specs] d9d8b3: refactor case mappings (again)

2012-07-30 Thread Smylers
Larry Wall writes:

> On Tue, Jul 24, 2012 at 09:42:10PM +0100, Smylers wrote:
> 
> : Under what circumstances is tcuc useful? I'm currently suffering
> : from a lack of imagination as to when somebody would ever want that
> : rather than just uc.
> 
> A bare uc will do the wrong thing for the first letter of a word in
> those languages that distinguish tc from uc.  Titlecase is
> distinguished from other uppercase forms that are used after the
> inital letter, and so doesn't care whether the next character is
> uppercase or lowercase. It's simply wrongish to use uc on the first
> character in such a language.

Thanks.

Smylers
-- 
http://twitter.com/Smylers2


Re: [perl6/specs] d9d8b3: refactor case mappings (again)

2012-07-30 Thread Larry Wall
On Tue, Jul 24, 2012 at 09:42:10PM +0100, Smylers wrote:
: GitHub writes:
: 
: >   
https://github.com/perl6/specs/commit/d9d8b35825f7abf07a9314fd90b0b5563253bd15
: >   Author: Larry Wall 
: > 
: > There is no more titlecase function.  Instead there is a suite
: > of mapping functions appropriate to apply on a word-by-word basis
: > (tc, tclc, and tcuc),
: 
: Under what circumstances is tcuc useful? I'm currently suffering from a
: lack of imagination as to when somebody would ever want that rather than
: just uc.

A bare uc will do the wrong thing for the first letter of a word in
those languages that distinguish tc from uc.  Titlecase is distinguished
from other uppercase forms that are used after the inital letter, and
so doesn't care whether the next character is uppercase or lowercase.
It's simply wrongish to use uc on the first character in such a language.

Larry


Re: [perl6/specs] d9d8b3: refactor case mappings (again)

2012-07-24 Thread Smylers
GitHub writes:

>   
> https://github.com/perl6/specs/commit/d9d8b35825f7abf07a9314fd90b0b5563253bd15
>   Author: Larry Wall 
> 
> There is no more titlecase function.  Instead there is a suite
> of mapping functions appropriate to apply on a word-by-word basis
> (tc, tclc, and tcuc),

Under what circumstances is tcuc useful? I'm currently suffering from a
lack of imagination as to when somebody would ever want that rather than
just uc.

Cheers

Smylers
-- 
http://twitter.com/Smylers2