From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/55549 Path: news.gmane.org!not-for-mail From: Hans van der Meer Newsgroups: gmane.comp.tex.context Subject: Re: spaces in file names Date: Wed, 13 Jan 2010 20:46:53 +0100 Message-ID: <1656F9A9-52F7-4FC5-AE57-3309F752A93F@uva.nl> References: <14AAC5F8-22CF-43BC-ABAE-6D91B734A8D5@uva.nl> <01B55BA4-FE4A-4AA6-83F6-695CB56A4190@gmail.com> <2B222B03-0FDD-41C0-BF46-265F683B7C8B@uva.nl> <4B4E09FA.4000307@wxs.nl> <901906F1-CFC7-4A9A-8909-8CEAC0E7006C@uva.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset="us-ascii"; Format="flowed"; DelSp="yes" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1263412030 7560 80.91.229.12 (13 Jan 2010 19:47:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 13 Jan 2010 19:47:10 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Jan 13 20:47:03 2010 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.50) id 1NV9BG-000248-Qg for gctc-ntg-context-518@m.gmane.org; Wed, 13 Jan 2010 20:47:02 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8FBCBC9C90; Wed, 13 Jan 2010 20:47:03 +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 CPeuahoD07rQ; Wed, 13 Jan 2010 20:47:01 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 39F82C9C80; Wed, 13 Jan 2010 20:47:01 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id AC4B9C9C80 for ; Wed, 13 Jan 2010 20:47:00 +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 S7sCX4vcfWtH for ; Wed, 13 Jan 2010 20:46:58 +0100 (CET) Original-Received: from paard.ic.uva.nl (paard.ic.uva.nl [145.18.40.182]) by balder.ntg.nl (Postfix) with ESMTP id 63182C9C7E for ; Wed, 13 Jan 2010 20:46:58 +0100 (CET) Original-Received: from [192.168.178.23] (a82-95-102-36.adsl.xs4all.nl [82.95.102.36]) (authenticated bits=0) by paard.ic.uva.nl (8.13.1/8.13.1) with ESMTP id o0DJkrKl003072 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO) for ; Wed, 13 Jan 2010 20:46:55 +0100 In-Reply-To: <901906F1-CFC7-4A9A-8909-8CEAC0E7006C@uva.nl> X-Mailer: Apple Mail (2.936) X-CanIt-Geo: ip=82.95.102.36; country=NL; region=07; city=Amsterdam; latitude=52.3500; longitude=4.9167; http://maps.google.com/maps?q=52.3500,4.9167&z=6 X-CanItPRO-Stream: auth (inherits from default) X-Canit-Stats-ID: Bayes signature not available X-Scanned-By: CanIt (www . roaringpenguin . com) on 145.18.40.182 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:55549 Archived-At: I just became aware of the fact that a comma in a directory name like "dir, so-and-so" is failing too. No doubt there will be others that are allowed in those names but resist \setupexternalfigures. I guess I will have to live with that. Though Hans might feel tempted to sort it out once and for all..... Hans van der Meer On 13 jan 2010, at 20:34, Hans van der Meer wrote: > Thanks Hans. That does the trick. > > Odd by the way, that so many people apparently refrain from using > spaces in directory and file names, because this did not surface > earlier. It can make things a lot more readable. The habit of > avoiding spaces is probably a holdover from old times where OS's > were much more restrictive in filenaming. I reckon the next beta > will contain this patch, so that I don't have to go through patching > hassles when installing a new version. > > > > > On 13 jan 2010, at 18:59, Hans Hagen wrote: > >> On 13-1-2010 17:30, Hans van der Meer wrote: >>> On 13 jan 2010, at 16:35, Otared Kavian wrote: >>> >>>> Hi Hans, >>>> >>>> The following works for me both with mkii and mkiv (running Mac >>>> OS X >>>> 10.6.2). >>> >>> Yes, I knew that. Adding the full path inside the \externalfigure >>> works. >>> But I would like to access picture files by separately adressing >>> directory and filename, not combining them explicitely. >>> \setupexternalfigures[directory=..] was made for this. The annoying >>> thing is that \setupexternalfigures and \externalfigure apparently >>> do >>> not work seamlessly together. >> >> well, it's not deliberately .. just that i never use paths with >> spaces in tex workflows so it never got tested >> >> in grph-inc.lua patch the gmatch pattern: >> >> if h[iv["global"]] then >> for s in gmatch(pathlist,",* *([^,]+)") do >> if not table.contains(t,s) then >> t[#t+1] = s >> end >> end >> end >> >> >> >> ----------------------------------------------------------------- >> Hans Hagen | PRAGMA ADE >> Ridderstraat 27 | 8061 GH Hasselt | The Netherlands >> tel: 038 477 53 69 | fax: 038 477 53 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 > ___________________________________________________________________________________ ___________________________________________________________________________________ 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 ___________________________________________________________________________________