Received: from mout.gmx.net (mout.gmx.net [212.227.17.22]) by h1439878.stratoserver.net (8.14.2/8.14.2/Debian-2build1) with ESMTP id r9PKpllc003354 for ; Fri, 25 Oct 2013 22:51:48 +0200 Received: from relay2.uni-heidelberg.de ([129.206.210.211]) by mx-ha.gmx.net (mxgmx010) with ESMTPS (Nemesis) id 0Lxcct-1VkL1p1ecl-017Cil for ; Fri, 25 Oct 2013 22:51:42 +0200 Received: from listserv.uni-heidelberg.de (listserv.uni-heidelberg.de [129.206.100.94]) by relay2.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id r9PKmXtj024314 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 25 Oct 2013 22:48:33 +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 r9PBLob2007799; Fri, 25 Oct 2013 22:48:32 +0200 Received: by LISTSERV.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 16.0) with spool id 10521923 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Fri, 25 Oct 2013 22:48:32 +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 r9PKmWcF014682 for ; Fri, 25 Oct 2013 22:48:32 +0200 Received: from smtp3.clear.net.nz (smtp3.clear.net.nz [203.97.33.64]) by relay.uni-heidelberg.de (8.14.1/8.14.1) with ESMTP id r9PKmKdQ000774 for ; Fri, 25 Oct 2013 22:48:24 +0200 Received: from mxin1-orange.clear.net.nz (lb2-srcnat.clear.net.nz [203.97.32.237]) by smtp3.clear.net.nz (CLEAR Net Mail) with ESMTP id <0MV8005O6SGJBC30@smtp3.clear.net.nz> for LATEX-L@listserv.uni-heidelberg.de; Sat, 26 Oct 2013 09:48:20 +1300 (NZDT) Received: from 218-101-96-16.dialup.clear.net.nz (HELO [127.0.0.1]) ([218.101.96.16]) by smtpin1.clear.net.nz with ESMTP; Sat, 26 Oct 2013 09:48:18 +1300 MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7bit X-Antivirus: avast! (VPS 131024-0, 25/10/2013), Outbound message X-Antivirus-Status: Clean References: <52623D5C.1090607@clear.net.nz> <526ACD96.9020304@morningstar2.co.uk> User-Agent: Mozilla/5.0 (Windows NT 6.0; rv:24.0) Gecko/20100101 Thunderbird/24.0.1 Message-ID: <526AD90B.1030401@clear.net.nz> Date: Sat, 26 Oct 2013 09:48:11 +1300 Reply-To: Mailing list for the LaTeX3 project Sender: Mailing list for the LaTeX3 project From: Andrew Parsloe Subject: Re: uppercasing To: LATEX-L@LISTSERV.UNI-HEIDELBERG.DE In-Reply-To: <526ACD96.9020304@morningstar2.co.uk> 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:3VTyS4v3cmE=:Gia8lJZqyQGmQHHtzEynTrTk3H EO9veomNYh3fVxkLQPMwmxiCO444/4ajscFKG6sozuHUCzu6WqvCz7PU4P71VvcFIH+fqN2fh N2ZEGPjovSFGlmW7TQ8IQw3J44cJw/aQukElT5v6clg8rOSH81izsj7m63TdZBB5KqEmMj0Rl LxMsk0mTM+EsmGsVVsvUkPEasnkoTXGByhPv3fDfz4RpBMFFMC55d2PagQClyFHuSEVeQhZYT HlVsNZGvYg9l4f+psu9c9VSqLQ6iUxwy/P5xK0zPAIKQPNnV4zMrP4QeXVPQp6clj1UIQK4Mz 3NdofKT2SFkf7jElesepA0+eliUUkRNI7Hq3cLWMPWa0rvbR0doK8x/H6uOYQmk9wJxH+NhmB iSXt+Me/apWQnaQPJ1TL6j97oHplUpDjqv1kKh9ydzJ9xEIUG3wOVOC2RmbF2yKebsvbRX0s7 SA1VlbxN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1/en2Dr0HWs8wRrI 55n1+NlHhwXIPr/zn8KBDg4lwslgwWR6i2yXr3IYV X-UI-Loop:V01:gyUawvwcEtM=:Q75BrQeVjrntag6e91kSpoHfJLnlKlSviYiyUhGdt0E= Status: R X-Status: X-Keywords: X-UID: 7300 On 26/10/2013 8:59 a.m., Joseph Wright wrote: > 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! > Thanks for the explanation. I was wanting case-insensitive sorting. I'm new to LaTeX3 and expl -- "discovered" them about mid-August. My previous "record" of TeX coding was about 8 lines. But with expl I managed to put together a package of nearly 1200 lines, perhaps 800 of them being actual coding lines. That's two orders of magnitude more productive. The package, based on l3fp, is designed to exploit the LyX document processor's "instant preview" facility and dynamically evaluate formulae "before one's eyes": http://marc.info/?l=lyx-users&m=138122526923848&w=2 It was received with an absolutely thunderous silence. Andrew