Re: [NTG-context] { in input file names

2004-06-22 Thread Hans Hagen Outside
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\dodocommando1%
 {\sanitizefilename1\to\ascii
  \addtocommalist{##1/\ascii}\allinputpaths}%
   \processcommalist[#1]\dodocommando}%
\processcommacommand[\allinputpaths]\docommando
  \fi}

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] { in input file names

2004-06-21 Thread Nikolai Weibull
Hi.
Another one of my sort of weird questions.  I have a file with { in it's
file name and context doesn't seem to enjoy it much:

% mkdir {test}
% cd {test}
% mkdir output
% touch a.tex && ed a.tex
0
0a
\starttext
Hello
\stoptext
.
wq
27
% texexec --runpath=output a.tex

 TeXExec 4.3 - ConTeXt / PRAGMA ADE 1997-2004

  changing to path : output
executable : pdfetex
format : cont-en
   source path : /home/pcp/scratch/cont-test/{test}
dummy file : a.run
 inputfile : a
output : standard
 interface : en
  current mode : none
   TeX run : 1

This is pdfeTeX, Version 3.14159-1.10b-2.1 (Web2C 7.4.5)
 \write18 enabled.
 (/usr/share/texmf/web2c/natural.tcx)
entering extended mode
(./a.run{/usr/share/texmf/pdftex/config/pdftex.cfg}

ConTeXt  ver: 2004.6.16  fmt: 2004.6.18  int: english  mes: english

language   : language en is active

system : cont-new loaded
(/usr/share/texmf/tex/context/base/cont-new.tex
systems: beware: some patches loaded from cont-new.tex!
color  : palette rollover is available
system (E-TEX) : [line 578]
system (E-TEX) : [line 633]
)
system : cont-old loaded
(/usr/share/texmf/tex/context/base/cont-old.tex
loading: Context Old Macros
)
system : cont-fil loaded
(/usr/share/texmf/tex/context/base/cont-fil.tex
loading: Context File Synonyms
)
bodyfont   : 12pt rm is loaded
language   : patterns 2:2-en-2 3:2-uk-2 4:2-de-2 5:2-fr-2 6:2-es-2 7:2-it-2
 8:2-nl-2 loaded
specials   : tex,postscript,rokicki loaded
system : a.top loaded
(./a.top
! You can't use `macro parameter character #' in horizontal mode.
\p!doifinstringelse ...tringelse [EMAIL PROTECTED] [EMAIL PROTECTED] 1#1##
  2##3\war {\unless \if [EMAIL 
PROTECTED]

\rawdodoifinsetelse ...ingelse \@@@instring {,#1,}
  [EMAIL PROTECTED] 
\firstoftwoarguments ...

\addtocommalist #1#2->\rawdoifinsetelse {#1}#2
  \resetglobal {\dodoglobal \ede...

\next1 #1,->\docommando {#1}
\doprocesscommaitem
\doprocesscommalist ...item \gobbleoneargument #1,
  ]\relax \global \advance \...
l.3 \usepath[/home/pcp/scratch/cont-test/{test}]

?

Is this an impossibility in TeX?
nikolai

--
::: name: Nikolai Weibull:: aliases: pcp / lone-star / aka :::
::: born: Chicago, IL USA:: loc atm: Gothenburg, Sweden:::
::: page: www.pcppopper.org  :: fun atm: gf,lps,ruby,lisp,war3 :::
main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);}
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context