From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/38431 Path: news.gmane.org!not-for-mail From: "Santy, Michael" Newsgroups: gmane.comp.tex.context Subject: Re: escaping filenames with externalfigure Date: Thu, 3 Jan 2008 07:35:10 -0600 Message-ID: <6703815B292B664DBAEC55EE3192386A20BD90@poseidon.in.dynetics.com> References: <6703815B292B664DBAEC55EE3192386A20BD6F@poseidon.in.dynetics.com><20071227160042.7b85a47f.schuster.wolfgang@googlemail.com><6703815B292B664DBAEC55EE3192386A20BD74@poseidon.in.dynetics.com> <115224fb0712270727m1cc620d2pae5e08c31c16cdec@mail.gmail.com><6703815B292B664DBAEC55EE3192386A20BD76@poseidon.in.dynetics.com> <47758483.2080904@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0833512366==" X-Trace: ger.gmane.org 1199367404 12116 80.91.229.12 (3 Jan 2008 13:36:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 3 Jan 2008 13:36:44 +0000 (UTC) To: "mailing list for ConTeXt users" , "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Thu Jan 03 14:37:03 2008 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 1JAQFr-0003uA-D0 for gctc-ntg-context-518@m.gmane.org; Thu, 03 Jan 2008 14:37:03 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 889301FADB; Thu, 3 Jan 2008 14:36:31 +0100 (CET) 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 04611-01-2; Thu, 3 Jan 2008 14:35:54 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 78CB51FBA6; Thu, 3 Jan 2008 14:35:54 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id F29EC1FB99 for ; Thu, 3 Jan 2008 14:35:52 +0100 (CET) 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 04176-01-4 for ; Thu, 3 Jan 2008 14:35:19 +0100 (CET) Original-Received: from myrddin.dynetics.com (myrddin.dynetics.com [204.154.192.33]) by ronja.ntg.nl (Postfix) with ESMTP id E185F1FBA6 for ; Thu, 3 Jan 2008 14:35:18 +0100 (CET) Original-Received: from poseidon.in.dynetics.com ([10.1.15.106]) by myrddin.dynetics.com (8.13.1/8.13.1) with ESMTP id m03DToss029293 for ; Thu, 3 Jan 2008 07:29:50 -0600 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [NTG-context] escaping filenames with externalfigure Thread-Index: AchJqVj/xP2MJJRrRKe1o4jlQE7thQEYjb9v 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:38431 Archived-At: This is a multi-part message in MIME format. --===============0833512366== Content-class: urn:content-classes:message Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C84E0D.7603B4EE" This is a multi-part message in MIME format. ------_=_NextPart_001_01C84E0D.7603B4EE Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hans, > no time for a detailed answer now, but in xml mode you can make { }=20 > letters which solves the problem Could you please elaborate a bit? I'm not familiar with ConTeXt's XML = mode (other than for processing MathML). One thing that I suspect is = that XML mode would have an issue with '<' and '>' in the filenames. Another thought: The image filenames are encoded in my original xml = documents according to RFC 1738 = (http://www.blooberry.com/indexdot/html/topics/urlencoding.htm). In my = XML -> ConTeXt XSL stylesheets I'm decoding those filenames. Would it = be useful for others if the externalfigure could understand url encoded = filenames similar to something like this: % % includes the file "flower{1.jpg" % \externalfigure[flower%7B1.jpg][encoding=3Drfc1738] This would give ConTeXt a general-purpose filename escaping mechanism. Cheers, Mike ------_=_NextPart_001_01C84E0D.7603B4EE Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable RE: [NTG-context] escaping filenames with externalfigure

Hans,

> no time for a detailed answer now, but in xml mode you can make { = }
> letters which solves the problem

Could you please elaborate a bit?  I'm not familiar with ConTeXt's = XML mode (other than for processing MathML).  One thing that I = suspect is that XML mode would have an issue with '<' and '>' in = the filenames.

Another thought: The image filenames are encoded in my original xml = documents according to RFC 1738 (ht= tp://www.blooberry.com/indexdot/html/topics/urlencoding.htm).  = In my XML -> ConTeXt XSL stylesheets I'm decoding those = filenames.  Would it be useful for others if the externalfigure = could understand url encoded filenames similar to something like = this:

%
% includes the file "flower{1.jpg"
%
\externalfigure[flower%7B1.jpg][encoding=3Drfc1738]

This would give ConTeXt a general-purpose filename escaping = mechanism.

Cheers,
Mike

------_=_NextPart_001_01C84E0D.7603B4EE-- --===============0833512366== 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 ___________________________________________________________________________________ --===============0833512366==--