ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* \setupbodyfont[dejavu]
@ 2011-06-26  9:29 Andreas Harder
  2011-06-26  9:34 ` \setupbodyfont[dejavu] Hans Hagen
  0 siblings, 1 reply; 5+ messages in thread
From: Andreas Harder @ 2011-06-26  9:29 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi Hans,

with the latest beta (as well as experimental)

\setupbodyfont[dejavu]
\starttext
test
\stoptext

breaks with

! LuaTeX error ...xt-new/tex/texmf-context/tex/context/base/l-file.lua:121: bad argument #1 to 'find' (string expected, got nil)

Greeting
	Andreas
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: \setupbodyfont[dejavu]
  2011-06-26  9:29 \setupbodyfont[dejavu] Andreas Harder
@ 2011-06-26  9:34 ` Hans Hagen
  2011-08-09 11:34   ` \setupbodyfont[dejavu] Daniel Schopper
  0 siblings, 1 reply; 5+ messages in thread
From: Hans Hagen @ 2011-06-26  9:34 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 26-6-2011 11:29, Andreas Harder wrote:
> Hi Hans,
>
> with the latest beta (as well as experimental)
>
> \setupbodyfont[dejavu]
> \starttext
> test
> \stoptext
>
> breaks with
>
> ! LuaTeX error ...xt-new/tex/texmf-context/tex/context/base/l-file.lua:121: bad argument #1 to 'find' (string expected, got nil)

Weird, not here. can you change line 119 into

     if not a or a == "" then -- not a added

and see what happens?

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: \setupbodyfont[dejavu]
  2011-06-26  9:34 ` \setupbodyfont[dejavu] Hans Hagen
@ 2011-08-09 11:34   ` Daniel Schopper
  2011-08-10  7:56     ` \setupbodyfont[dejavu] Hongwen Qiu
  0 siblings, 1 reply; 5+ messages in thread
From: Daniel Schopper @ 2011-08-09 11:34 UTC (permalink / raw)
  To: ntg-context

>> with the latest beta (as well as experimental)
>>
>> \setupbodyfont[dejavu]
>> \starttext
>> test
>> \stoptext
>>
>> breaks with
>>
>> ! LuaTeX error
>> ...xt-new/tex/texmf-context/tex/context/base/l-file.lua:121: bad
>> argument #1 to 'find' (string expected, got nil)

Hi,
I recently noticed a similar, maybe related problem.
Saving this

\starttext
\placefigure[middle]{none}{\externalfigure[hacker]}
\stoptext

in a file called "test.Fig.tex" leads to the luatex error mentioned 
before. The same file without a dot in its name (testFig.tex) compiles 
like expected.

Tested with ConTeXt  ver: 2011.08.04 00:42 MKIV  fmt: 2011.8.9  int: 
english/english on Mac OS X 10.6.

Regards
Daniel


Here’s the stacktrace:

! LuaTeX error 
...xtBeta/tex/texmf-context/tex/context/base/l-file.lua:232: bad 
argument #1 to 'find' (string expected, got nil)
stack traceback:
	[C]: in function 'find'
	...xtBeta/tex/texmf-context/tex/context/base/l-file.lua:232: in 
function 'collapsepath'
	...Beta/tex/texmf-context/tex/context/base/grph-inc.lua:382: in 
function 'forbiddenname'
	...Beta/tex/texmf-context/tex/context/base/grph-inc.lua:396: in 
function <...Beta/tex/texmf-context/tex/context/base/grph-inc.lua:394>
	(tail call): ?
	...Beta/tex/texmf-context/tex/context/base/grph-inc.lua:751: in 
function 'identifier'
	...Beta/tex/texmf-context/tex/context/base/grph-inc.lua:769: in 
function 'identify'
	<main ctx instance>:1: in main chunk.

system          > tex > error on line 3 in file test.Fig.tex: LuaTeX 
error  ...

1     \starttext
2     \startalignment[middle]
3 >>  \placefigure[middle]{none}{\externalfigure[hacker]}
4     \stopalignment
5     \stoptext
6


\calculateexternalfigure ...a {figures.identify()}
                                                   \ifconditional 
