Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Capitalization tuning
- X-seq: zsh-users 13179
- From: "Aaron Davies" <aaron.davies@xxxxxxxxx>
- To: henman@xxxxxxxxxxxxxxxx
- Subject: Re: Capitalization tuning
- Date: Mon, 1 Sep 2008 09:56:35 +0800
- Cc: zsh-users@xxxxxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=y+6+aezvGkFpn8YazXampiesyHat6FgWgIw32CUTGrw=; b=AwscUSq2I0PBONh/py2zkhMImtpej8ussyrPiCYvTzoC6igaQpPkZ+5WAy1/3iizRo KBBnUiDMJ2XmE5p0ZlMJU0+u3wmGspaI5gJ4cPNRBTknFuAcc9hiJMi4Cuul+m/OjthS E8NTOSXGPWmC/EHSZ4ij4FYv/WVc/l5Mq81r4=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=HNV1caeelNjMdkO/FAUXhQUW7aP7bJyNncT0ndf/AQO+x5xLfYcTWAGxP+hN2UXAEc 7+CUFcbIkO+R3DhlT4NvqxPZJA59FmmSqCYxx0EPrV1FBXkb6otQmbGHW5bscpP2+7NV cWLmYZZbjknB7ShW6Vrn/i5bhHNwwd1+hLbts=
- In-reply-to: <20080831093724.444@blackhawk>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20080831093724.444@blackhawk>
On Sun, Aug 31, 2008 at 8:37 AM, <henman@xxxxxxxxxxxxxxxx> wrote:
> The problem with the current operation of the Capitalization function is that it capitalizes the first letter of conjunction tails as well.
>
> For example:
> $ CONJUNCT="I'll" && echo ${(C)CONJUNCT}
> I'Ll
> $CONJUNCT="They've" && echo ${(C)CONJUNCT}
> They'Ve
This won't solve your problem, but it might help you research it
better: the term you're looking for is "contraction", not
"conjunction". a "conjunction" is a grammatical category for words
that join other words or phrases together. (The canonical list is
"and", "or", and "but", but there are others of various types.) A
contraction is a word formed by putting two (or very occasionally
more) words together and replacing some letters in the middle with an
apostrophe.
See <http://en.wikipedia.org/wiki/Contraction_(grammar)> and
<http://en.wikipedia.org/wiki/Grammatical_conjunction> for more
information. (See <http://www.youtube.com/watch?v=mkO87mkgcNo> for
some awesome 70's-style edutainment. :-)
--
Aaron Davies
aaron.davies@xxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author