Received: from mail.proteosys.com ([213.139.130.197]) by nummer-3.proteosys with Microsoft SMTPSVC(6.0.3790.3959); Thu, 15 May 2008 16:32:41 +0200 Received: by mail.proteosys.com (8.13.8/8.13.8) with ESMTP id m4FEWcJj023011 for ; Thu, 15 May 2008 16:32:38 +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 m4FENv40015186 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 15 May 2008 16:23:58 +0200 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 m4FE61cW025894; Thu, 15 May 2008 16:25:47 +0200 Received: by LISTSERV.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 15.5) with spool id 4501 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Thu, 15 May 2008 16:25:47 +0200 Received: from relay2.uni-heidelberg.de (relay2.uni-heidelberg.de [129.206.210.211]) by listserv.uni-heidelberg.de (8.13.1/8.13.1) with ESMTP id m4FEPlEQ031286 for ; Thu, 15 May 2008 16:25:47 +0200 Received: from rv-out-0708.google.com (rv-out-0708.google.com [209.85.198.251]) by relay2.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id m4FENqnn015077 for ; Thu, 15 May 2008 16:23:56 +0200 Received: by rv-out-0708.google.com with SMTP id c5so458368rvf.10 for ; Thu, 15 May 2008 07:25:42 -0700 (PDT) Received: by 10.141.20.7 with SMTP id x7mr1138780rvi.255.1210861542228; Thu, 15 May 2008 07:25:42 -0700 (PDT) Received: from ?129.127.15.244? ( [129.127.15.244]) by mx.google.com with ESMTPS id g31sm3762598rvb.2.2008.05.15.07.25.40 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 15 May 2008 07:25:41 -0700 (PDT) Content-Type: multipart/signed; boundary=Apple-Mail-20-626103635; micalg=sha1; protocol="application/pkcs7-signature" Mime-Version: 1.0 (Apple Message framework v919.2) References: <85BC623C-4952-4585-BC7E-4B3F75CA5A10@gmail.com> X-Mailer: Apple Mail (2.919.2) X-Spam-Whitelist: Message-ID: <1A8B3E0C-24D3-4D27-A649-395D2035FB34@gmail.com> Date: Thu, 15 May 2008 23:55:37 +0930 Reply-To: Mailing list for the LaTeX3 project Sender: Mailing list for the LaTeX3 project From: Will Robertson Subject: Re: Replacing inputenc for XeTeX/LuaTeX To: LATEX-L@LISTSERV.UNI-HEIDELBERG.DE In-Reply-To: Precedence: list List-Help: , List-Unsubscribe: List-Subscribe: List-Owner: List-Archive: X-ProteoSys-SPAM-Score: -2.599 () BAYES_00 X-Scanned-By: MIMEDefang 2.64 on 213.139.130.197 Return-Path: owner-latex-l@LISTSERV.UNI-HEIDELBERG.DE X-OriginalArrivalTime: 15 May 2008 14:32:42.0011 (UTC) FILETIME=[886BCEB0:01C8B698] Status: R X-Status: A X-Keywords: X-UID: 5203 --Apple-Mail-20-626103635 Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable On 15/05/2008, at 11:43 PM, Rainer Sch=F6pf wrote: > Are your proposing something like this at the beginning of =20 > inputenc.sty: > > \ifThisIsXeTeX > \switchInputEncodingTo{\optarg} > \endinput \fi > > ? If so, is there a simple implementation of \ifThisIsXeTeX ? Pretty much, yes. The ifxetex package provides \ifxetex (simply by checking for the =20 presence of \XeTeXversion). Here's some code that does approximately the right thing: (intended to =20= be a self-contained package in a XeTeX-exclusive search path to =20 override the normal inputenc.sty) %%%%%%%%%%%%%%%%%%%%%%%%%%%% \ProvidesPackage{inputenc} [2008/05/15 v0.1 XeTeX-specific inputenc package] \typeout{% Loading a XeTeX-specific package to override LaTeX's inputenc package.} \RequirePackage{ifxetex} \RequireXeTeX \DeclareOption*{% \PackageWarning{inputenc}{^^J\space\space XeTeX input encoding set to '\CurrentOption' for the rest of^^J% \space\space '\jobname' and all subsequent files to be read.^^J% This message occured}% \XeTeXinputencoding "\CurrentOption"% \XeTeXdefaultencoding "\CurrentOption"% } \ExecuteOptions{utf8} \ProcessOptions %%%%%%%%%%%%%%%%%%%%%%%%%%%% It's not very robust at the moment (i.e., the names XeTeX uses don't =20 always map to the inputenc names; see = for the full list of encoding names) so I'll have to do something =20 about that. But that's the general approach. I'm happy to maintain such a package that's intended to live in tex/=20 xelatex/inputenc.sty if you like; otherwise, it should probably be =20 rolled into inputenc.sty proper. Many thanks, Will= --Apple-Mail-20-626103635 Content-Disposition: attachment; filename=smime.p7s Content-Type: application/pkcs7-signature; name=smime.p7s Content-Transfer-Encoding: base64 MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIGITCCAtow ggJDoAMCAQICEDC1OgtYuc79Ry0eIxzNnOUwDQYJKoZIhvcNAQEFBQAwYjELMAkGA1UEBhMCWkEx JTAjBgNVBAoTHFRoYXd0ZSBDb25zdWx0aW5nIChQdHkpIEx0ZC4xLDAqBgNVBAMTI1RoYXd0ZSBQ ZXJzb25hbCBGcmVlbWFpbCBJc3N1aW5nIENBMB4XDTA3MDkwMTEwNDA0MFoXDTA4MDgzMTEwNDA0 MFowQjEfMB0GA1UEAxMWVGhhd3RlIEZyZWVtYWlsIE1lbWJlcjEfMB0GCSqGSIb3DQEJARYQd3Nw cjgxQGdtYWlsLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAObV0whQrOhb9IAE h8h/Kq1ZJVUme8DpDQycq3ZfSV3dTQCKz8AnQpZ6B254GLEGLKHAf+3NT6Mhh+ZeM0ChnVXlUN7L lj81aJaeKNPzvTqFsZGzO3qDSyEzu9rTZrsMtb8ybUJ/rcq0oTD+5jXg8tj5TYSzzVxFv9fp65+Z adV6Q6JPKmAHG8dYdxJpu6gt+Ardkz9e/Giq9rzmfnXsMSHyGBIhkDBc/mrZLp46kvthTdWM5pj6 NV1mePApqyMtjwfzJGmi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