Received: from mx0.gmx.net (mx0.gmx.net [213.165.64.100]) by h1439878.stratoserver.net (8.14.2/8.14.2/Debian-2build1) with SMTP id o1H2GTVZ019695 for ; Wed, 17 Feb 2010 03:16:30 +0100 Received: (qmail 14162 invoked by alias); 17 Feb 2010 02:16:24 -0000 Delivered-To: GMX delivery to rainer.schoepf@gmx.net Received: (qmail invoked by alias); 17 Feb 2010 02:16:23 -0000 Received: from relay.uni-heidelberg.de (EHLO relay.uni-heidelberg.de) [129.206.100.212] by mx0.gmx.net (mx046) with SMTP; 17 Feb 2010 03:16:23 +0100 Received: from listserv.uni-heidelberg.de (listserv.uni-heidelberg.de [129.206.100.94]) by relay.uni-heidelberg.de (8.14.1/8.14.1) with ESMTP id o1H2ETEU010629 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 17 Feb 2010 03:14:29 +0100 Received: from listserv.uni-heidelberg.de (localhost.localdomain [127.0.0.1]) by listserv.uni-heidelberg.de (8.13.1/8.13.1) with ESMTP id o1GN12A1006687; Wed, 17 Feb 2010 03:14:28 +0100 Received: by LISTSERV.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 16.0) with spool id 389398 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Wed, 17 Feb 2010 03:14:28 +0100 Received: from relay2.uni-heidelberg.de (relay2.uni-heidelberg.de [129.206.210.211]) by listserv.uni-heidelberg.de (8.13.1/8.13.1) with ESMTP id o1H2ES5r019099 for ; Wed, 17 Feb 2010 03:14:28 +0100 Received: from smtp109.plus.mail.re1.yahoo.com (smtp109.plus.mail.re1.yahoo.com [69.147.102.72]) by relay2.uni-heidelberg.de (8.13.8/8.13.8) with SMTP id o1H2EJx9027836 for ; Wed, 17 Feb 2010 03:14:20 +0100 Received: (qmail 70000 invoked from network); 17 Feb 2010 02:14:19 -0000 Received: from g228063171.adsl.alicedsl.de (st_philipp@92.228.63.171 with plain) by smtp109.plus.mail.re1.yahoo.com with SMTP; 16 Feb 2010 18:14:19 -0800 PST X-Yahoo-SMTP: _jlT6bOswBCTfNEaYibKorijSw14_bs- X-YMail-OSG: OKaXfb0VM1nbsVMeMeRMO032ehv3f5fAA7bIyPj4a6QyCudw1Z4HXQ5lWZKtkfiUBJY7gLB7uzFGew4Us_4tOeHPSuXQt2klVvpDXhV4P37tWzD6JBNcim3wGOV.GFiEv2DAI6L1Bg5DBE7b5udhS4lywFzR1uGucxtVh_nGCSxIg17mJE3w9K4Vp77NfejPvS5AHz9HDo5mRaMPlsy72uRz9GfDy_yAqitnZEZYfmbQliF98_GKJodIXRnqkXVLKzmBGa0aEf9pwaCX.mXeMhFn5oIJM9d6ja..5YLGgXudltGybdTa2mdWB4_KQD__0StWX3LcetdB4IFRL35rIgnnBllAZpOEdth4QIrOLKrhDmHiJjpZKPh60OhfPPV1Tp1okYdg38NZyz3wxecI518F4f1.i8XKrI1kSQ-- X-Yahoo-Newman-Property: ymail-3 Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Apple Message framework v1077) References: <4B727378.8060704@morningstar2.co.uk> <20100210100943.GA3759@oberdiek.my-fqdn.de> <4B7298D6.7080206@morningstar2.co.uk> <20100210145258.GA18188@oberdiek.my-fqdn.de> <4B72D339.5080104@morningstar2.co.uk> <4B7AA5D7.8010104@elzevir.fr> X-Mailer: Apple Mail (2.1077) Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by listserv.uni-heidelberg.de id o1H2ES5r019100 Message-ID: Date: Wed, 17 Feb 2010 03:14:17 +0100 Reply-To: Mailing list for the LaTeX3 project Sender: Mailing list for the LaTeX3 project From: Philipp Stephani Subject: Re: String module To: LATEX-L@listserv.uni-heidelberg.de In-Reply-To: <4B7AA5D7.8010104@elzevir.fr> Precedence: list List-Help: , List-Unsubscribe: List-Subscribe: List-Owner: List-Archive: X-GMX-Antispam: 0 (Mail was not recognized as spam); Detail=5D7Q89H36p77e5KAPs1l6v/Sb97LojnDtMgfETrECMLUO9erHzOJe+OynZRhvlGqvET/J 3dm2vHWnQHIuidpgLhS+P7NNYz+zyHLMY9yCwGoTDtboDaDPUTmYi5shhPJySBzZnboYr4mQK+ZF NwOSQ==V1; X-Resent-By: Forwarder X-Resent-For: rainer.schoepf@gmx.net X-Resent-To: rainer@rainer-schoepf.de X-Scanned-By: MIMEDefang 2.63 on 85.214.41.38 Status: R X-Status: X-Keywords: X-UID: 6295 Am 16.02.2010 um 15:04 schrieb Manuel Pégourié-Gonnard: > Such conversion function could also be the place to implement "string input > methods" if they are needed. Eg, the most basic conversion function would be > something like \edef + \detokenize, but one could imagine a conversion function > that locally redefines \% as expanding into a catcode 12 %, etc. before > performing the \edef, so that a user can easily input arbitrary strings. I have also thought a bit about this, more from a user perspective: Users wonder why using \verb or \index inside macros produces weird results. So there should probably be a class of functions to define \index- and \verb-like commands – e.g. with argument specifiers like "s" and "v" in xparse. The commands thus defined should then receive only other tokens and also check for this. In this way misusing of the commands can be easily detected, and in this case the command can fall back to \detokenize and output a user-friendly error message. I think that, apart from that, a strings module would be quite handy, as true strings (not token lists) occur in many places: file names, file i/o, terminal i/o, PDF strings, indexes.