From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/17739 Path: main.gmane.org!not-for-mail From: Henning Hraban Ramm Newsgroups: gmane.comp.tex.context Subject: function that purges 8 bit text? Date: Wed, 5 Jan 2005 22:57:01 +0100 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 (Apple Message framework v619) Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1104962238 10330 80.91.229.6 (5 Jan 2005 21:57:18 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 5 Jan 2005 21:57:18 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Wed Jan 05 22:57:08 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 1CmJ9Q-0008UE-00 for ; Wed, 05 Jan 2005 22:57:08 +0100 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A5D0712792; Wed, 5 Jan 2005 22:57:07 +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 20529-04; Wed, 5 Jan 2005 22:57:06 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6019212775; Wed, 5 Jan 2005 22:57:06 +0100 (CET) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B202F12775 for ; Wed, 5 Jan 2005 22:57:04 +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 20528-04-2 for ; Wed, 5 Jan 2005 22:57:04 +0100 (CET) Original-Received: from moutng.kundenserver.de (unknown [212.227.126.183]) by ronja.ntg.nl (Postfix) with ESMTP id 0369412772 for ; Wed, 5 Jan 2005 22:57:04 +0100 (CET) Original-Received: from [212.227.126.160] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 1CmJ9M-0007ya-00 for ntg-context@ntg.nl; Wed, 05 Jan 2005 22:57:04 +0100 Original-Received: from [83.76.230.185] (helo=[192.168.1.3]) by mrelayng.kundenserver.de with asmtp (Exim 3.35 #1) id 1CmJ9L-0002ML-00 for ntg-context@ntg.nl; Wed, 05 Jan 2005 22:57:03 +0100 Original-To: ConTeXt ML X-Mailer: Apple Mail (2.619) X-Provags-ID: kundenserver.de abuse@kundenserver.de auth:033f42bdb3cd4a3c9b0966e414a370c7 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:17739 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:17739 Hi there! I try to typeset a roleplaying character sheet as PDF form; it contains a table of skills, each line is a \SkillField after this=20 def: \def\SkillField#1#2{\bTR\bTD #1\hfill (#2) \eTD \bTD=20 \definefield[#1][line][SkillSetup][#2]\field[#3]\eTD\eTR} e.g. \SkillField{Climbing}{+8} becomes a table line like: Climbing (+8) [+8] Now there are a lot of skills that contain e.g. umlauts, so that=20 \definefield[#1] fails. I don't like to introduce a third parameter. Is there a possibility to strip all invalid chars from a string, so that \SkillField{Erz=E4hlen}{0} can define a field named "Erzaehlen" or=20 "Erzhlen" or "Erzahlen"? (Sorry, I can't program in TeX.) If this is not possible, I'll try an optional parameter. Gr=FC=DFlis vom Hraban! --- http://www.fiee.net/texnique/ http://contextgarden.net=