Received: from mout.gmx.net (mout.gmx.net [212.227.15.18]) by h1439878.stratoserver.net (8.14.4/8.14.4/Debian-2ubuntu2.1) with ESMTP id t8G7ljwM012697 for ; Wed, 16 Sep 2015 09:47:46 +0200 Received: from relay.uni-heidelberg.de ([129.206.100.212]) by mx-ha.gmx.net (mxgmx007) with ESMTPS (Nemesis) id 0LbR6Y-1YsdHd2IA6-00kvqe for ; Wed, 16 Sep 2015 09:47:40 +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 t8G7jCcg010090 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 16 Sep 2015 09:45:12 +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 t8G5WNnv020690; Wed, 16 Sep 2015 09:45:11 +0200 Received: by LISTSERV.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 16.0) with spool id 12531127 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Wed, 16 Sep 2015 09:45:11 +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 t8G7jBDr004443 for ; Wed, 16 Sep 2015 09:45:11 +0200 Received: from mxout.hzdr.de (mxout.hzdr.de [149.220.4.85]) by relay.uni-heidelberg.de (8.14.1/8.14.1) with ESMTP id t8G7j658010031 for ; Wed, 16 Sep 2015 09:45:08 +0200 Received: from fz-rossendorf.de (mail.fz-rossendorf.de [149.220.4.64]) by mxout.hzdr.de (Postfix) with ESMTP id 3C99FBC88 for ; Wed, 16 Sep 2015 09:45:06 +0200 (CEST) Received: from [149.220.65.84] (HELO fwo045.hzdr.de) by hzdr.de (CommuniGate Pro SMTP 6.1.5) with ESMTP id 11078823 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Wed, 16 Sep 2015 09:45:06 +0200 Received: by fwo045.hzdr.de (Postfix, from userid 1530) id 2F000E80E5; Wed, 16 Sep 2015 09:44:52 +0200 (CEST) References: <20150915081218.GA31916@hzdr.de> <55F88867.90907@morningstar2.co.uk> <55F90A88.6050308@morningstar2.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) Message-ID: <20150916074452.GB13341@hzdr.de> Date: Wed, 16 Sep 2015 09:44:52 +0200 Reply-To: Mailing list for the LaTeX3 project Sender: Mailing list for the LaTeX3 project From: Alexander Grahn Subject: Re: interface for test on driver being used To: LATEX-L@LISTSERV.UNI-HEIDELBERG.DE In-Reply-To: <55F90A88.6050308@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:QGf/9MNmbr8=:pww3K2MiTyQkpOYDmq30ZS529D s+FBFQA2bHJp5w162jgoUeP5yoQaHZ6oYLXi4NF48ziKhix5fInJupgc/sJh7fucAsriRw4w3 u5knyu/DoEQYTKfkbaXCxYec46AfqUeEV4QSlewJFDTEFfi4jF6NxnvApY7S/Wq2G7iILDhe7 prnzCFiBSeZO4UrlxeTT5mxbpKdCW8d8NWO6ZaCn4gUvwIlyy93ehUzP9s3+FVrDdIpzjzNyZ pSbRnIlxIko8keOeyFyqX1t+npC7zAoY0iHt1lpEeIL3RQEirsZYMjBgcI4dCv12u/a1pXZCQ xr5XRr2WLZwRHADpbPkzSvIYzqzsJJtl8vm/ZgJ9auR0Q728dCLOFa2rdbRWc9Z7VzufSAPui ugBPL+NRazZhUbKLrSVUALxXc5v1zJleg3nyb/pKrOKfUtMBuCVNhZCVLLVMENkF6Fp+ZJwgB n7BBRl0HYqHAbWP1mGQdoJei4kZ+a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0F0m/De3lDhbGOrCvmFlGT2EU= X-UI-Out-Filterresults: notjunk:1;V01:K0:fapdrBYjKEM=:mRSny0NL1czV901fgb6XdT tN7j7kfHDmUdkqc548xRI2GTQBQ6B6eE2Mhky/GEsfRGakpwQspE7fSBP54eJQN+tM9DwdR/s 1Hd8VSvhYKD7XGzyClZwJD3B0vEPm01wuEr+81HFgclMeMdC+8Ikx+fFIzS5g/JbehwO60Ohl gKy31WsLNMB7ZiEv7rQkluVZtH8dH5TevO0jcNVCywKPnYSZN7w0HU42xyRtwQJ+QOfgkZUKI qIGkIqZ+qouYdKPs5txbC1SHdSMP+kZENLI6X035P/l1u0XflPElHs0iNBTM/FLDUjz9PWj7k d1rsfJbdcXDtJFExwe+qN614q3MX++M3JRF2WJdhlL69lwIkqwG0LHs8ASW2nzCyJVWLBfF9U i+doX2hTxRZWVgQnyQb5vCJ03gB+z7om167YGPyLtP+nJjObHDKvpJJXMrEVDVQck3vBuaLNi H9x/+IOc//f0Fh9JWJa/Kf9xAyAlqi34AyrQBiliVrwUuxVKAjqL X-Scanned-By: MIMEDefang 2.71 on 85.214.41.38 Status: R X-Status: X-Keywords: X-UID: 7878 On Wed, Sep 16, 2015 at 07:22:00AM +0100, Joseph Wright wrote: >On 16/09/2015 01:51, Bruno Le Floch wrote: >> On 9/15/15, Joseph Wright wrote: >>> On 15/09/2015 09:12, Alexander Grahn wrote: >>>> Good morning, >>>> >>>> There is a number of functions in the new l3sys package for testing the >>>> current engine, but I am still missing a public interface for testing >>>> the driver. The l3drivers package internally uses some mechanism to >>>> distinguish between pdfmode, dvips, dvipdfmx and xdvipdfmx. Will there be >>>> such a testing be included in the public interface of expl3 one day? >>>> >>>> Currently, I am still using a combination if the `ifpdf' package and the >>>> \*_if_engine* functions for the purpose of driver detection. >>>> >>>> Kind regards, >>>> Alexander >>> >>> Hello Alexander, >>> >>> Adding material to l3sys is on the 'to do' list but there are several >>> things there for 'soon'! I can certainly look to add a DVI/PDF test >>> (definitely one to do). >>> >>> In terms of drivers, we could/should move that code to l3sys anyway. The >>> question of to what extent any code of this form should be outside of >>> the kernel is tricky: for say drawing I can imagine something akin to >>> pgf's system layer with a low-level public interface on top (there are a >>> limited number of well-defined operations). For what you want (I'm >>> guessing) that's not so clear: I've not looked in detail but I assume >>> the entire set up for movie inclusion is highly system-dependent. >>> >>> Joseph >> >> I think it makes sense indeed to provide a conditional for the driver >> in use. However, we should provide wrappers for most operations >> (drawing, graphics inclusion, color handling) and explicitly advise >> people to use these wrappers rather than the driver conditional. >> Movie inclusion is a bit special and may be beyond what we want to >> provide wrappers for. But maybe it could make sense to include a >> trimmed-down version of media9 as a team-supported package? >> >> Bruno > >Quite: I can see how to abstract graphics inclusion, basic drawing >operations, etc. but probably not the complexities of movie inclusion! > >Joseph > Thank you all for the feedback, indeed, my question was motivated by issues arising during the maintainance of the media9 package. Therein, the code branches according to the output driver in order to implement a unified (driver independent) interface for low-level PDF operations mostly modelled after those provided by PDFTeX, a few after Adobe's pdfmark specification. This is quite independent from the actual package's purpose of media inclusion. The interface could be used within other packages related to PDF features and has, indeed, been used in the ocgx2 package already. There are other packages trying to implement such an interface, e. g. hyperref or navigator. But they turned out to not be useable for my purposes because the interface they provide is either incomplete or not sufficently low-level. This is the list of pdfTeX commands/ pdfmarks: \pdfobj, \pdflastobj, \pdfannot, \pdflastannot, \pdfstartlink ... \pdfendlink, \pdfxform, \pdflastxform, \pdfximage, \pdflastximage, \pdfcatalog, /BDC & /EMC pdfmarks I would need tests for pdfmode (pdftex,luatex) dvipdfmx/xetex (pdftex,luatex,(u)ptex) dvips (pdftex,luatex) Kind regards, Alexander