Received: from mail.proteosys.com ([213.139.130.197]) by nummer-3.proteosys with Microsoft SMTPSVC(6.0.3790.3959); Tue, 17 Mar 2009 02:30:07 +0100 Received: by mail.proteosys.com (8.14.3/8.14.3) with ESMTP id n2H1U6c2000726 for ; Tue, 17 Mar 2009 02:30:06 +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 n2H1NQZi007888 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 17 Mar 2009 02:23:27 +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 n2GN1BFt016780; Tue, 17 Mar 2009 02:23:20 +0100 Received: by LISTSERV.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 15.5) with spool id 205993 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Tue, 17 Mar 2009 02:23:19 +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 n2H1NJFT026842 for ; Tue, 17 Mar 2009 02:23:19 +0100 Received: from rv-out-0708.google.com (rv-out-0708.google.com [209.85.198.250]) by relay.uni-heidelberg.de (8.14.1/8.14.1) with ESMTP id n2H1NERo007805 for ; Tue, 17 Mar 2009 02:23:18 +0100 Received: by rv-out-0708.google.com with SMTP id k29so1730913rvb.10 for ; Mon, 16 Mar 2009 18:23:13 -0700 (PDT) Received: by 10.115.58.18 with SMTP id l18mr3774806wak.180.1237252993646; Mon, 16 Mar 2009 18:23:13 -0700 (PDT) Received: from ?10.0.1.104? (219-90-183-123.ip.adam.com.au [219.90.183.123]) by mx.google.com with ESMTPS id v32sm5533656wah.17.2009.03.16.18.23.11 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 16 Mar 2009 18:23:12 -0700 (PDT) Content-Type: multipart/signed; boundary=Apple-Mail-1--899733578; micalg=sha1; protocol="application/pkcs7-signature" Mime-Version: 1.0 (Apple Message framework v930.3) References: <200903170018.n2H0IvL24074@f7.net> X-Mailer: Apple Mail (2.930.3) X-Spam-Whitelist: Message-ID: <84F2BC6E-255F-4287-8554-66264C9C193F@GMAIL.COM> Date: Tue, 17 Mar 2009 11:53:07 +1030 Reply-To: Mailing list for the LaTeX3 project Sender: Mailing list for the LaTeX3 project From: Will Robertson Subject: Re: inputenc for XeTeX and LuaTeX To: LATEX-L@LISTSERV.UNI-HEIDELBERG.DE In-Reply-To: <200903170018.n2H0IvL24074@f7.net> Precedence: list List-Help: , List-Unsubscribe: List-Subscribe: List-Owner: List-Archive: X-ProteoSys-SPAM-Score: -4 () RCVD_IN_DNSWL_MED X-Scanned-By: MIMEDefang 2.65 on 213.139.130.197 Return-Path: owner-latex-l@LISTSERV.UNI-HEIDELBERG.DE X-OriginalArrivalTime: 17 Mar 2009 01:30:07.0320 (UTC) FILETIME=[E7A60D80:01C9A69F] Status: R X-Status: X-Keywords: X-UID: 5713 --Apple-Mail-1--899733578 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit (Karl replied off-list with some other stuff as well; I'm replying to the pertinent bits on-list) On 17/03/2009, at 10:48 AM, Karl Berry wrote: > reliably detect or branch based on \input > > I don't understand what this means. Do we need to extend the > engines in > some way? LuaTeX can handle things just fine, since it can add a callback to the file loading routine. The problem is that XeTeX always writes in UTF8 (having discussed with Jonathan the possibility of an output write encoding, always using UTF8 is the more sensible way to do it). When reading files in LaTeX, there are two possibilities: 1. It's an external file, like a section or chapter; this has to follow the input encoding of the main file 2. It's an auto-generated file being read in a second compilation; this has to be read in UTF8 The idea of xetex-inputenc is to set up the default encoding for the main file and all subsequent files; it then has to detect when auto- generated files (like .aux) are being read and insert the code to temporarily switch back to UTF8. This is what I do (and it works well, seemingly) for \@input, which is used by the kernel for reading in auxiliary files that aren't added to the \listfiles list. If only every package used that macro. Many packages use \input instead, which is the problem, because LaTeX redefines \input to *either* behave like the TeX primitive *or* to take a braced argument. So some packages write "\input foo" and others "\input{foo}". From the LaTeX POV, it's impossible to conditionally call code based on the file input, then, because some packages don't use the sane syntax. However, all of the above is slightly obscure, since most people will be using UTF8 input with XeTeX anyway. The fact that some edge cases aren't covered doesn't worry me, personally, but does mean that this code probably shouldn't become part of LaTeX2e proper. For me, the aim is to fix the problem when users try \usepackage[utf8]{inputenc} We're just trying to support the other encodings because it's (mostly) possible. > Like I said above, I'd like to resolve this for TeXLive 2009, > > Do you have any idea of whether there will be another LaTeX release in > time? I was kind of expecting that there wouldn't be, although of > course it would be great if so. I hadn't thought that far ahead :) I was hoping at the very least it would be easy enough to get a patched inputenc.sty into TL'09, even if it slightly by-passed the normal LaTeX release regime. But perhaps I'm being naive. Will --Apple-Mail-1--899733578 Content-Disposition: attachment; filename=smime.p7s Content-Type: application/pkcs7-signature; name=smime.p7s Content-Transfer-Encoding: base64 MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIGITCCAtow ggJDoAMCAQICECN4qE5kBXLk2f/jVDfSZPwwDQYJKoZIhvcNAQEFBQAwYjELMAkGA1UEBhMCWkEx JTAjBgNVBAoTHFRoYXd0ZSBDb25zdWx0aW5nIChQdHkpIEx0ZC4xLDAqBgNVBAMTI1RoYXd0ZSBQ ZXJzb25hbCBGcmVlbWFpbCBJc3N1aW5nIENBMB4XDTA5MDEyOTA1NDkxNVoXDTEwMDEyOTA1NDkx NVowQjEfMB0GA1UEAxMWVGhhd3RlIEZyZWVtYWlsIE1lbWJlcjEfMB0GCSqGSIb3DQEJARYQd3Nw cjgxQGdtYWlsLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0BeSiAbKuqxeRN p2qn/m8ZL+xawr/WXyPgEF0FipWgRe9l3sMXcFHokcUu0xOc97R7xkUsGcQ8EyybGHuWey6x7X1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