Hi, I have a problem with \useexternaldocument in a recent beta: ! I can't find file `file:/localhost/home/simon/programmeren/context/DocbookInC ontext/hasbook.tuo'. <to be read again> \relax \dodoreadfile ...normalinput \readfilename \relax \the \everyafterreadfile \doutilities ...textension }\donothing \donothing \the \everyafterutilityrea... <argument> ...ontext/hasbook}\empty \relax \relax \ifx \fileprefix \empty \e... \firstofoneargument #1->#1 \usereferences ...ist {#1}\loadedreferences \fi }} \stopnointerference ... l.9 ...ocbookInContext/hasbook][Hasselt in August] This happens when I have 'file:' in the file name, but not when I have a local file name without URI scheme in it. The problem seems to be in \doreadfile, which goes over to \dodoreadfile, which insists on finding this tuo file. ConTeXt ver: 2003.1.29 fmt: 2003.1.31 int: english mes: english Regards, Simon -- Simon Pepping email: spepping@scaprea.hobby.nl
At 10:16 PM 3/2/2003 +0100, Simon Pepping wrote:
Hi,
I have a problem with \useexternaldocument in a recent beta:
! I can't find file `file:/localhost/home/simon/programmeren/context/DocbookInC ontext/hasbook.tuo'. <to be read again> \relax \dodoreadfile ...normalinput \readfilename \relax
The file checker tries to recognize url's which is also needed for: \starttext \typefile{http://www.pragma-ade.com/index.htm} \stoptext Are you sure the file:/ should not be file://, or: what schemes should be supported? Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@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 ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------
On Tue, Mar 04, 2003 at 10:20:36AM +0100, Hans Hagen wrote:
At 10:16 PM 3/2/2003 +0100, Simon Pepping wrote: The file checker tries to recognize url's which is also needed for:
\starttext
\typefile{http://www.pragma-ade.com/index.htm}
\stoptext
Are you sure the file:/ should not be file://, or: what schemes should be supported?
A matter of much confusion. If I understand it correctly, file:/ is correct, file:// is definitely incorrect, and file:/// is supposed to be shorthand for file://localhost/, and is thus correct. The // introduce an `authority' (a host), and the file protocol (i.e. a file on the local filesystem) does not have one, or at best the localhost. The Lynx browser uses the localhost variant, with localhost explicitly in the URL. Mozilla uses the variant with ///. See this test file: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" []> <html> <head> <title>T</title> </head> <body> <p>These work in Mozilla: <a href="test.html">test</a> <a href="file:test.html">test</a> <a href="file:/home/simon/temp/test.html">test</a> <a href="file:///home/simon/temp/test.html">test</a> <a href="file://localhost/home/simon/temp/test.html">test</a> <p>This one does not work in Mozilla: <a href="file://home/simon/temp/test.html">test</a> Mozilla removes //home (the authority) and looks for /simon/temp/test.html. </body> </html> -- Simon Pepping email: spepping@scaprea.hobby.nl
At 10:22 PM 3/4/2003 +0100, you wrote:
A matter of much confusion. If I understand it correctly, file:/ is correct, file:// is definitely incorrect, and file:/// is supposed to be shorthand for file://localhost/, and is thus correct.
How come you know all these details -) can you send me a small file showing the problem? Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@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 ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------
On Wed, Mar 05, 2003 at 10:53:46PM +0100, Hans Hagen wrote:
At 10:22 PM 3/4/2003 +0100, you wrote:
How come you know all these details -)
These days I am payed to know these things. However, I am not the only one on this list who knows such details. And if it were about TeX, you would know them, and more.
can you send me a small file showing the problem?
The following file runs without errors in ConTeXt ver: 2002.6.25, and complains: ! I can't find file `file:/localhost/home/simon/programmeren/context/DocbookInC ontext/hasbook.tuo'. in ConTeXt ver: 2003.1.29. \useexternaldocument[hia][file:/localhost/home/simon/programmeren/context/DocbookInContext/hasbook][Hasselt in August] \starttext Some text to continue with. Some text to continue with. Some text to continue with \from[hia]. Some text to continue with. Some text to continue with. Some text to continue with. Some text to continue with. Some text to continue with. Some text to continue with. Some text to continue with. Some text to continue with. Some text to continue with. Some text to continue with. Some text to continue with. \stoptext -- Simon Pepping email: spepping@scaprea.hobby.nl
At 09:01 PM 3/6/2003 +0100, you wrote:
On Wed, Mar 05, 2003 at 10:53:46PM +0100, Hans Hagen wrote:
At 10:22 PM 3/4/2003 +0100, you wrote:
How come you know all these details -)
These days I am payed to know these things. However, I am not the only one on this list who knows such details. And if it were about TeX, you would know them, and more.
can you send me a small file showing the problem?
The following file runs without errors in ConTeXt ver: 2002.6.25, and complains:
! I can't find file `file:/localhost/home/simon/programmeren/context/DocbookInC ontext/hasbook.tuo'.
in ConTeXt ver: 2003.1.29.
Can you test it with the current beta? It works ok here. There has been problems with file loading around januari when i was implementing direct file access for graphics and so. Also, the latest mechanism is faster (keeps track of found files) and provides a switch for testing: \tracefilestrue Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@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 ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------
On Fri, Mar 07, 2003 at 11:34:11AM +0100, Hans Hagen wrote:
At 09:01 PM 3/6/2003 +0100, you wrote:
The following file runs without errors in ConTeXt ver: 2002.6.25, and complains:
! I can't find file `file:/localhost/home/simon/programmeren/context/DocbookInC ontext/hasbook.tuo'.
in ConTeXt ver: 2003.1.29.
Can you test it with the current beta? It works ok here. There has been problems with file loading around januari when i was implementing direct file access for graphics and so. Also, the latest mechanism is faster (keeps track of found files) and provides a switch for testing:
\tracefilestrue
Indeed, it works OK with ConTeXt ver: 2003.3.4 systems : not found file:/localhost/home/simon/programmeren/context/Docb ookInContext/hasbook.tuo references : document file:/localhost/home/simon/programmeren/context/Docbo okInContext/hasbook loaded Regards, Simon -- Simon Pepping email: spepping@scaprea.hobby.nl
participants (2)
-
Hans Hagen
-
Simon Pepping