From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/17763 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: function that purges 8 bit text? Date: Thu, 06 Jan 2005 17:18:50 +0100 Message-ID: <41DD64EA.1020803@wxs.nl> References: <41DD2773.1040602@wxs.nl> <5175D39F-5FE5-11D9-8818-0030659899AA@fiee.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1105028609 23555 80.91.229.6 (6 Jan 2005 16:23:29 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 6 Jan 2005 16:23:29 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Thu Jan 06 17:23:10 2005 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CmaPl-0002Wg-00 for ; Thu, 06 Jan 2005 17:23:09 +0100 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id CC80812789; Thu, 6 Jan 2005 17:23:08 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 31922-04; Thu, 6 Jan 2005 17:23:08 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5C2691277B; Thu, 6 Jan 2005 17:18:53 +0100 (CET) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 0B5951277B for ; Thu, 6 Jan 2005 17:18:52 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 31607-06 for ; Thu, 6 Jan 2005 17:18:51 +0100 (CET) Original-Received: from mailrelay01.solcon.nl (unknown [212.45.32.200]) by ronja.ntg.nl (Postfix) with ESMTP id 3947312775 for ; Thu, 6 Jan 2005 17:18:51 +0100 (CET) Original-Received: from server-1.pragma-net.nl (dsl-212-84-128-085.solcon.nl [212.84.128.85]) by mailrelay01.solcon.nl (8.12.11/SQL-8.12.11-5/8.12.11) with ESMTP id j06GIls9002792 for ; Thu, 6 Jan 2005 17:18:47 +0100 Original-Received: by server-1.pragma-net.nl (Postfix, from userid 65534) id 32ECC19787; Thu, 6 Jan 2005 17:14:48 +0100 (CET) Original-Received: from [10.100.1.191] (unknown [10.100.1.191]) by server-1.pragma-net.nl (Postfix) with ESMTP id D2BDF17BF1 for ; Thu, 6 Jan 2005 16:14:46 +0000 (UTC) User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: <5175D39F-5FE5-11D9-8818-0030659899AA@fiee.net> X-Virus-Scanned: ClamAV 0.80/540/Tue Oct 19 14:59:23 2004 clamav-milter version 0.80j on mailrelay01 X-Virus-Status: Clean X-Virus-Scanned: by amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: by amavisd-new at ntg.nl Xref: main.gmane.org gmane.comp.tex.context:17763 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:17763 Henning Hraban Ramm wrote: > Am 06.01.2005 um 12:56 schrieb Hans Hagen: >=20 >>> Is there a possibility to strip all invalid chars from a string, so t= hat >>> \SkillField{Erz=E4hlen}{0} can define a field named "Erzaehlen" or=20 >>> "Erzhlen" or "Erzahlen"? >> >> >> just make me s small test file >> there is lots of sanitizing code/trickery out there, but need a simple= =20 >> self contained example >=20 >=20 > Hm, it doesn't really have anything to do with my application (defining= =20 > widget fields), so... >=20 > \starttext >=20 > \def\MyIndex#1{\index[\CLEAN{#1}]{#1}} >=20 > \MyIndex{=C4tsch} % should expand to \index[Atsch]{=C4tsch} or=20 > \index[Aetsch]{=C4tsch} >=20 > \stoptext it's a three line macro to do this kind of things; however, i decided to = install=20 yet another expansion handler, \enableregime[windows] \setupregister[index][keyexpansion=3Dstrict] \starttext \index[=C4tsch]{=C4tsch} test \index{Q=C4tsch} test \index[ratsch]{R=C4= tsch} test=20 \placeindex \stoptext those who really want to know the details can look into the source and gr= ep for=20 strict in core-sys.tex think of something: \reduceargument an accented mess\to \ascii I will upload a new alpha version in a few hours Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------