Re: [Chicken-users] stripping accents

2006-03-12 Thread Thomas Chust

On Sat, 11 Mar 2006, Sunnan wrote:


Just to make sure, to prevent duplication of effort: is there an easy
way to strip accents from unicode characters with Chicken?


Not that I know of. Proper case mapping is included in the utf8 egg, but 
not this functionality.



Failing that, is there an easy way to translate characterns similar to
unix tr or sed's y/// expression?



From the CHICKEN manual, extras unit:


  -- procedure: string-translate
   (string-translate STRING FROM [TO])
  Returns a fresh copy of `STRING' with characters matching `FROM'
  translated to `TO'.  If `TO' is omitted, then matching characters
  are removed. `FROM' and `TO' may be a character, a string or a
  list. If both `FROM' and `TO' are strings, then the character at
  the same position in `TO' as the matching character in `FROM' is
  substituted.

This procedure is unicode aware when using the utf8 egg.

cu,
Thomas


___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


[Chicken-users] stripping accents

2006-03-11 Thread Sunnan
Just to make sure, to prevent duplication of effort: is there an easy
way to strip accents from unicode characters with Chicken?
For example, ï should become i, å should become a.

Failing that, is there an easy way to translate characterns similar to
unix tr or sed's y/// expression?

Thanks,
Sunnan



___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users