From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/11638 Path: main.gmane.org!not-for-mail From: Giuseppe Bilotta Newsgroups: gmane.comp.tex.context Subject: Re[3]: Using MetaPost graphics in ConTeXt Date: Tue, 25 Mar 2003 13:49:11 +0100 Sender: ntg-context-admin@ntg.nl Message-ID: <12813150319.20030325134911@iol.it> References: <5.1.0.14.1.20030325094633.031ad5a8@server-1> <5.1.0.14.1.20030325094633.031ad5a8@server-1> <5.1.0.14.1.20030325132545.02992a48@server-1> Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1048597633 27623 80.91.224.249 (25 Mar 2003 13:07:13 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 25 Mar 2003 13:07:13 +0000 (UTC) Original-X-From: ntg-context-admin@ntg.nl Tue Mar 25 14:07:12 2003 Return-path: Original-Received: from ref.vet.uu.nl ([131.211.172.13] helo=ref.ntg.nl) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18xo8B-00078k-00 for ; Tue, 25 Mar 2003 14:06:19 +0100 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id 3C8B910AEC; Tue, 25 Mar 2003 14:06:15 +0100 (MET) Original-Received: from smtp2.libero.it (smtp2.libero.it [193.70.192.52]) by ref.ntg.nl (Postfix) with ESMTP id C404310AB6 for ; Tue, 25 Mar 2003 14:03:41 +0100 (MET) Original-Received: from [151.29.141.16] (151.29.141.16) by smtp2.libero.it (6.7.015) id 3E48BA3400FE190C for ntg-context@ntg.nl; Tue, 25 Mar 2003 14:03:43 +0100 X-Mailer: The Bat! (v1.63 Beta/7) X-Priority: 3 (Normal) Original-To: ntg-context@ntg.nl In-Reply-To: <5.1.0.14.1.20030325132545.02992a48@server-1> Errors-To: ntg-context-admin@ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.0.13 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.comp.tex.context:11638 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:11638 Tuesday, March 25, 2003 Hans Hagen wrote: HH> At 11:38 AM 3/25/2003 +0100, you wrote: >>The third point is too severe in its behaviour: it's a good thing that >>circular >>loading is prevented, but this shouldn't prevent inclusion of >>other files with different extensions! After the removal of the >>\jobsuffix extension, inclusion should go on normally! HH> it will, fo rthose sufixes that are recognized as being supported by the HH> backend; numbers are special case in the sense that they don't relate to a HH> file format; if you uncomment the lines i mentioned you get them supported The problem is not the numbers as such, it's a more general point; especially then type= or method= are specified, extension should be irrelevant as long as it doesn't cause name clash. On a very general basis, I would say that the best approach would be: Step 1: check for name clashes: * if name = \jobname: (a) if extension = \jobsuffix or output suffix (dvi, pdf), quit parsing (b) if no extension, remove jobsuffix and output suffix from list of searched extensions. Step 2: if extension is specified, and no method is specified, set method to the one associated with this extension, if there is one. Step 3: check if file exists; * if we have a full name, try to open the specified name.extension, with the specified method * if the file is not found, and no extension was specified, look for all the known extensions (except the ones forbidden by Step 1, point b); if a method/type is specified and it has a default extension, start looking from that extension Or something like this ... -- Giuseppe "Oblomov" Bilotta