[pdftex] Directory Names with Spaces

Hans Hagen pragma at wxs.nl
Fri Dec 21 10:25:37 CET 2001

At 12:23 AM 12/21/2001 +0100, Fabrice Popineau wrote:
>* Thierry Bouche <thierry.bouche at ujf-grenoble.fr> writes:
> > I heard that CmacTeX has a trick so that file names spaces may be
> > accessed as nobreak spaces. (maybe only in config files, though)
> > could this be implemented in fptex?
>I have done something along this way (wanted to experiment !) It
>worked almost ok. But the real problem is that you can put anything on
>the command line, so how do you make the distinction between a file
>name and tex commands ? The problem is that we need a quoting
>mechanism for file names inside tex, and there is none for the moment.

since most people use some sort of wrapper, it can be an option to do 
something like:

   original name : crap crap (with space)

converted by macro package into

   internal name : crap%crap (users will not use themselves % probably)

before opening the file fptex can replace the % by a space.

something like:

      \advance\count0 1
    \lccode`\ =`\%

\makecrappyfilename{crap crap}

\input \crappyfilename\relax

[another option is to replace the space by the unicode alternative or some 
other escaping; rather trivial, so feel free to mail me off lin on this]


PS. Personally i think that spaces in filenames are as bad as not treating 
lower/uppercase chars the same; For me Crap.tex == crap.tex)

                                   Hans Hagen | PRAGMA ADE | pragma at wxs.nl
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com

More information about the pdftex mailing list