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
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}
* Hans Hagen Outside
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);}
Nikolai Weibull wrote:
* Hans Hagen Outside
[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 -----------------------------------------------------------------
participants (3)
-
Hans Hagen
-
Hans Hagen Outside
-
Nikolai Weibull