From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/36517 Path: news.gmane.org!not-for-mail From: "Santy, Michael" Newsgroups: gmane.comp.tex.context Subject: externalfigure and uppercase extensions Date: Thu, 13 Sep 2007 11:56:38 -0500 Message-ID: <6703815B292B664DBAEC55EE3192386A20BB61@poseidon.in.dynetics.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0730643215==" X-Trace: sea.gmane.org 1189702653 30323 80.91.229.12 (13 Sep 2007 16:57:33 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 13 Sep 2007 16:57:33 +0000 (UTC) To: Original-X-From: ntg-context-bounces@ntg.nl Thu Sep 13 18:57:29 2007 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1IVs0E-0002pQ-S8 for gctc-ntg-context-518@m.gmane.org; Thu, 13 Sep 2007 18:57:18 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 1F1FC1FF46; Thu, 13 Sep 2007 18:57:18 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 22648-04-5; Thu, 13 Sep 2007 18:57:05 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 694131FF48; Thu, 13 Sep 2007 18:57:05 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 34AEA1FF48 for ; Thu, 13 Sep 2007 18:57:03 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 22648-04-4 for ; Thu, 13 Sep 2007 18:56:58 +0200 (CEST) Original-Received: from myrddin.dynetics.com (myrddin.dynetics.com [204.154.192.33]) by ronja.ntg.nl (Postfix) with ESMTP id B5BE71FF46 for ; Thu, 13 Sep 2007 18:56:58 +0200 (CEST) Original-Received: from poseidon.in.dynetics.com ([10.1.15.106]) by myrddin.dynetics.com (8.13.1/8.13.1) with ESMTP id l8DGrr1u030143 for ; Thu, 13 Sep 2007 11:53:53 -0500 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: externalfigure and uppercase extensions Thread-Index: Acf2Jw0iHkarax6wTqe4tKJ9pj7G6A== X-dynetics.com-MailScanner-Information: Please contact the ISP for more information X-dynetics.com-MailScanner: Found to be clean X-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-1.439, required 2, autolearn=disabled, ALL_TRUSTED -1.44, HTML_MESSAGE 0.00) X-MailScanner-From: michael.santy@dynetics.com X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 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 X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:36517 Archived-At: This is a multi-part message in MIME format. --===============0730643215== Content-class: urn:content-classes:message Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C7F627.0D2229B7" This is a multi-part message in MIME format. ------_=_NextPart_001_01C7F627.0D2229B7 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello, I'm using conTeXt as the renderer in a XML workflow and have run into a = problem with externalfigure. When a user chooses to include a PNG, PDF, = or JPG image with an extension that is capitalized (or more generally, = not all lower case), the externalfigure just includes a grey box like it = can't find the file. The snippet below illustrates the problem. Note = that I'm able to include the image by renaming the file to IMG_0103.jpg = and changing the externalfigure to the corresponding filename. \starttext \externalfigure[IMG_0103.JPG] \stoptext I tried adding type=3Djpg and/or method=3Djpg to the externalfigure = arguments, but the file did not compile. I found that by adding the entry = "\definefileinsertion{tpd}{JPG}{\handlepdfimage}" to the spec-tpd.tex = file in the context distribution, the externalfigure is able to include = this image correctly. Should the mappings in these files be case = insensitive? I'm sure that I'm missing something basic. Could someone please = enlighten me? Cheers, Mike Santy=20 ------_=_NextPart_001_01C7F627.0D2229B7 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable externalfigure and uppercase extensions

Hello,

I'm using conTeXt as the renderer in a XML workflow and have run into a = problem with externalfigure.  When a user chooses to include a PNG, = PDF, or JPG image with an extension that is capitalized (or more = generally, not all lower case), the externalfigure just includes a grey = box like it can't find the file.  The snippet below illustrates the = problem.  Note that I'm able to include the image by renaming the = file to IMG_0103.jpg and changing the externalfigure to the = corresponding filename.

\starttext
\externalfigure[IMG_0103.JPG]
\stoptext

I tried adding type=3Djpg and/or method=3Djpg to the externalfigure = arguments, but the file did not compile.

I found that by adding the entry = "\definefileinsertion{tpd}{JPG}{\handlepdfimage}" to the = spec-tpd.tex file in the context distribution, the externalfigure is = able to include this image correctly.      = Should the mappings in these files be case insensitive?

I'm sure that I'm missing something basic.  Could someone please = enlighten me?

Cheers,
Mike Santy

------_=_NextPart_001_01C7F627.0D2229B7-- --===============0730643215== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --===============0730643215==--