Re: [css3-text] text-transform:capitalize

Brady Duga:

> it seems like there is no way to get both French (l'histoire -> L'Histoire) and English (can't -> Can't) titlecasing without using language-specific word break tables.

You could probably special-case on character count (0, 1, 2 or more) before and after the punctuation. The following is just an example, not necessarily best practice.

 a'b  => A'B ?
 a'   => A'
  'b  => 'b
ab'   => Ab'
  'ab => 'Ab
ab'c  => Ab'c
 a'bc => A'Bc
ab'cd => Ab'cd

same for ’

Received on Monday, 21 February 2011 12:39:46 UTC