\testextern...
\dodoplaceexternalfigure ...[][#1][#2][#3][#4][#5]
                                                   \dotagfigure 
\naturalvbox ...
\doexternalfigure ...value {\??ef \??ef #1}[#3]}}}
                                                   \globallet 
\currentresourc...
<to be read again>
                    }

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: \setupbodyfont[dejavu]
  2011-08-09 11:34   ` \setupbodyfont[dejavu] Daniel Schopper
@ 2011-08-10  7:56     ` Hongwen Qiu
  2011-08-10  8:49       ` \setupbodyfont[dejavu] Hongwen Qiu
  0 siblings, 1 reply; 5+ messages in thread
From: Hongwen Qiu @ 2011-08-10  7:56 UTC (permalink / raw)
  To: ntg-context

On 08/09/2011 07:34 PM, Daniel Schopper wrote:
> \starttext
> \placefigure[middle]{none}{\externalfigure[hacker]}
> \stoptext
>
> in a file called "test.Fig.tex" leads to the luatex error mentioned 
> before. The same file without a dot in its name (testFig.tex) compiles 
> like expected. 
The following patch fix this one.
--- a/tex/texmf-context/scripts/context/lua/mtx-context.lua    
2011-08-10 15:52:03.896095268 +0800
+++ b/tex/texmf-context/scripts/context/lua/mtx-context.lua    
2011-08-10 15:52:58.487970450 +0800
@@ -476,7 +476,7 @@

  function 
scripts.context.multipass.makeoptionfile(jobname,ctxdata,kindofrun,currentrun,finalrun)
      -- take jobname from ctx
-    jobname = file.removesuffix(jobname)
+    --jobname = file.removesuffix(jobname)
      local f = io.open(jobname..".top","w")
      if f then
          local function someflag(flag)

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: \setupbodyfont[dejavu]
  2011-08-10  7:56     ` \setupbodyfont[dejavu] Hongwen Qiu
@ 2011-08-10  8:49       ` Hongwen Qiu
  0 siblings, 0 replies; 5+ messages in thread
From: Hongwen Qiu @ 2011-08-10  8:49 UTC (permalink / raw)
  To: ntg-context

On 08/10/2011 03:56 PM, Hongwen Qiu wrote:
> On 08/09/2011 07:34 PM, Daniel Schopper wrote:
>> \starttext
>> \placefigure[middle]{none}{\externalfigure[hacker]}
>> \stoptext
>>
>> in a file called "test.Fig.tex" leads to the luatex error mentioned 
>> before. The same file without a dot in its name (testFig.tex) 
>> compiles like expected. 
> The following patch fix this one.
> --- a/tex/texmf-context/scripts/context/lua/mtx-context.lua    
> 2011-08-10 15:52:03.896095268 +0800
> +++ b/tex/texmf-context/scripts/context/lua/mtx-context.lua    
> 2011-08-10 15:52:58.487970450 +0800
> @@ -476,7 +476,7 @@
>
>  function 
> scripts.context.multipass.makeoptionfile(jobname,ctxdata,kindofrun,currentrun,finalrun)
>      -- take jobname from ctx
> -    jobname = file.removesuffix(jobname)
> +    --jobname = file.removesuffix(jobname)
>      local f = io.open(jobname..".top","w")
>      if f then
>          local function someflag(flag)
>
But if we call the file "test+Fig.tex" instead of "test.Fig.tex" or 
"testFig.tex", then it still can't compile.
The top file is created as the name "test+Fig.top" correctly, but at the 
beginning, it still output the line:
system > no test+Fig.top
Since I don't know which script dealt with loading the .top file, I 
can't fix this one.

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-08-10  8:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-26  9:29 \setupbodyfont[dejavu] Andreas Harder
2011-06-26  9:34 ` \setupbodyfont[dejavu] Hans Hagen
2011-08-09 11:34   ` \setupbodyfont[dejavu] Daniel Schopper
2011-08-10  7:56     ` \setupbodyfont[dejavu] Hongwen Qiu
2011-08-10  8:49       ` \setupbodyfont[dejavu] Hongwen Qiu

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).