From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/15476 Path: main.gmane.org!not-for-mail From: Hans Hagen Outside Newsgroups: gmane.comp.tex.context Subject: Re: { in input file names Date: Mon, 21 Jun 2004 23:04:16 +0200 Sender: ntg-context-admin@ntg.nl Message-ID: <40D74D50.3080803@wxs.nl> References: <20040621194516.GC2592@puritan.pcp.ath.cx> Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1087889477 16201 80.91.224.253 (22 Jun 2004 07:31:17 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 22 Jun 2004 07:31:17 +0000 (UTC) Original-X-From: ntg-context-admin@ntg.nl Tue Jun 22 09:31:08 2004 Return-path: Original-Received: from ref.vet.uu.nl ([131.211.172.13] helo=ref.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BcfkJ-0002N8-00 for ; Tue, 22 Jun 2004 09:31:07 +0200 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id E6E1B10B64; Tue, 22 Jun 2004 09:31:02 +0200 (MEST) Original-Received: from mailrelay01.solcon.nl (maillb.solcon.nl [212.45.32.200]) by ref.ntg.nl (Postfix) with ESMTP id 4E08C10AE6 for ; Tue, 22 Jun 2004 09:28:45 +0200 (MEST) Original-Received: from server-1.pragma-net.nl (dsl-212-84-128-085.solcon.nl [212.84.128.85]) by mailrelay01.solcon.nl (8.12.11/SQL-8.12.11-5/8.12.11) with ESMTP id i5M7ShTX018416 for ; Tue, 22 Jun 2004 09:28:43 +0200 Original-Received: by server-1.pragma-net.nl (Postfix, from userid 65534) id 607CB18150; Tue, 22 Jun 2004 09:28:44 +0200 (CEST) Original-Received: from [10.100.1.191] (unknown [10.100.1.191]) by server-1.pragma-net.nl (Postfix) with ESMTP id 5BB3717AE3 for ; Tue, 22 Jun 2004 07:28:43 +0000 (UTC) User-Agent: Mozilla Thunderbird 0.6 (Windows/20040502) X-Accept-Language: en-us, en Original-To: ntg-context@ntg.nl In-Reply-To: <20040621194516.GC2592@puritan.pcp.ath.cx> X-Virus-Scanned: clamd / ClamAV version 0.70, clamav-milter version 0.70j 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:15476 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:15476 Nikolai Weibull wrote: >Hi. >Another one of my sort of weird questions. I have a file with { in it's > > weird indeed, are you searching for the limits of tex/context/your-os? >file name and context doesn't seem to enjoy it much: > > i only enjoy names that match [a-z0-9\-] >% mkdir {test} >% cd {test} >% mkdir output >% touch a.tex && ed a.tex >0 >0a >\starttext >Hello >\stoptext >. >wq >27 >% texexec --runpath=output a.tex > > You can put this somewhere (cont-loc.tex or so) since i'm not that sure if it does not interfere, so i (and others) need to test this for a long time % supp-fil \bgroup % todo: _ cleanup \catcode`\/=\@@active \catcode`\:=\@@active \catcode`\~=\@@active \gdef\sanitizefilename#1\to#2% {\bgroup \edef/{\string/}% \edef:{\string:}% \edef~{\string~}% \expanded{\xdef\noexpand\sanitizedfilename{#1}}% \egroup \let#2\sanitizedfilename% \convertcommand\sanitizedfilename\to#2} \egroup % core-job \def\usepath[#1]% {\def\docommando##1% {\doifelse{##1}\v!reset {\let\allinputpaths\empty} {\sanitizefilename#1\to\ascii %\convertcommand\ascii\to\ascii \addtocommalist\ascii\allinputpaths}}% \processcommalist[#1]\docommando} \def\usesubpath[#1]% new, see webschrift for usage {\ifx\allinputpaths\empty \sanitizefilename#1\to\allinputpaths \else \def\docommando##1% {\def\dodocommando####1% {\sanitizefilename####1\to\ascii \addtocommalist{##1/\ascii}\allinputpaths}% \processcommalist[#1]\dodocommando}% \processcommacommand[\allinputpaths]\docommando \fi}