W3C home > Mailing lists > Public > www-style@w3.org > November 2015

[css-text] text-transform: capitalize Word Boundaries too strict

From: Adam Rich <adamzr@gmail.com>
Date: Fri, 06 Nov 2015 08:30:49 +0000
Message-ID: <CADArVvzFzs+u1pu9vqZy_8SjCANuTeK_9gFL0askhxCuM3_EhQ@mail.gmail.com>
To: www-style@w3.org
Hi,

I am using text-transform: capitalize; and I'm finding that it treats
punctuation within a word as a word boundary. For example:

word(s) gets transformed into Word(S)
afortunado/a gets transformed into Afortunado/A

In these cases, the S and the A should not be capitalized. In the first
case, the S is there to indicate that the word may be plural. In the second
case, the word is Spanish and the A is there because the adjective could be
for a male or female reader.

Can the word boundary rules get adjusted to deal with these cases?

Thanks,
- Adam
Received on Tuesday, 10 November 2015 18:21:39 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:58 UTC