On 15/02/2011, at 6:52 PM, Bruno Le Floch wrote:

>> My personal opinion on uppercasing/lowercasing is that it should be a
>> property of the font;
> 
> Both Will and Frank agree on this, but currently, in many fonts that's not
> possible.

Right :(


> Also, it is in fact possible to have an algorithm to produce
> expandably
> the result of {replacing some tokens by a corresponding macro} in a given tl.

This code you're written sounds interesting.

Does anyone have any idea what other sort of expansion-replacement code there is on CTAN?
I know of Uwe Lück's fifinddo.sty code, as part of the nicetext bundle:
  <http://ctan.unsw.edu.au/macros/latex/contrib/nicetext/>

-- Will