Received: from mout.gmx.net (mout.gmx.net [212.227.15.15]) by h1439878.stratoserver.net (8.14.2/8.14.2/Debian-2build1) with ESMTP id s3UBpcCt031242 for ; Wed, 30 Apr 2014 13:51:39 +0200 Received: from relay2.uni-heidelberg.de ([129.206.210.211]) by mx-ha.gmx.net (mxgmx003) with ESMTPS (Nemesis) id 0Mg0iT-1WTaw2331Z-00NUMN for ; Wed, 30 Apr 2014 13:51:32 +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 s3UBmaFi001913 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 30 Apr 2014 13:48:37 +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 s3U92OMV014672; Wed, 30 Apr 2014 13:48:36 +0200 Received: by LISTSERV.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 16.0) with spool id 10872017 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Wed, 30 Apr 2014 13:48:36 +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 s3UBmavJ018862 for ; Wed, 30 Apr 2014 13:48:36 +0200 Received: from mail-ee0-f46.google.com (mail-ee0-f46.google.com [74.125.83.46]) by relay.uni-heidelberg.de (8.14.1/8.14.1) with ESMTP id s3UBmGaj018359 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=FAIL) for ; Wed, 30 Apr 2014 13:48:19 +0200 Received: by mail-ee0-f46.google.com with SMTP id t10so1272868eei.33 for ; Wed, 30 Apr 2014 04:48:16 -0700 (PDT) X-Received: by 10.15.61.133 with SMTP id i5mr3808367eex.80.1398858144056; Wed, 30 Apr 2014 04:42:24 -0700 (PDT) Received: from mellon.site (p548054A3.dip0.t-ipconnect.de. [84.128.84.163]) by mx.google.com with ESMTPSA id q49sm67204323eem.34.2014.04.30.04.42.22 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 30 Apr 2014 04:42:23 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 References: <535FB8BC.2040409@nag.co.uk> <536078C4.5040103@googlemail.com> <5360BAB2.4040600@nag.co.uk> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Message-ID: <5360E19D.3020105@googlemail.com> Date: Wed, 30 Apr 2014 13:42:21 +0200 Reply-To: Mailing list for the LaTeX3 project Sender: Mailing list for the LaTeX3 project From: Heiko Oberdiek Subject: Re: preview of latex2e 2014 release To: LATEX-L@LISTSERV.UNI-HEIDELBERG.DE In-Reply-To: <5360BAB2.4040600@nag.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:VKp/t7zVwGE=:NZdJaxKPFmzFdi9XgCIfkqwjEi yapwXs2BO1TTWlcNbsq+rEytIuaipxVTu11C1EbMKoF2b9lB970qv1lNw/0aDJULAwuMm7IWX v74MsdgTgXCUTCTrqtasYW0y1k2Ukg1nhS5CsbQanp5qjj2KyK+oLIX7mYUXFhYCz84fM2dte f2J5OjXH9ByWn0TJPua1f4iSNKrboDi1TL/7mR+udxBs3qXJ1cfBE285qc6Gwo/vGLhEFuoD4 r0cem0czZ3ODN7BM5oPqBfFOsgPUpVWP5UKnxDWpLsPrE4oi767dod5s21/dJqSJRkZoVGEMk R6cT/KQY4vZrsufR6GTxjp0zjWKS8IH1s6xmPDl5TiQL4CLO/4zgnTgnkszb0ROfECmdUswaD FMBrSV8OhGUKqnqJOEGxs4Ycc1szWepTpHOXa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Cijo=:2MAvi/YxkY8UFlBmYc1pzk02r8eVlyGN+jnQCXa2lpU= Status: R X-Status: X-Keywords: X-UID: 7374 On 30.04.2014 10:56, David Carlisle wrote: > On 30/04/2014 05:15, Heiko Oberdiek wrote: > I'd wondered about fontenc originally but didn't as fontenc only works > on these engines and if you are doing > > \ifxetex > \usepackage{fontenc} > \setmainfont... > \else > ... > \fi This will then break with LuaTeX, thus actually something like the following is needed: \usepackage{ifxetex,ifluatex} \ifxetex \usepackage{fontspec} \setmainfont... or whatever \else \ifluatex \usepackage{fontspec} \setmainfont... or whatever, maybe different from XeTeX case \else \usepackage[T1]{fontenc}% or similar \usepackage[utf8]{inputenc} \usepackage{lmodern}% or whateverX \fi \fi > then you could load inputenc package in the \else branch and the problem > this change was trying to help of inputenc not working with xetex/luatex > would not be an issue. But perhaps you are right and mentioning fontspec > would help. If a user is able to write code such as above, then he would not really need a warning/error of inputenc at all. But I think it is not the issue here. The typical use case would be that the use comes from traditional LaTeX, e.g.: \usepackage[utf8]{inputenc}% without fontenc or \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{textcomp} But that will break with LuaLaTeX or XeLaTeX, because utf8.def expects bytes instead of big chars. Just saying, inputenc is not necessary is not helping either. The error messages will probably be gone, because neither XeTeX or LuaTeX are able (AFAIK) to throw an error message or even a warning, if glyphs are not available or that the wrong glyphs are shown, because the font encoding is not Unicode. > on ascii I think it hadn't occurred to me that anyone was using inputenc > with ascii:) unlike on pdftex it's not feasible to make all the > non-ascii chars invalid but on the grounds of not breaking existing > documents I think you are right that we should let ascii x-ascii and > utf8x through. > > It would be possible to do as you suggest above and disable the control > characters below 32, but I think it's more important on unicode engines > to move away from using active characters for encoding support so I'd > rather just treat all these as aliases for the native engine utf8 support. Ok. Perhaps I add something to `inputenx'. > Which would mean something like > > [...] > \@tfor\reserved@b:={utf8}{utf8x}{ascii}{x-ascii}\do{% > [...] > > which makes > > ! Package inputenc Error: inputenc not required for xetex or luatex. > (inputenc) only UTF-8 supported. s/not/is not/ s/supported/is supported/ s/xetex/XeTeX/ s/luatex/LuaTeX/ > See the inputenc package documentation for explanation. > Type H for immediate help. > [...] > For xelatex or lualatex do not load inputenc or use [utf8] option. At least "the inputenc package documentation" needs something that explains the situation, as you have done here. > for an unsupported encoding or for utf8(x) or (x-)ascii it does > > Package inputenc Warning: inputenc not required for xetex or luatex. > (inputenc) utf8 assumed. > (inputenc) The fontspec package may be required to > (inputenc) access suitable fonts. Much better. s/xetex/XeTeX/ s/luatex/LuaTeX/ s/assumed/is assumed/ Yours sincerely Heiko Oberdiek