* { in input file names
@ 2004-06-21 19:45 Nikolai Weibull
2004-06-21 21:04 ` Hans Hagen Outside
0 siblings, 1 reply; 4+ messages in thread
From: Nikolai Weibull @ 2004-06-21 19:45 UTC (permalink / raw)
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
<protectionstate 0>
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 \@EA ##\@EA 1#1##
2##3\war {\unless \if ##2@...
\rawdodoifinsetelse ...ingelse \@@@instring {,#1,}
\@EA \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);}
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: { in input file names
2004-06-21 19:45 { in input file names Nikolai Weibull
@ 2004-06-21 21:04 ` Hans Hagen Outside
2004-06-22 10:51 ` Nikolai Weibull
0 siblings, 1 reply; 4+ messages in thread
From: Hans Hagen Outside @ 2004-06-21 21:04 UTC (permalink / raw)
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}
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: { in input file names
2004-06-21 21:04 ` Hans Hagen Outside
@ 2004-06-22 10:51 ` Nikolai Weibull
2004-06-22 12:38 ` Hans Hagen
0 siblings, 1 reply; 4+ messages in thread
From: Nikolai Weibull @ 2004-06-22 10:51 UTC (permalink / raw)
* Hans Hagen Outside <pragma@wxs.nl> [Jun 22, 2004 10:40]:
> >Another one of my sort of weird questions. I have a file with { in
> weird indeed, are you searching for the limits of tex/context/your-os?
Nah, I'm just getting used to Tom Lord's naming scheme
http://wiki.gnuarch.org/moin.cgi/FunkyFileNames
since I use GNU Arch for revision control.
I have my project files in ~/src/{projects}/
> >file name and context doesn't seem to enjoy it much:
> i only enjoy names that match [a-z0-9\-]
[a-z0-9{=,+-] on my side
> 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
[cut]
OK, that worked fine for me. I'll report any problems.
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);}
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Re: { in input file names
2004-06-22 10:51 ` Nikolai Weibull
@ 2004-06-22 12:38 ` Hans Hagen
0 siblings, 0 replies; 4+ messages in thread
From: Hans Hagen @ 2004-06-22 12:38 UTC (permalink / raw)
Nikolai Weibull wrote:
>* Hans Hagen Outside <pragma@wxs.nl> [Jun 22, 2004 10:40]:
>
>
>>>Another one of my sort of weird questions. I have a file with { in
>>>
>>>
>>weird indeed, are you searching for the limits of tex/context/your-os?
>>
>>
>
>Nah, I'm just getting used to Tom Lord's naming scheme
> http://wiki.gnuarch.org/moin.cgi/FunkyFileNames
>since I use GNU Arch for revision control.
>
>I have my project files in ~/src/{projects}/
>
>
>
>>>file name and context doesn't seem to enjoy it much:
>>>
>>>
>>i only enjoy names that match [a-z0-9\-]
>>
>>
>
>[a-z0-9{=,+-] on my side
>
>
>
>>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
>>
>>
>[cut]
>
>OK, that worked fine for me. I'll report any problems.
>
>
first problem: graphics not found -)
so, we probably can only do:
\def\usepath[#1]% test for a real long time, permits ../{name} i.e. braces
{\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]% test for a real long time, permits ../{name} i.e. braces
{\ifx\allinputpaths\empty
\sanitizefilename#1\to\allinputpaths
\else
\def\docommando##1%
{\def\dodocommando####1%
{\sanitizefilename####1\to\ascii
\convertcommand\ascii\to\ascii
\addtocommalist{##1/\ascii}\allinputpaths}%
\processcommalist[#1]\dodocommando}%
\processcommacommand[\allinputpaths]\docommando
\fi}
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2004-06-22 12:38 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-21 19:45 { in input file names Nikolai Weibull
2004-06-21 21:04 ` Hans Hagen Outside
2004-06-22 10:51 ` Nikolai Weibull
2004-06-22 12:38 ` Hans Hagen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).