From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/76201 Path: news.gmane.org!not-for-mail From: Mojca Miklavec Newsgroups: gmane.comp.tex.context Subject: fixing mpiv on installation path with spaces Date: Wed, 16 May 2012 01:45:30 +0200 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1337125548 14382 80.91.229.3 (15 May 2012 23:45:48 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 15 May 2012 23:45:48 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed May 16 01:45:47 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SURQy-0003GI-HG for gctc-ntg-context-518@m.gmane.org; Wed, 16 May 2012 01:45:40 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4C43C101E3; Wed, 16 May 2012 01:45:39 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id H0i95AG9rGjz; Wed, 16 May 2012 01:45:36 +0200 (CEST) Original-Received: from [127.0.0.1] (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 576A1101DF; Wed, 16 May 2012 01:45:36 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9E78B101DF for ; Wed, 16 May 2012 01:45:34 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id SiNymPpkRc8d for ; Wed, 16 May 2012 01:45:32 +0200 (CEST) Original-Received: from filter1-til.mf.surf.net (filter1-til.mf.surf.net [194.171.167.217]) by balder.ntg.nl (Postfix) with ESMTP id 3AAEA101CF for ; Wed, 16 May 2012 01:45:32 +0200 (CEST) Original-Received: from mail-qa0-f41.google.com (mail-qa0-f41.google.com [209.85.216.41]) by filter1-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q4FNjUiZ020450 for ; Wed, 16 May 2012 01:45:31 +0200 Original-Received: by qabg27 with SMTP id g27so5125467qab.14 for ; Tue, 15 May 2012 16:45:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=Q+ooO3b7o+O5cFQvRxE4tD+osufEhRtIW3CjTcuMa/k=; b=XdaY4qA1De7JPfxBX4AXVnGf2uDftKz7blzS3R1d5fIBS0cNI1s2Uu53iPRuOInEr3 F6uicmsrOTdeyY+HlbluJ2I/nuUT9nkWosHIlmejxHUY7PAVhIfSUNLvsE3JBtOfS5HK SnBlsyCeKT3MZJLSlHoyCM20w3maOvOKJrRqOvBfi6v2DnFM/iAsOhZHiDEWGKvQNR1q HK6ARK2whx9f3nhaa+03G5F9pY/okp8zT5u71wHa7qt7zguA0Z+UEwA1CYoOCpDJ/C99 4Vte1udT6yWGZT5HDTNXEph7MKQjMmHTu92nBC9x6/46sMlbmUxGIruYWPPuKgsdcMrC MxKA== Original-Received: by 10.229.137.83 with SMTP id v19mr450268qct.58.1337125530368; Tue, 15 May 2012 16:45:30 -0700 (PDT) Original-Received: by 10.229.100.83 with HTTP; Tue, 15 May 2012 16:45:30 -0700 (PDT) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.216.41; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0RHanJvpS - 554faa8dbeb4 - 20120516 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.217 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:76201 Archived-At: Hello, last year Taco added many patches to make sure that ConTeXt works even when installed to "C:\Documents and Settings\ ..." and other weird paths with spaces. However metapost in mkiv still fails. I figured out that the following patch (which *won't* handle paths with quotation marks properly) in mlib-run.lua fixes the problem: local preamble = [[ boolean mplib ; mplib := true ; let dump = endinput ; - input %s ; + input "%s" ; ]] but I'm not sure if there are any other side effects or if there are other places that also need a patch. I didn't test with filenames with spaces or with filenames with weird characters that need escaping. Maybe it would be helpful to pass file.addsuffix(name,"mp") through additional filter (instead of simply adding quotation marks) that would also check if any other character needs escaping and add quotation marks if needed. Minimal example: - install ConTeXt into path with spaces - test with context on \starttext \startMPcode draw fullcircle scaled 3cm; \stopMPcode \stoptext I would be grateful if somebody could take a look, so that a fix could make it into TL 2012. Thanks, Mojca ___________________________________________________________________________________ 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 ___________________________________________________________________________________