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 s5UD9hBt017988 for ; Mon, 30 Jun 2014 15:09:44 +0200 Received: from relay.uni-heidelberg.de ([129.206.100.212]) by mx-ha.gmx.net (mxgmx109) with ESMTPS (Nemesis) id 0LmNoM-1WT5ne1p7C-00ZtkR for ; Mon, 30 Jun 2014 15:09:37 +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 s5UD6eka021393 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 30 Jun 2014 15:06:40 +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 s5UBI4Cw031072; Mon, 30 Jun 2014 15:06:39 +0200 Received: by LISTSERV.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 16.0) with spool id 11088840 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Mon, 30 Jun 2014 15:06:39 +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 s5UD6dsQ030498 for ; Mon, 30 Jun 2014 15:06:39 +0200 Received: from mail-wi0-f169.google.com (mail-wi0-f169.google.com [209.85.212.169]) by relay.uni-heidelberg.de (8.14.1/8.14.1) with ESMTP id s5UD5xPg021057 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=FAIL) for ; Mon, 30 Jun 2014 15:06:02 +0200 Received: by mail-wi0-f169.google.com with SMTP id hi2so5742425wib.2 for ; Mon, 30 Jun 2014 06:05:59 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.194.190.78 with SMTP id go14mr2698026wjc.128.1404133559508; Mon, 30 Jun 2014 06:05:59 -0700 (PDT) Received: by 10.194.2.3 with HTTP; Mon, 30 Jun 2014 06:05:59 -0700 (PDT) References: <53B11E4F.5010603@morningstar2.co.uk> Content-Type: text/plain; charset=UTF-8 X-MIME-Autoconverted: from quoted-printable to 8bit by listserv.uni-heidelberg.de id s5UD6dsQ030499 Message-ID: Date: Mon, 30 Jun 2014 09:05:59 -0400 Reply-To: Mailing list for the LaTeX3 project Sender: Mailing list for the LaTeX3 project From: "Joel C. Salomon" Subject: Re: Case changing operations To: LATEX-L@LISTSERV.UNI-HEIDELBERG.DE In-Reply-To: <53B11E4F.5010603@morningstar2.co.uk> Precedence: list List-Help: , List-Unsubscribe: List-Subscribe: List-Owner: List-Archive: Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by relay.uni-heidelberg.de id s5UD6eka021393 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:4hX0m8MwoEY=:zLCWTkdCflvSC5atBjfQyB/Zzw h2PMtNAhts9wrxq+QFTa03yLUGWPmifRTxppzL4c7q0w+knbzaErJYkD1m/oLsUP70T8B0CbS f/FFAquE4Dy1trOizj9tt3+HZwMLAbiZnlQFGFJJ3ZTSSvelw3EzIueDEyEBJFF36PL9j1GTW gu01PxxMVRZUiTv2Ix3txix4zsDKvXDOeDFP9zHw1HVH9DjixF60aXvaMD5Q2BbFCORSxG67Q woTcZ54jZ+eLVcNKXK8mEl1kNkJu1Cv31JNex99BK/4vgSqWdKnhLgWM39/5WzPUFOnUmASol YM5ArUCBT3JASUTJtbfHubuNLJxrdhrH67JTjiq+EiVGHmXUIahOVOdRM3xqrZOiYScvds9kU BhAaBdPwKqNNQusYuSbD5prS7/1tfr0G1+09k7VTChEiqYrEPTpyPbPlpgySbZzVrcy0cXYhn EhiOVp6e6XYFwDaEFtrfAax8KAFWltADokLTSoBXr5WHHI1yaC9hz1/PsJwdsV3OJd5GIErJf LvyrhTX7Z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LsgT79GqIwsd7nlNrVT4jU= Status: R X-Status: X-Keywords: X-UID: 7521 On 6/30/2014 4:22 AM, Joseph Wright wrote: > The versions with one argument do a relatively simple > language-insensitive mapping: > > \tl_lower_case:n { HELLO } =3D> "hello" > \tl_upper_case:n { hello } =3D> "HELLO" > \tl_mixed_case:n { HELLO } =3D> "Hello" > > while the two-argument versions can do language-dependent changes, such > as dotted/dotless-i/I handling in Turkish: > > \tl_upper_case:nn { tr } { i } =3D> "=C4=B0" There=E2=80=99s an important use-case that seems not to have been address= ed, but perhaps this is better handled in a different layer: mixed-language strings. For example, consider a document with the title, =E2=80=9CThe Interesting= Life of Rag=C4=B1p Hul=C3=BBsi =C3=96zdem=E2=80=9D (to chose the first Turkish= name I could find with both dotted i and dotless =C4=B1). Somehow, within the \title{} declaration, the change of language must be indicated so that (e.g.) at the top of the page this will be transformed to =E2=80=9CTHE INTERESTI= NG LIFE OF RAGIP HUL=C3=9BS=C4=B0 =C3=96ZDEM=E2=80=9D and not =E2=80=9CTHE I= NTEREST=C4=B0NG L=C4=B0FE =E2=80=A6=E2=80=9D nor =E2=80=9C=E2=80=A6 LIFE OF RAGIP HUL=C3=9BSI =E2=80=A6=E2=80=9D. A similar situation arises in German where within geographical names =E2=80=98=C3=9F=E2=80=99 should capitalize to the recently-defined =E2=80= =98=E1=BA=9E=E2=80=99, not =E2=80=98SS=E2=80=99. (According to , this rule= was adopted in 2010.) As I said, this is probably best handled in a separate layer: Code that capitalizes user-provided text would need to defer to the LaTeX3 equivalent of Babel, which would scan the text for user-level language-change commands, and (among other things) call \tl_upper_case:nn with the appropriate language argument. But I think it=E2=80=99s important that the interface to the casing functions being defined now be aware of the way they will likely be used. =E2=80=94Joel