[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] stripping accents
From: |
Thomas Chust |
Subject: |
Re: [Chicken-users] stripping accents |
Date: |
Sun, 12 Mar 2006 23:21:14 +0000 (GMT) |
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