From: Hans Hagen <pragma@wxs.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: \usezipfile
Date: Wed, 07 Dec 2011 20:16:29 +0100 [thread overview]
Message-ID: <4EDFBB8D.1090404@wxs.nl> (raw)
In-Reply-To: <67FC2993-9C56-4A44-BD46-5E07F650C0AB@googlemail.com>
On 7-12-2011 20:06, Wolfgang Schuster wrote:
> Hi Hans,
>
> the \usezipfile command doesn’t 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 = resolvers.splitmethod(archive) -- to be sure
> local archive = specification.filename
> if archive and not registeredfiles[archive] then
> local z = zip.openarchive(archive)
> if z then
> local tree = url.query(specification.query).tree or ""
> if trace_locating then
> report_zip("registering, registering archive '%s'",archive)
> end
> statistics.starttiming(resolvers.instance)
> resolvers.prependhash('zip',archive)
> resolvers.extendtexmfvariable(archive) -- resets hashes too
> registeredfiles[archive] = z
> -- instance.files[archive] = resolvers.registerzipfile(z,tree)
> resolvers.instance.files[archive] = resolvers.registerzipfile(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’t load the file in the zip archive
> even though it can find it as seen in the error message:
>
> ! I can't find file `lipsum.zip?name=tex/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 the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2011-12-07 19:16 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-07 19:06 \usezipfile Wolfgang Schuster
2011-12-07 19:16 ` Hans Hagen [this message]
2011-12-09 21:13 ` \usezipfile Hans Hagen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4EDFBB8D.1090404@wxs.nl \
--to=pragma@wxs.nl \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).