W3C home > Mailing lists > Public > www-style@w3.org > December 2011

Re: [css3-text] @text-transform

From: Christoph Päper <christoph.paeper@crissov.de>
Date: Mon, 5 Dec 2011 12:36:14 +0100
Message-Id: <055E419D-3CFB-4B6C-A7D6-9FD5421F4A92@crissov.de>
To: www-style list <www-style@w3.org>
Christoph Päper:

>  scope: [ phrase || word || [ partial | [ initial || medial || final]# ] 
>        || character || base || diacritic ]#

That descriptor would result in something like this for the reverse of your “modernize-s” example:

  @text-transform oldstyle {
    convert: "s" to "ſ";
    scope: initial, medial, base;
  @text-transform oldstyle {
    convert: "ſs ss ſz sz" to "ß";
    scope: final;

Perhaps it’s better to name the scope inline:

  @text-transform oldstyle {
    convert: initial medial base "s" to "ſ", 
             final "ſs ss ſz sz" to "ß";

(This particular example should rather be handled by smart fonts, methinks, since long s like final sigma should never have gotten Unicode positions of their own.)

PS: CSS properties and descriptors are usually nouns, not verbs, 
    therefore ‘convert’ is not an optimal choice.
Received on Monday, 5 December 2011 11:36:45 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:50:11 UTC