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 o1GMKDrC019861 for ; Tue, 16 Feb 2010 23:20:14 +0100 Received: (qmail 25175 invoked by alias); 16 Feb 2010 22:20:07 -0000 Delivered-To: GMX delivery to rainer.schoepf@gmx.net Received: (qmail invoked by alias); 16 Feb 2010 22:20:07 -0000 Received: from relay.uni-heidelberg.de (EHLO relay.uni-heidelberg.de) [129.206.100.212] by mx0.gmx.net (mx054) with SMTP; 16 Feb 2010 23:20:07 +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 o1GMI8EJ012818 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 16 Feb 2010 23:18:08 +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 o1GJsAw9024695; Tue, 16 Feb 2010 23:18:07 +0100 Received: by LISTSERV.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 16.0) with spool id 387894 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Tue, 16 Feb 2010 23:18:07 +0100 Received: from relay.uni-heidelberg.de (relay.uni-heidelberg.de [129.206.100.212]) by listserv.uni-heidelberg.de (8.13.1/8.13.1) with ESMTP id o1GMI779001910 for ; Tue, 16 Feb 2010 23:18:07 +0100 Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.156]) by relay.uni-heidelberg.de (8.14.1/8.14.1) with ESMTP id o1GMI3ns012719 for ; Tue, 16 Feb 2010 23:18:07 +0100 Received: by fg-out-1718.google.com with SMTP id 19so538065fgg.16 for ; Tue, 16 Feb 2010 14:18:03 -0800 (PST) Received: by 10.87.45.14 with SMTP id x14mr12679852fgj.54.1266358683587; Tue, 16 Feb 2010 14:18:03 -0800 (PST) Received: from ?10.0.1.102? (114-30-119-136.ip.adam.com.au [114.30.119.136]) by mx.google.com with ESMTPS id d4sm10137757fga.13.2010.02.16.14.17.59 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 16 Feb 2010 14:18:01 -0800 (PST) Content-Type: text/plain; charset=iso-8859-1 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) X-Spam-Whitelist: Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by listserv.uni-heidelberg.de id o1GMI779001911 Message-ID: <1AE267EA-F412-43F4-AB00-49082CFEE062@gmail.com> Date: Wed, 17 Feb 2010 08:47:52 +1030 Reply-To: Mailing list for the LaTeX3 project Sender: Mailing list for the LaTeX3 project From: Will Robertson 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=5D7Q89H36p4U4jfdfC5HDevlx1X2sAZgP9e9F2VTUYI/FLDAh5vXTUdJ3cb8VrMsthL0D 3Bm5FvGPWoCdLJEm9HLQdq2oZJ1+efgJyyH9QG+8cq1UKQ2Q4e3tC9qRlfvjUoP37QqmdThnkNK6 /QEzQ==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: 6292 On 17/02/2010, at 12:34 AM, Manuel Pégourié-Gonnard wrote: > By the way, I find is rather weird, that \tl_if_eq doesn't really compare token > lists, but only their conversions as TeX strings. IMO it would be clearer to > have a \str_if_eq::nn(TF) function in the string module, and then conversion > functions from the tl to the str data type. > > 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. FWIW, I'm in favour of these ideas. Clearly up some of the edge cases with tl_replace_in (for example), which doesn't accept braces, would be helpful, I think. -- Will