From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/72994 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: \usezipfile Date: Wed, 07 Dec 2011 20:16:29 +0100 Message-ID: <4EDFBB8D.1090404@wxs.nl> References: <67FC2993-9C56-4A44-BD46-5E07F650C0AB@googlemail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="windows-1252"; Format="flowed" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1323285410 30469 80.91.229.12 (7 Dec 2011 19:16:50 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 7 Dec 2011 19:16:50 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Dec 07 20:16:45 2011 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RYMyv-0008KX-LO for gctc-ntg-context-518@m.gmane.org; Wed, 07 Dec 2011 20:16:41 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 155F0CB144; Wed, 7 Dec 2011 20:16:41 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id Z6A4gdn3UCD8; Wed, 7 Dec 2011 20:16:38 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 33302CB13B; Wed, 7 Dec 2011 20:16:38 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id DEB4DCB13B for ; Wed, 7 Dec 2011 20:16:36 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id gbc-5i91t8bV for ; Wed, 7 Dec 2011 20:16:34 +0100 (CET) Original-Received: from filter4-nij.mf.surf.net (filter4-nij.mf.surf.net [195.169.124.155]) by balder.ntg.nl (Postfix) with ESMTP id D6511CB139 for ; Wed, 7 Dec 2011 20:16:34 +0100 (CET) Original-Received: from smtp.ziggozakelijk.nl (D57D1DA2.static.ziggozakelijk.nl [213.125.29.162]) by filter4-nij.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id pB7JGYRZ009434 for ; Wed, 7 Dec 2011 20:16:34 +0100 X-Default-Received-SPF: pass (skip=loggedin (res=PASS)) x-ip-name=10.100.1.100; Original-Received: from [10.100.1.100] (unverified [10.100.1.100]) by pragma-net.nl (SurgeMail 5.3h2) with ESMTP (TLS) id 1993-1713362 for multiple; Wed, 07 Dec 2011 20:16:30 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:8.0) Gecko/20111105 Thunderbird/8.0 In-Reply-To: <67FC2993-9C56-4A44-BD46-5E07F650C0AB@googlemail.com> X-Authenticated-User: hagen@controller-9 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=213.125.29.162; country=NL; region=11; city=Den Haag; latitude=52.0833; longitude=4.3000; http://maps.google.com/maps?q=52.0833,4.3000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 04G6jgyV1 - fb416624b045 - 20111207 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.155 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:72994 Archived-At: On 7-12-2011 20:06, Wolfgang Schuster wrote: > Hi Hans, > > the \usezipfile command doesn=92t work work. Yes, I'd noticed that but had no time yet to look into it > I can get rid of one problem when I make the following change in data-zip= .lua: > > function resolvers.usezipfile(archive) > local specification =3D resolvers.splitmethod(archive) -- to be sure > local archive =3D specification.filename > if archive and not registeredfiles[archive] then > local z =3D zip.openarchive(archive) > if z then > local tree =3D url.query(specification.query).tree or "" > if trace_locating then > report_zip("registering, registering archive '%s'",archi= ve) > end > statistics.starttiming(resolvers.instance) > resolvers.prependhash('zip',archive) > resolvers.extendtexmfvariable(archive) -- resets hashes too > registeredfiles[archive] =3D z > -- instance.files[archive] =3D resolvers.registerzipfile(z,tree) > resolvers.instance.files[archive] =3D resolvers.registerzipf= ile(z,tree) > statistics.stoptiming(resolvers.instance) > elseif trace_locating then > report_zip("registering, unknown archive '%s'",archive) > end > elseif trace_locating then > report_zip("registering, '%s' not found",archive) > end > end > > Another problem afterward is that context can=92t load the file in the zi= p archive > even though it can find it as seen in the error message: > > ! I can't find file `lipsum.zip?name=3Dtex/context/third/lipsum/lipsum= .tex'. I'll put it on my todo list (in the middle of page-* cleanup now). Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________