Received: from mout.gmx.net (mout.gmx.net [212.227.17.20]) by h1439878.stratoserver.net (8.14.2/8.14.2/Debian-2build1) with ESMTP id r9PKCjUO003235 for ; Fri, 25 Oct 2013 22:12:51 +0200 Received: from relay.uni-heidelberg.de ([129.206.100.212]) by mx-ha.gmx.net (mxgmx107) with ESMTPS (Nemesis) id 0M83OH-1Vvqts0lP7-00vhda for ; Fri, 25 Oct 2013 22:12:34 +0200 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 r9PK9Vho018756 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 25 Oct 2013 22:09:31 +0200 Received: from listserv.uni-heidelberg.de (listserv.uni-heidelberg.de [127.0.0.1]) by listserv.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id r9PBLoZW007799; Fri, 25 Oct 2013 22:09:30 +0200 Received: by LISTSERV.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 16.0) with spool id 10521707 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Fri, 25 Oct 2013 22:09:30 +0200 Received: from relay.uni-heidelberg.de (relay.uni-heidelberg.de [129.206.100.212]) by listserv.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id r9PJxU4J012186 for ; Fri, 25 Oct 2013 21:59:30 +0200 Received: from mail-wi0-f180.google.com (mail-wi0-f180.google.com [209.85.212.180]) by relay.uni-heidelberg.de (8.14.1/8.14.1) with ESMTP id r9PJxKNh015357 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=FAIL) for ; Fri, 25 Oct 2013 21:59:23 +0200 Received: by mail-wi0-f180.google.com with SMTP id ey11so1663476wid.7 for ; Fri, 25 Oct 2013 12:59:20 -0700 (PDT) X-Received: by 10.180.187.202 with SMTP id fu10mr3902211wic.59.1382731160789; Fri, 25 Oct 2013 12:59:20 -0700 (PDT) Received: from palladium.local ([192.100.78.57]) by mx.google.com with ESMTPSA id ev4sm9286741wib.7.2013.10.25.12.59.19 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 25 Oct 2013 12:59:19 -0700 (PDT) User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:24.0) Gecko/20100101 Thunderbird/24.0.1 MIME-Version: 1.0 References: <52623D5C.1090607@clear.net.nz> X-Enigmail-Version: 1.5.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Message-ID: <526ACD96.9020304@morningstar2.co.uk> Date: Fri, 25 Oct 2013 20:59:18 +0100 Reply-To: Mailing list for the LaTeX3 project Sender: Mailing list for the LaTeX3 project From: Joseph Wright Subject: Re: uppercasing To: LATEX-L@LISTSERV.UNI-HEIDELBERG.DE In-Reply-To: <52623D5C.1090607@clear.net.nz> Precedence: list List-Help: , List-Unsubscribe: List-Subscribe: List-Owner: List-Archive: Envelope-To: X-GMX-Antispam: 0 (Mail was not recognized as spam); Detail=V3; X-GMX-Antivirus: 0 (no virus found) X-UI-Filterresults: notjunk:1;V01:K0:eRR7NTK9E78=:7rx4cy5zhL9pHAL3ul1cFDxULB K2xwNbffXg1BY4s1JKsdJzfnn+jTjaRZzWy9agQxlG4CXxU9WknbKfS/F/LtWmcV3MGzfDkUe P9fg8+ktwdR03tuVB3ObslYR4h/rC/mxnbWGE0L2qQFsTyceYpTNjBDHGa8mQj6bpmaBa4xlI eJEAq5raq74NyxTVRSc6kimi4J3bMY3X1RZVD8hm/aRx0KNjTU/2cDLqGIMavviUmuzUJImBi RUwMV4uompGTNhFI3Lp1pBs/+LrTgJKf30zcZG8vkQMlhzJO7Nw2Q6VKPtmxVLpVxt5yYr4R9 sMMTJF3mQXHfhdzmUitGjELHWNtJ7n8l5vNDf+A9m1ZEtgcAk04FzsM6xrpxh3PUHXKyATgUh pll0vblvriVLoP53wM50lR51nvwbrwvyEMCxNVjv9Wk2FLp2oVPwjOWxmjzqwQRTM6TUMJOW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c805i uv3qO1t8P3K1Za8FpV9tkx3y9YYfQZ8B+2ysDWuhs X-UI-Loop:V01:hNEtZb6+8kQ=:Vafmf18FlrD48GpJ0PnW5mzCgrtjiDjS91PORAPsOoU= Status: R X-Status: X-Keywords: X-UID: 7299 On 19/10/2013 09:05, Andrew Parsloe wrote: > I thought (naively) that writing > > \tl_set:Nx \l_tmpa_tl { \tl_to_uppercase:n {text} } > > would put TEXT in the variable \l_tmpa_tl (as revealed by \tl_show:N > \l_tmpa_tl). It doesn't, and nothing else that I've tried does either. > What is the recipe for getting \l_tmpa_tl to contain TEXT, starting from > text? > > Andrew As others have said, the current \tl_to_uppercase:n doesn't work as you'd expect here and you need \tl_expandable_uppercase:n. We (the team) know that \tl_to_uppercase:n is currently 'wrong' but haven't agreed on a 'good' solution. (See https://github.com/latex3/svn-mirror/issues/141 for more) Broadly, there are three cases we can thing of: - You want to make 'text' upper case for example for headings - You want to make 'strings' lower case for example for file name checks, case-insensitive ordering, etc. - You want to make 'weird' chars (catcode tricks with \lowercase primitive) The three different use cases need different interfaces and implementations, but getting to a point were we agree on what to do is tricky! -- Joseph Wright